OSDN Git Service

bus: mhi: ep: Add support for ring management
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 29 Nov 2021 07:09:35 +0000 (12:39 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:50 +0000 (10:17 +0530)
commitedf549e7b2396172ff374e044f3bfe843de3cf4c
tree72eccecd33dcd76a6516d8a3e0008c16e430e4c3
parent37867094faf16d636f47a06b7acc035009dc2cd3
bus: mhi: ep: Add support for ring management

Add support for managing the MHI ring. The MHI ring is a circular queue
of data structures used to pass the information between host and the
endpoint.

MHI support 3 types of rings:

1. Transfer ring
2. Event ring
3. Command ring

All rings reside inside the host memory and the MHI EP device maps it to
the device memory using blocks like PCIe iATU. The mapping is handled in
the MHI EP controller driver itself.

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/ring.c [new file with mode: 0644]