mfd: gateworks-gsc: Fix interrupt type
authorTim Harvey <tharvey@gateworks.com>
Mon, 28 Dec 2020 21:10:04 +0000 (13:10 -0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 8 Feb 2021 13:54:14 +0000 (13:54 +0000)
The Gateworks System Controller has an active-low interrupt.
Fix the interrupt request type.

Cc: <stable@vger.kernel.org>
Fixes: d85234994b2f ("mfd: Add Gateworks System Controller core driver")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/gateworks-gsc.c

index 576da62..d878767 100644 (file)
@@ -234,7 +234,7 @@ static int gsc_probe(struct i2c_client *client)
 
        ret = devm_regmap_add_irq_chip(dev, gsc->regmap, client->irq,
                                       IRQF_ONESHOT | IRQF_SHARED |
-                                      IRQF_TRIGGER_FALLING, 0,
+                                      IRQF_TRIGGER_LOW, 0,
                                       &gsc_irq_chip, &irq_data);
        if (ret)
                return ret;