mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
sh: extend INTC with force_disable
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]> Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
92e1f9a7ed
commit
d85429a317
2 changed files with 4 additions and 0 deletions
|
|
@ -851,6 +851,9 @@ void __init register_intc_controller(struct intc_desc *desc)
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue