bus: mhi: ep: Add support for processing channel rings
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Sat, 12 Feb 2022 16:02:02 +0000 (21:32 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:51 +0000 (10:17 +0530)
commit494a6f63937744d447630c9ab2f4a58f105b69f5
tree9e74986a533d57524be72b8f66a4ed1e175ce9f6
parent20c01fde1b36dec0a3ffdbd22f6d117a29cf586d
bus: mhi: ep: Add support for processing channel rings

Add support for processing the channel rings from host. For the channel
ring associated with DL channel, the xfer callback will simply invoked.
For the case of UL channel, the ring elements will be read in a buffer
till the write pointer and later passed to the client driver using the
xfer callback.

The client drivers should provide the callbacks for both UL and DL
channels during registration.

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