pinctrl: starfive: fix gpio level interrupt exception

fix gpio level interrupt exception

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
This commit is contained in:
Ziv Xu
2024-07-30 09:37:34 +08:00
parent 79ad4a4c58
commit be1f3be5b6

View File

@@ -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;