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)
commit73b7aebcc8cbc2cddfb34be9840542807ad61044
tree19460a012ba590c29e16e7b86cd0b776f202f0b2
parentcde61bb0470df8cfb5d49ebe88e9802fb0f817f0
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