Commit d85429a31790361b9e952be3817134c23b3b758a
Committed by
Paul Mundt
1 parent
92e1f9a7ed
Exists in
master
and in
7 other branches
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 <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff
drivers/sh/intc.c
... | ... | @@ -851,6 +851,9 @@ |
851 | 851 | d->chip.mask_ack = intc_mask_ack; |
852 | 852 | } |
853 | 853 | |
854 | + /* disable bits matching force_disable before registering irqs */ | |
855 | + if (desc->force_disable) | |
856 | + intc_enable_disable_enum(desc, d, desc->force_disable, 0); | |
854 | 857 | |
855 | 858 | /* disable bits matching force_enable before registering irqs */ |
856 | 859 | if (desc->force_enable) |