Skip to content

Commit 639766c

Browse files
hal-fengLinus Walleij
authored andcommitted
pinctrl: starfive: jh7110: Correct the level trigger configuration of iev register
A mistake was made in level trigger register configuration. Correct it. Fixes: 447976a ("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>
1 parent d3692d9 commit 639766c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,12 +793,12 @@ static int jh7110_irq_set_type(struct irq_data *d, unsigned int trigger)
793793
case IRQ_TYPE_LEVEL_HIGH:
794794
irq_type = 0; /* 0: level triggered */
795795
edge_both = 0; /* 0: ignored */
796-
polarity = mask; /* 1: high level */
796+
polarity = 0; /* 0: high level */
797797
break;
798798
case IRQ_TYPE_LEVEL_LOW:
799799
irq_type = 0; /* 0: level triggered */
800800
edge_both = 0; /* 0: ignored */
801-
polarity = 0; /* 0: low level */
801+
polarity = mask; /* 1: low level */
802802
break;
803803
default:
804804
return -EINVAL;

0 commit comments

Comments
 (0)