]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: mediatek: common-v1: Fix EINT breakage on older controllers
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 15 Apr 2025 11:23:37 +0000 (19:23 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Apr 2025 07:44:52 +0000 (09:44 +0200)
commitfe412e3a6c97cfe49ecf4564a278122f7d78e3f0
tree88cdd455d2f2e6de7ba220f2162d2d10ce97e1eb
parent457d9772e8a5cdae64f66b5f7d5b0247365191ec
pinctrl: mediatek: common-v1: Fix EINT breakage on older controllers

When EINT support for multiple addresses was introduced, the driver
library for the older generations (pinctrl-mtk-common) was not fixed
together. This resulted in invalid pointer accesses.

Fix up the filled in |struct mtk_eint| in pinctrl-mtk-common to match
what is now expected by the mtk-eint library.

Reported-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Closes: https://lore.kernel.org/all/43nd5jxpk7b7fv46frqlfjnqfh5jlpqsemeoakqzd4wdi3df6y@w7ycd3k5ezvn/
Fixes: 3ef9f710efcb ("pinctrl: mediatek: Add EINT support for multiple addresses")
Cc: Hao Chang <ot_chhao.chang@mediatek.com>
Cc: Qingliang Li <qingliang.li@mediatek.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/20250415112339.2385454-1-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c