[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220820095933.20234-1-jeffy.chen@rock-chips.com>
Date: Sat, 20 Aug 2022 17:59:32 +0800
From: Jeffy Chen <jeffy.chen@...k-chips.com>
To: Heiko Stuebner <heiko@...ech.de>,
Doug Anderson <dianders@...omium.org>
Cc: Jeffy Chen <jeffy.chen@...k-chips.com>,
linux-rockchip@...ts.infradead.org,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH 1/2] gpio/rockchip: Convert to generic_handle_domain_irq()
Follow commit dbd1c54fc820 ("gpio: Bulk conversion to
generic_handle_domain_irq()").
Signed-off-by: Jeffy Chen <jeffy.chen@...k-chips.com>
---
drivers/gpio/gpio-rockchip.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c
index e342a6dc4c6c..a98351cd6821 100644
--- a/drivers/gpio/gpio-rockchip.c
+++ b/drivers/gpio/gpio-rockchip.c
@@ -333,16 +333,10 @@ static void rockchip_irq_demux(struct irq_desc *desc)
pend = readl_relaxed(bank->reg_base + bank->gpio_regs->int_status);
while (pend) {
- unsigned int irq, virq;
+ unsigned int irq;
irq = __ffs(pend);
pend &= ~BIT(irq);
- virq = irq_find_mapping(bank->domain, irq);
-
- if (!virq) {
- dev_err(bank->dev, "unmapped irq %d\n", irq);
- continue;
- }
dev_dbg(bank->dev, "handling irq %d\n", irq);
@@ -377,7 +371,7 @@ static void rockchip_irq_demux(struct irq_desc *desc)
} while ((data & BIT(irq)) != (data_old & BIT(irq)));
}
- generic_handle_irq(virq);
+ generic_handle_domain_irq(bank->domain, irq);
}
chained_irq_exit(chip, desc);
--
2.20.1
Powered by blists - more mailing lists