summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2026-03-10 12:25:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-25 11:03:05 +0100
commitb069946ff6ee57b0c50e59571218081f4f484c76 (patch)
tree38428a66f005022a3a7c7a24ebefc5a811fce572 /drivers/regulator
parent3a04b798428c9cd419ef7dd9b418958fa05f989f (diff)
downloadlinux-b069946ff6ee57b0c50e59571218081f4f484c76.tar.gz
linux-b069946ff6ee57b0c50e59571218081f4f484c76.tar.bz2
linux-b069946ff6ee57b0c50e59571218081f4f484c76.zip
regulator: pca9450: Correct interrupt type
[ Upstream commit 5d0efaf47ee90ac60efae790acee3a3ed99ebf80 ] Kernel warning on i.MX8MP-EVK when doing module test: irq: type mismatch, failed to map hwirq-3 for gpio@30200000! Per PCA945[X] specification: The IRQ_B pin is pulled low when any unmasked interrupt bit status is changed and it is released high once application processor read INT1 register. So the interrupt should be configured as IRQF_TRIGGER_LOW, not IRQF_TRIGGER_FALLING. Fixes: 0935ff5f1f0a4 ("regulator: pca9450: add pca9450 pmic driver") Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20260310-pca9450-irq-v1-1-36adf52c2c55@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/pca9450-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c
index 8848afa48598..7922af4f7895 100644
--- a/drivers/regulator/pca9450-regulator.c
+++ b/drivers/regulator/pca9450-regulator.c
@@ -782,7 +782,7 @@ static int pca9450_i2c_probe(struct i2c_client *i2c,
if (pca9450->irq) {
ret = devm_request_threaded_irq(pca9450->dev, pca9450->irq, NULL,
pca9450_irq_handler,
- (IRQF_TRIGGER_FALLING | IRQF_ONESHOT),
+ (IRQF_TRIGGER_LOW | IRQF_ONESHOT),
"pca9450-irq", pca9450);
if (ret != 0) {
dev_err(pca9450->dev, "Failed to request IRQ: %d\n",