[PATCH v2] mfd: mc13xxx: Set the irq type.
From: festevam@gmail.com (Fabio Estevam)
Date: 2016-12-30 17:56:00
Also in:
stable
From: festevam@gmail.com (Fabio Estevam)
Date: 2016-12-30 17:56:00
Also in:
stable
On Fri, Dec 30, 2016 at 1:43 PM, Magnus Lilja [off-list ref] wrote:
Commit 10f9edaeaa30 ("mfd: mc13xxx: Use regmap irq framework for
interrupts") removed the passing of the IRQF_TRIGGER_HIGH flag when
registering the interrupt.
This commit fixes that problem by setting the IRQF_TRIGGER_HIGH flag in
case no irq type is set via irqd framework (e.g. device tree). In the
latter case the irq flag from irqd is used.
Tested on i.MX31 PDK hardware.
Fixes: 10f9edaeaa30 ("mfd: mc13xxx: Use regmap irq framework for interrupts")
Cc: <redacted> # 3.18.x
Cc: Lee Jones <redacted>
Signed-off-by: Magnus Lilja <redacted>Reviewed-by: Fabio Estevam <redacted>