aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorJudith Mendez <[email protected]>2023-07-07 20:47:14 +0000
committerMarc Kleine-Budde <[email protected]>2023-07-17 14:02:24 +0000
commitb382380c0d2da427aaffca931e4a3b831048cace (patch)
tree4fb811bd212d47e893694f5d0d6a4b48f13cd6c3 /drivers/net/ethernet/intel/ice/ice_main.c
parentdt-bindings: net: can: Remove interrupt properties for MCAN (diff)
downloadkernel-b382380c0d2da427aaffca931e4a3b831048cace.tar.gz
kernel-b382380c0d2da427aaffca931e4a3b831048cace.zip
can: m_can: Add hrtimer to generate software interrupt
Introduce timer polling method to MCAN since some SoCs may not have M_CAN interrupt routed to A53 Linux and do not have interrupt property in device tree M_CAN node. On AM62x SoC, MCANs on MCU domain do not have hardware interrupt routed to A53 Linux, instead they will use timer polling method. Add an hrtimer to MCAN class device. Each MCAN will have its own hrtimer instantiated if there is no hardware interrupt found in device tree M_CAN node. The timer will generate a software interrupt every 1 ms. In hrtimer callback, we check if there is a transaction pending by reading a register, then process by calling the isr if there is. Tested-by: Hiago De Franco <[email protected]> # Toradex Verdin AM62 Reviewed-by: Tony Lindgren <[email protected]> Signed-off-by: Judith Mendez <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions