Skip to content

Commit 639766c

Browse files
hal-fenglinusw
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 <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent d3692d9 commit 639766c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)