Thread (41 messages) 41 messages, 7 authors, 2016-06-01

Re: [PATCH] PCI: Wait for 50ms after bridge is powered up

From: Lukas Wunner <lukas@wunner.de>
Date: 2016-06-01 11:42:35
Also in: linux-pci

On Wed, Jun 01, 2016 at 12:11:45PM +0300, Mika Westerberg wrote:
I'm going to change the code to look like following (pm_runtime_mark_last_busy()
gets called before pm_runtime_put_autosuspend() even if not strictly needed):

	pm_runtime_set_autosuspend_delay(&dev->dev, 100);
	pm_runtime_use_autosuspend(&dev->dev);
	pm_runtime_mark_last_busy(&dev->dev);
	pm_runtime_put_autosuspend(&dev->dev);
	pm_runtime_allow(&dev->dev);

Note I'm still increasing default autosuspend delay from 10ms to 100ms.

Does the above work for you?
Yes, tested it and couldn't spot any issues.

Thanks,

Lukas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help