This callback will allow M_CAN-based devices, e.g. TI TCAN4550, to handle device-specific interrupts which are not part of the M_CAN core, but are signaled on the same interrupt pin. Signed-off-by: Torin Cooper-Bennun <torin@xxxxxxxxxxxxxxxxxx> --- drivers/net/can/m_can/m_can.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/can/m_can/m_can.h b/drivers/net/can/m_can/m_can.h index ace071c3e58c..99203a37f9cc 100644 --- a/drivers/net/can/m_can/m_can.h +++ b/drivers/net/can/m_can/m_can.h @@ -28,6 +28,7 @@ #include <linux/iopoll.h> #include <linux/can/dev.h> #include <linux/pinctrl/consumer.h> +#include <linux/irqreturn.h> /* m_can lec values */ enum m_can_lec_type { @@ -62,6 +63,7 @@ struct m_can_classdev; struct m_can_ops { /* Device specific call backs */ int (*clear_interrupts)(struct m_can_classdev *cdev); + irqreturn_t (*handle_dev_interrupts)(struct m_can_classdev *cdev); u32 (*read_reg)(struct m_can_classdev *cdev, int reg); int (*write_reg)(struct m_can_classdev *cdev, int reg, int val); u32 (*read_fifo)(struct m_can_classdev *cdev, int addr_offset); -- 2.30.2