]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
MIPS: EMMA2RH: Use handle_edge_irq() handler for GPIO interrupts
authorShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Sat, 21 Mar 2009 13:06:14 +0000 (22:06 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 30 Mar 2009 12:49:43 +0000 (14:49 +0200)
commit8da55bb2586a0867b9cf14f107225f382a47b28f
treead90c9193abd32a6c236c5774ec51ca82a98f2cb
parentfb2826b7f6ecd93c29d2ef69578f087545251b17
MIPS: EMMA2RH: Use handle_edge_irq() handler for GPIO interrupts

EMMA's GPIO interrupts are latched by GPIO interrupt status register.
In this case, we're encouraged to use handle_edge_irq() handler.

The following changes are made along with replacing set_irq_chip() with
set_irq_chip_and_handler_name(,,handle_edge_irq,"edge"):

* Fix emma2rh_gpio_irq_ack not to disable interrupts

  With handle_edge_irq(), we're not expected to disable interrupts
  when chip->ack is served, so fix it accordingly.  We also add a new
  emma2rh_gpio_irq_mask_ack() for chip->mask_ack operation, instead.

* Remove emma2rh_gpio_irq_end(), as chip->end is no longer served.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/emma/markeins/irq.c