bus: mhi: ep: Add support for creating and destroying MHI EP devices
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 26 Nov 2021 14:28:00 +0000 (19:58 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:50 +0000 (10:17 +0530)
commit03f44035a5863bd30cf6f24ea2e2a4f7da40a81d
treec150c591fb7ad2d1b427488cc89bf136130ec45b
parent36b7cae6a0328cd8560fe6b4ccdda921c600d154
bus: mhi: ep: Add support for creating and destroying MHI EP devices

This commit adds support for creating and destroying MHI endpoint devices.
The MHI endpoint devices binds to the MHI endpoint channels and are used
to transfer data between MHI host and endpoint device.

There is a single MHI EP device for each channel pair. The devices will be
created when the corresponding channels has been started by the host and
will be destroyed during MHI EP power down and reset.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/ep/main.c