]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: core: Skip device wake in error or shutdown states
authorBhaumik Bhatt <bbhatt@codeaurora.org>
Mon, 9 Nov 2020 20:47:22 +0000 (12:47 -0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 18 Nov 2020 09:50:34 +0000 (15:20 +0530)
commit43d38c5ae2d3f125f3e1fadf2b405402f57cfd6a
treebae3006a9086a8a25585d82a01445ee1eb3ae3e6
parentd90309abf6c35a39300a1b1ef6362d5e9677b966
bus: mhi: core: Skip device wake in error or shutdown states

MHI client drivers can request a device wake even if the device
may be in an error state or undergoing a shutdown. To prevent
unnecessary device wake processing, check for the device state
and bail out early so that the clients are made aware of the
device state sooner.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/core/pm.c