patch "mei: request async autosuspend at the end of enumeration" added to char-misc-testing
Subsystems (3)
This is a note to let you know that I've just added the patch titled
mei: request async autosuspend at the end of enumeration
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-testing branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will be merged to the char-misc-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
Quoted 1 line
From
d5f8e166c25750adc147b0adf64a62a91653438aMon Sep 17 00:00:00 2001
From: Alexander Usyskin <[email protected]>
Date: Thu, 24 Nov 2016 13:34:02 +0200
Subject: mei: request async autosuspend at the end of enumeration
pm_runtime_autosuspend can take synchronous or asynchronous paths, Because we are calling pm_runtime_mark_last_busy just before this most of the cases it takes the asynchronous way. However, when the FW or driver resets during already running runtime suspend, the call will result in calling to the driver's rpm callback and results in a deadlock on device_lock.
The simplest fix is to replace pm_runtime_autosuspend with asynchronous pm_request_autosuspend.
--- drivers/misc/mei/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/client.c +1 -1
@@ -691,7 +691,7 @@ void mei_host_client_init(struct mei_device *dev)pm_runtime_mark_last_busy (dev->dev);dev_dbg (dev->dev,"rpm: autosuspend\n" ); -pm_runtime_autosuspend (dev->dev); +pm_request_autosuspend (dev->dev); }/**
Signature · 1 line
2.10.2