[PATCH] pinctrl: mediatek: common: Fix probe failure for devices without EINT
Linus Walleij
linusw at kernel.org
Thu Mar 19 11:52:46 PDT 2026
On Tue, Mar 17, 2026 at 12:03 PM Luca Leonardo Scorcia
<l.scorcia at gmail.com> wrote:
> Some pinctrl devices like mt6397 or mt6392 don't support EINT at all, but
> the mtk_eint_init function is always called and returns -ENODEV, which
> then bubbles up and causes probe failure.
>
> To address this only call mtk_eint_init if EINT pins are present.
>
> Tested on Xiaomi Mi Smart Clock x04g (mt6392).
>
> Fixes: e46df235b4e6 ("pinctrl: mediatek: refactor EINT related code for all MediaTek pinctrl can fit")
> Signed-off-by: Luca Leonardo Scorcia <l.scorcia at gmail.com>
Patch applied for fixes!
Yours,
Linus Walleij
More information about the Linux-mediatek
mailing list