From ce32b9ac95d892eb998fc99ab98afb98cbd48d15 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Fri, 14 Feb 2020 09:30:02 -0800 Subject: [PATCH] haven: Pass doorbell irq number to client callback Clients may need irq number to handle doorbell, e.g. to use a common irq handler framework. Change-Id: Iab64a0ce3330eab2b8fa052e9d8b9b9856510e6a Signed-off-by: Elliot Berman --- drivers/virt/haven/hh_dbl.c | 2 +- include/linux/haven/hh_dbl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virt/haven/hh_dbl.c b/drivers/virt/haven/hh_dbl.c index eb6c0b806190..5c06ad2e6634 100644 --- a/drivers/virt/haven/hh_dbl.c +++ b/drivers/virt/haven/hh_dbl.c @@ -275,7 +275,7 @@ static irqreturn_t hh_dbl_rx_callback_thread(int irq, void *rx_priv_data) if (!cap_table_entry->rx_callback) return IRQ_HANDLED; - cap_table_entry->rx_callback(rx_priv_data); + cap_table_entry->rx_callback(irq, rx_priv_data); return IRQ_HANDLED; } diff --git a/include/linux/haven/hh_dbl.h b/include/linux/haven/hh_dbl.h index 7ad444fa7b22..2575d8e232b6 100644 --- a/include/linux/haven/hh_dbl.h +++ b/include/linux/haven/hh_dbl.h @@ -9,7 +9,7 @@ #include "hh_common.h" -typedef void (*dbl_rx_cb_t)(void *priv_data); +typedef void (*dbl_rx_cb_t)(int irq, void *priv_data); enum hh_dbl_label { HH_DBL_TUI_LABEL,