bus: mhi: core: Download AMSS image from appropriate function
authorBhaumik Bhatt <bbhatt@codeaurora.org>
Wed, 24 Feb 2021 23:23:03 +0000 (15:23 -0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 10 Mar 2021 14:41:22 +0000 (20:11 +0530)
commit4884362f6977fc05cbec736625665241c0e0732f
tree7cf249d37d13cdb3ebf34d05f2dfa3a8afe70545
parent925089c1900f588615db5bf4e1d9064a5f2c18c7
bus: mhi: core: Download AMSS image from appropriate function

During full boot chain firmware download, the PM state worker
downloads the AMSS image after a blocking wait for the SBL
execution environment change when running in PBL transition
itself. Improve this design by having the host download the AMSS
image from the SBL transition of PM state worker thread when a
DEV_ST_TRANSITION_SBL is queued instead of the blocking wait.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1614208985-20851-3-git-send-email-bbhatt@codeaurora.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/core/boot.c
drivers/bus/mhi/core/internal.h
drivers/bus/mhi/core/pm.c