Skip to content

Commit

Permalink
sh: extend INTC with force_disable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Feb 16, 2010
1 parent 92e1f9a commit d85429a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/sh/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions include/linux/sh_intc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit d85429a

Please sign in to comment.