lib: sbi_irqchip: Allow interrupt client to specify line sensing

The interrupt client should be allowed to specify the line sensing
type of the hwirqs for which it is registering handler. To support
this, add hwirq_flags parameter to hwirq_setup() callback provided
by the irqchip driver.

Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260423052339.356900-4-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Anup Patel
2026-04-23 10:53:36 +05:30
committed by Anup Patel
parent 255df5d802
commit adb4caf765
3 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ int sbi_irqchip_set_raw_handler(struct sbi_irqchip_device *chip, u32 hwirq,
}
int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,
u32 first_hwirq, u32 num_hwirq,
u32 first_hwirq, u32 num_hwirq, u32 hwirq_flags,
int (*callback)(u32 hwirq, void *opaque), void *priv)
{
struct sbi_irqchip_handler *h, *th, *nh;
@@ -177,7 +177,7 @@ int sbi_irqchip_register_handler(struct sbi_irqchip_device *chip,
if (chip->hwirq_setup) {
for (i = 0; i < h->num_hwirq; i++) {
rc = chip->hwirq_setup(chip, h->first_hwirq + i);
rc = chip->hwirq_setup(chip, h->first_hwirq + i, hwirq_flags);
if (rc) {
if (chip->hwirq_cleanup) {
for (j = 0; j < i; j++)