bus: mhi: ep: Add support for sending events to the host
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 5 Apr 2022 13:57:42 +0000 (19:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:17:41 +0000 (13:17 +0200)
commit961aeb6892242e0a667f5b8eb62b9b0a6041752c
treefbc3080dba42e9f0e7197d6fb18f11a02b73a545
parentbbdcba57a1a26a4439a4f4ecdbfaf80a10fd8f34
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>
Link: https://lore.kernel.org/r/20220405135754.6622-7-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/common.h
drivers/bus/mhi/ep/internal.h
drivers/bus/mhi/ep/main.c
include/linux/mhi_ep.h