bus: mhi: host: Use mhi_soc_reset() API in place of register write
authorQiang Yu <quic_qianyu@quicinc.com>
Mon, 10 Oct 2022 04:32:04 +0000 (12:32 +0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 28 Oct 2022 17:28:22 +0000 (22:58 +0530)
commit46db0ba12be6cfd043df1d09b5831cb84ce2307f
treef0bd49be73259eb68e934da1c9beaa53d0e1dbc9
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
bus: mhi: host: Use mhi_soc_reset() API in place of register write

Currently, a direct register write is used when ramdump collection
in panic path occurs. Replace that with new mhi_soc_reset() API
such that a controller defined reset() function is exercised if
one is present and the regular SOC reset is done if it is not.

Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/1665376324-34258-1-git-send-email-quic_qianyu@quicinc.com
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/host/boot.c