Commit 639766ca authored by Hal Feng's avatar Hal Feng Committed by Linus Walleij

pinctrl: starfive: jh7110: Correct the level trigger configuration of iev register

A mistake was made in level trigger register configuration. Correct it.

Fixes: 447976ab ("pinctrl: starfive: Add StarFive JH7110 sys controller driver")
Signed-off-by: default avatarHal Feng <hal.feng@starfivetech.com>
Link: https://lore.kernel.org/20240812070108.100923-1-hal.feng@starfivetech.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d3692d95
...@@ -793,12 +793,12 @@ static int jh7110_irq_set_type(struct irq_data *d, unsigned int trigger) ...@@ -793,12 +793,12 @@ static int jh7110_irq_set_type(struct irq_data *d, unsigned int trigger)
case IRQ_TYPE_LEVEL_HIGH: case IRQ_TYPE_LEVEL_HIGH:
irq_type = 0; /* 0: level triggered */ irq_type = 0; /* 0: level triggered */
edge_both = 0; /* 0: ignored */ edge_both = 0; /* 0: ignored */
polarity = mask; /* 1: high level */ polarity = 0; /* 0: high level */
break; break;
case IRQ_TYPE_LEVEL_LOW: case IRQ_TYPE_LEVEL_LOW:
irq_type = 0; /* 0: level triggered */ irq_type = 0; /* 0: level triggered */
edge_both = 0; /* 0: ignored */ edge_both = 0; /* 0: ignored */
polarity = 0; /* 0: low level */ polarity = mask; /* 1: low level */
break; break;
default: default:
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment