Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

Fixes: 447976ab62c5 ("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>

authored by

Hal Feng and committed by
Linus Walleij
639766ca d3692d95

+2 -2
+2 -2
drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
··· 793 793 case IRQ_TYPE_LEVEL_HIGH: 794 794 irq_type = 0; /* 0: level triggered */ 795 795 edge_both = 0; /* 0: ignored */ 796 - polarity = mask; /* 1: high level */ 796 + polarity = 0; /* 0: high level */ 797 797 break; 798 798 case IRQ_TYPE_LEVEL_LOW: 799 799 irq_type = 0; /* 0: level triggered */ 800 800 edge_both = 0; /* 0: ignored */ 801 - polarity = 0; /* 0: low level */ 801 + polarity = mask; /* 1: low level */ 802 802 break; 803 803 default: 804 804 return -EINVAL;