aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2022-04-05 19:27:44 +0530
committerGreg Kroah-Hartman <[email protected]>2022-04-26 13:17:41 +0200
commit4799e71b082615445dc40ba0bbb86cbb76c24724 (patch)
tree8abc413c73296fee9e953ea478c3f4a69c3ef4d7 /include
parentf9baa4f737950523ca648866dfa345ac378e4487 (diff)
bus: mhi: ep: Add support for processing MHI endpoint interrupts
Add support for processing MHI endpoint interrupts such as control interrupt, command interrupt and channel interrupt from the host. The interrupts will be generated in the endpoint device whenever host writes to the corresponding doorbell registers. The doorbell logic is handled inside the hardware internally. Reviewed-by: Alex Elder <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mhi_ep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mhi_ep.h b/include/linux/mhi_ep.h
index 2880d2aa88b8..137bd3ee2e43 100644
--- a/include/linux/mhi_ep.h
+++ b/include/linux/mhi_ep.h
@@ -70,6 +70,7 @@ struct mhi_ep_db_info {
* @list_lock: Lock for protecting state transition and channel doorbell lists
* @state_lock: Lock for protecting state transitions
* @st_transition_list: List of state transitions
+ * @ch_db_list: List of queued channel doorbells
* @wq: Dedicated workqueue for handling rings and state changes
* @state_work: State transition worker
* @raise_irq: CB function for raising IRQ to the host
@@ -85,6 +86,7 @@ struct mhi_ep_db_info {
* @chdb_offset: Channel doorbell offset set by the host
* @erdb_offset: Event ring doorbell offset set by the host
* @index: MHI Endpoint controller index
+ * @irq: IRQ used by the endpoint controller
*/
struct mhi_ep_cntrl {
struct device *cntrl_dev;
@@ -109,6 +111,7 @@ struct mhi_ep_cntrl {
spinlock_t state_lock;
struct list_head st_transition_list;
+ struct list_head ch_db_list;
struct workqueue_struct *wq;
struct work_struct state_work;
@@ -130,6 +133,7 @@ struct mhi_ep_cntrl {
u32 chdb_offset;
u32 erdb_offset;
u32 index;
+ int irq;
};
/**