pinctrl: starfive: jh7110: Correct the level trigger configuration of iev register
BugLink: https://bugs.launchpad.net/bugs/2084225
[ Upstream commit 639766ca10d1e218e257ae7eabe76814bae6ab89 ]
A mistake was made in level trigger register configuration. Correct it.
Fixes: 447976ab62 ("pinctrl: starfive: Add StarFive JH7110 sys controller driver")
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Link: https://lore.kernel.org/20240812070108.100923-1-hal.feng@starfivetech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
@@ -795,12 +795,12 @@ static int jh7110_irq_set_type(struct irq_data *d, unsigned int trigger)
|
||||
case IRQ_TYPE_LEVEL_HIGH:
|
||||
irq_type = 0; /* 0: level triggered */
|
||||
edge_both = 0; /* 0: ignored */
|
||||
polarity = mask; /* 1: high level */
|
||||
polarity = 0; /* 0: high level */
|
||||
break;
|
||||
case IRQ_TYPE_LEVEL_LOW:
|
||||
irq_type = 0; /* 0: level triggered */
|
||||
edge_both = 0; /* 0: ignored */
|
||||
polarity = 0; /* 0: low level */
|
||||
polarity = mask; /* 1: low level */
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user