bus: mhi: ep: Add support for managing MHI state machine
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 29 Nov 2021 07:23:51 +0000 (12:53 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:50 +0000 (10:17 +0530)
commit484e04faa8a0487843808a08ff8b11e0684972f5
treecea40e7fad6f450541a8fbee1c5e63d048fb876d
parent6f7cb6e7883962b6393dbfbf188550a11d1490b3
bus: mhi: ep: Add support for managing MHI state machine

Add support for managing the MHI state machine by controlling the state
transitions. Only the following MHI state transitions are supported:

1. Ready state
2. M0 state
3. M3 state
4. SYS_ERR state

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/ep/Makefile
drivers/bus/mhi/ep/internal.h
drivers/bus/mhi/ep/main.c
drivers/bus/mhi/ep/sm.c [new file with mode: 0644]
include/linux/mhi_ep.h