diff options
author | Magnus Damm <damm@opensource.se> | 2010-02-15 06:40:25 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-15 23:38:56 -0500 |
commit | d85429a31790361b9e952be3817134c23b3b758a (patch) | |
tree | b5a5fa7e81345e92c518bf5ff3a81ae8d032df7d /drivers/sh | |
parent | 92e1f9a7ed613b36f3aaf8b04a79e2fd4fa37ec1 (diff) |
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>
Diffstat (limited to 'drivers/sh')
-rw-r--r-- | drivers/sh/intc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sh/intc.c b/drivers/sh/intc.c index 66594eb4477d..1da1edef2221 100644 --- a/drivers/sh/intc.c +++ b/drivers/sh/intc.c | |||
@@ -851,6 +851,9 @@ void __init register_intc_controller(struct intc_desc *desc) | |||
851 | d->chip.mask_ack = intc_mask_ack; | 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 | /* disable bits matching force_enable before registering irqs */ | 858 | /* disable bits matching force_enable before registering irqs */ |
856 | if (desc->force_enable) | 859 | if (desc->force_enable) |