bus: mhi: ep: Add support for processing command rings
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Sat, 12 Feb 2022 15:26:27 +0000 (20:56 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:51 +0000 (10:17 +0530)
commit2b231a40e9073a6828fb960f055b07707b6dd205
tree4bd574b476d1cf78f2d77f7e7d469012d7fafec7
parent1b54f3e8b4bb960f4b447460cc2e6dfb572b0e4a
bus: mhi: ep: Add support for processing command rings

Add support for processing the command rings. Command ring is used by the
host to issue channel specific commands to the ep device. Following
commands are supported:

1. Start channel
2. Stop channel
3. Reset channel

Once the device receives the command doorbell interrupt from host, it
executes the command and generates a command completion event to the
host in the primary event ring.

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