]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fc34b27d0caabe2d2b21e95b97567622f778c9a
tree9c579612a7e061cf3b8f12063a96cdc0242d3329
parentae59a98be29e90260b4898e668e45b93b8e9212e
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