]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bus: mhi: core: Improve mhi_sync_power_up handling for SYS_ERR state
authorVivek Pernamitta <quic_vpernami@quicinc.com>
Fri, 12 Sep 2025 12:48:09 +0000 (18:18 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 19 Sep 2025 05:54:45 +0000 (11:24 +0530)
commitaa1a0e93ed21a06acb7ca9d4a4a9fce75ea53d0c
tree937a1c1606e17aa9856f63bc9db01a1e253e0391
parent12543f4405887da9f3e401e708ca0ff796a7b866
bus: mhi: core: Improve mhi_sync_power_up handling for SYS_ERR state

Allow mhi_sync_power_up to handle SYS_ERR during power-up, reboot,
or recovery. This is to avoid premature exit when MHI_PM_IN_ERROR_STATE is
observed during above mentioned system states.

To achieve this, treat SYS_ERR as a valid state and let its handler process
the error and queue the next transition to Mission Mode instead of aborting
early.

Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
[mani: reworded description]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20250912-uevent_vdev_next-20250911-v4-5-fa2f6ccd301b@quicinc.com
drivers/bus/mhi/host/internal.h
drivers/bus/mhi/host/pm.c