]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/bus/mhi/core/pm.c
bus: mhi: core: Handle firmware load using state worker
authorBhaumik Bhatt <bbhatt@codeaurora.org>
Thu, 21 May 2020 17:02:40 +0000 (22:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 07:35:42 +0000 (09:35 +0200)
commit560e3a045961ed0c7184ef9f6a93b95bd38c1c48
tree534b43a04602e3577ad5cb8db13336154e37cd65
parentee75cedf82d832561af8ba8380aeffd00a9eea77
bus: mhi: core: Handle firmware load using state worker

Upon power up, driver queues firmware worker thread if the execution
environment is PBL. Firmware worker is blocked with a timeout until
state worker gets a chance to run and unblock firmware worker. An
endpoint power up failure can be seen if state worker gets a chance to
run after firmware worker has timed out. Remove this dependency and
handle firmware load directly using state worker thread.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200521170249.21795-6-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/boot.c
drivers/bus/mhi/core/init.c
drivers/bus/mhi/core/internal.h
drivers/bus/mhi/core/pm.c
include/linux/mhi.h