Skip to content

Commit 34024cf

Browse files
hvbjvblinusw
authored andcommitted
pinctrl: mediatek: Fix new design debounce issue
Calculate the true offset of eint according to index. Fixes: 3ef9f71 ("pinctrl: mediatek: Add EINT support for multiple addresses") Signed-off-by: Hao Chang <[email protected]> Signed-off-by: Qingliang Li <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent fe412e3 commit 34024cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/mediatek/mtk-eint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_num,
449449
return -EOPNOTSUPP;
450450

451451
virq = irq_find_mapping(eint->domain, eint_num);
452-
eint_offset = (eint_num % 4) * 8;
452+
eint_offset = (idx % 4) * 8;
453453
d = irq_get_irq_data(virq);
454454

455455
set_offset = (idx / 4) * 4 + eint->regs->dbnc_set;

0 commit comments

Comments
 (0)