]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: core: Hold device wake for channel update commands
authorBhaumik Bhatt <bbhatt@codeaurora.org>
Thu, 1 Apr 2021 21:16:14 +0000 (14:16 -0700)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 7 Apr 2021 06:55:42 +0000 (12:25 +0530)
commit4c4e2918a95428acbe9dc56dec3be9a013c632b1
tree19460a012ba590c29e16e7b86cd0b776f202f0b2
parent8c51d5e57a002bb40c2cba31b2c74448e0ab9af6
bus: mhi: core: Hold device wake for channel update commands

MHI host can fail early if device is in a bad state by attempting
to assert device wake and holding the runtime PM vote before
sending a channel update command instead of performing a wake
toggle and waiting for a timeout if the send were to fail. This
can help improve the design and enable shorter wait periods for
device to respond as votes are already held.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1617311778-1254-6-git-send-email-bbhatt@codeaurora.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/core/main.c