mfd: twl6030-irq: Migrate to IRQ threaded handler
authorNaga Venkata Srikanth V <vnv.srikanth@samsung.com>
Thu, 25 Jul 2013 13:15:47 +0000 (16:15 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Aug 2013 08:19:02 +0000 (10:19 +0200)
commit87343e534117c2932adfb394351dc83d7c378af6
tree22b8fe14d00d4662fed82f9fb1ea6ccd78bd8837
parentcc01b4639c94b1732995a9909a8973bfed67db2b
mfd: twl6030-irq: Migrate to IRQ threaded handler

1) Removed request_irq() and replaced it with request_threaded_irq().

2) Removed generic_handle_irq() and replaced it with
handle_nested_irq().
  Handling of these interrupts is nested, as we are handling an
interrupt (for e.g rtc, mmc1) when we are still servicing TWL irq.

3) Removed I2C read-retry logic for the case when twl_i2c_read() is
failed inside IRQ handler - there is no sense to do that, so just report
an error and return.

4) Each nested IRQ is configured with corresponding parent_irq,
which need to be retriggered in case if nested IRQ is marked
as IRQS_PENDING.

Signed-off-by: Naga Venkata Srikanth V <vnv.srikanth@samsung.com>
Signed-off-by: Oleg_Kosheliev <oleg.kosheliev@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6030-irq.c