gpio: omap: Convert to immutable irq_chip
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 9 Mar 2023 07:46:03 +0000 (08:46 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 10 Mar 2023 15:17:35 +0000 (16:17 +0100)
commit39575d114fbb377d752d8df25d4795bc29d98042
tree3da1b8d43a1ce230ea5c3a48dc2e31067a4ac917
parent1e77c092d3bb65af9b089916a9f09e234d0ccb75
gpio: omap: Convert to immutable irq_chip

Convert the driver to immutable irq-chip with a bit of
intuition.

This driver require some special care: .irq_ack() was copied
from dummy_irq_chip where it was defined as noop. This only
makes sense if using handle_edge_irq() that will unconditionally
call .irq_ack() to avoid a crash, but this driver is not ever
using handle_edge_irq() so just avoid assigning .irq_ack().

A separate chip had to be created for the non-wakeup instance.

Cc: Marc Zyngier <maz@kernel.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-omap.c