sh: extend INTC with force_disable
PATCH 1/1 sh: extend INTC with force_disable
From: Magnus Damm <[email protected]>
Extend the shared INTC code with force_disable support to allow keeping mask bits statically disabled. Needed for SDHI support to mask out unsupported interrupt sources.
Signed-off-by Magnus Damm <[email protected]>
---
drivers/sh/intc.c | 3 +++ include/linux/sh_intc.h | 1 + 2 files changed, 4 insertions(+)
drivers/sh/intc.c +3 -0
@@ -851,6 +851,9 @@ void __init register_intc_controller(str d->chip.mask_ack = intc_mask_ack; } +/* disable bits matching force_disable before registering irqs */ +if (desc->force_disable) +intc_enable_disable_enum (desc, d, desc->force_disable,0 );/* disable bits matching force_enable before registering irqs */ if (desc->force_enable)
include/linux/sh_intc.h +1 -0
@@ -72,6 +72,7 @@ struct intc_hw_desc {struct intc_desc {char *name;intc_enum force_enable; +intc_enum force_disable;struct intc_hw_desc hw; };
Quoted 3 lines · Magnus Damm
Extend the shared INTC code with
force_disablesupport to allow keeping mask bits statically disabled. Needed for SDHI support to mask out unsupported interrupt sources.
Quoted 5 lines · Magnus Damm
Update the sh7724 INTC tables with
force_enablesupport to mask out pending unsupported SDHI interrupt sources.Without this patch the kernel locks up due to a pending SDHI interrupt that the
tmio_mmcdriver cannot handle.
Both applied, thanks.