summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2024-08-02 09:33:29 +0300
committerandy.hu <andy.hu@starfivetech.com>2024-08-02 09:33:29 +0300
commita781cdf0cf78d05049763bb11e91f7bf3ab154f3 (patch)
tree90efb367fc07fa34972dc9c3c0fb590c69c595bb
parent79ad4a4c5841fb32eb0edaba0ef6ad20818cff70 (diff)
parentbe1f3be5b694d5d4aa823d6845c27a98f79fe017 (diff)
downloadlinux-a781cdf0cf78d05049763bb11e91f7bf3ab154f3.tar.xz
Merge branch 'CR_13302_pincrtl_gpio_interrupt_6.6_ziv.xu' into 'jh7110-6.6.y-devel'
CR_13302_pincrtl_gpio_interrupt_6.6_ziv.xu See merge request sdk/linux!1067
-rw-r--r--drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
index a38dfa9be6e4..a65413319824 100644
--- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
+++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
@@ -804,12 +804,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;