bus: mhi: ep: Power up/down MHI stack during MHI RESET
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 28 Dec 2022 16:16:59 +0000 (21:46 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 27 Jan 2023 07:01:41 +0000 (12:31 +0530)
commit47a1dcaea07367c84238e71c08244ae3ed48c1cc
tree2f3611b427a727dce3ad7a9a7952f16f65add172
parenta33ca17426c0dcd21d9266f708de0559a936e229
bus: mhi: ep: Power up/down MHI stack during MHI RESET

During graceful shutdown scenario, host will issue MHI RESET to the
endpoint device before initiating shutdown. In that case, it makes sense
to completely power down the MHI stack as sooner or later the access to
MMIO registers will be prohibited. Also, the stack needs to be powered
up in the case of SYS_ERR to recover the device.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/r/20221228161704.255268-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/ep/main.c