diff mbox series

mfd: gateworks-gsc: fix interrupt type

Message ID 1609189804-10039-1-git-send-email-tharvey@gateworks.com
State Accepted
Commit 8d9bf3c3e1451fc8de7b590040a868ade26d6b22
Headers show
Series mfd: gateworks-gsc: fix interrupt type | expand

Commit Message

Tim Harvey Dec. 28, 2020, 9:10 p.m. UTC
The Gateworks System Controller has an active-low interrupt.
Fix the interrupt request type.

Fixes: d85234994b2f ("mfd: Add Gateworks System Controller core driver")

Cc: <stable@vger.kernel.org>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 drivers/mfd/gateworks-gsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lee Jones Jan. 14, 2021, 9:52 a.m. UTC | #1
On Mon, 28 Dec 2020, Tim Harvey wrote:

> The Gateworks System Controller has an active-low interrupt.

> Fix the interrupt request type.

> 

> Fixes: d85234994b2f ("mfd: Add Gateworks System Controller core driver")

> 

> Cc: <stable@vger.kernel.org>

> Signed-off-by: Tim Harvey <tharvey@gateworks.com>

> ---

>  drivers/mfd/gateworks-gsc.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Applied, thanks.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
diff mbox series

Patch

diff --git a/drivers/mfd/gateworks-gsc.c b/drivers/mfd/gateworks-gsc.c
index 576da62..d878767 100644
--- a/drivers/mfd/gateworks-gsc.c
+++ b/drivers/mfd/gateworks-gsc.c
@@ -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;