bus: mhi: ep: Add support for sending events to the host
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 29 Nov 2021 07:17:50 +0000 (12:47 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:50 +0000 (10:17 +0530)
commit6f7cb6e7883962b6393dbfbf188550a11d1490b3
tree9c579612a7e061cf3b8f12063a96cdc0242d3329
parentedf549e7b2396172ff374e044f3bfe843de3cf4c
bus: mhi: ep: Add support for sending events to the host

Add support for sending the events to the host over MHI bus from the
endpoint. Following events are supported:

1. Transfer completion event
2. Command completion event
3. State change event
4. Execution Environment (EE) change event

An event is sent whenever an operation has been completed in the MHI EP
device. Event is sent using the MHI event ring and additionally the host
is notified using an IRQ if required.

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