]> Pileus Git - ~andy/linux/commit
sh: intc: Add IRQ trigger bit field check
authorMagnus Damm <damm@opensource.se>
Mon, 17 Oct 2011 08:59:54 +0000 (17:59 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 28 Oct 2011 05:39:24 +0000 (14:39 +0900)
commit52e3124f248e9ada990cd2aeafe250a53713c6f0
tree64e89834168bc819c0c47bd01ff698acbdb12f32
parenta136d3d85f2dec52df077a1d8c9728f8835ce532
sh: intc: Add IRQ trigger bit field check

R-Mobile SoCs such as sh73a0 include PINT blocks in INTC
that come with 2-bit IRQ trigger support. Add code to make
sure the bit width is checked so 4-bit only modes like for
instance EDGE_BOTH will fail for PINT.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc/chip.c