mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
pinctrl: mediatek: fix dual-edge code defect
commit 5edf673d07 upstream.
When a dual-edge irq is triggered, an incorrect irq will be reported on
condition that the external signal is not stable and this incorrect irq
has been registered.
Correct the register offset.
Signed-off-by: Hongkun Cao <hongkun.cao@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a976f62a60
commit
b5ff1d6012
@@ -1191,9 +1191,10 @@ static void mtk_eint_irq_handler(struct irq_desc *desc)
|
|||||||
const struct mtk_desc_pin *pin;
|
const struct mtk_desc_pin *pin;
|
||||||
|
|
||||||
chained_irq_enter(chip, desc);
|
chained_irq_enter(chip, desc);
|
||||||
for (eint_num = 0; eint_num < pctl->devdata->ap_num; eint_num += 32) {
|
for (eint_num = 0;
|
||||||
|
eint_num < pctl->devdata->ap_num;
|
||||||
|
eint_num += 32, reg += 4) {
|
||||||
status = readl(reg);
|
status = readl(reg);
|
||||||
reg += 4;
|
|
||||||
while (status) {
|
while (status) {
|
||||||
offset = __ffs(status);
|
offset = __ffs(status);
|
||||||
index = eint_num + offset;
|
index = eint_num + offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user