Skip to content
Commit 57161067 authored by A.s. Dong's avatar A.s. Dong Committed by Linus Walleij
Browse files

pinctrl: imx: fix NO_PAD_CTL setting for MMIO pads



After patch b96eea71 ("pinctrl: fsl: add scu based pinctrl support"),
NO_PAD_CTL pads map are not skipped anymore which results in
a possible memory corruption. As we actually only need to create config
maps for SCU pads and MMIO pads which are not using the default config
(a.k.a IMX_NO_PAD_CTL), so let's add a proper check before creating
the config maps. And during MMIO pads parsing, we also need update the
list_p point as SCU case to ensure the pin data next parsed is correct.

Cc: Linus Walleij <linus.walleij@linaro.org>
Fixes: b96eea71 ("pinctrl: fsl: add scu based pinctrl support")
Reported-by: default avatarMartin Kaiser <martin@kaiser.cx>
Suggested-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: default avatarMartin Kaiser <martin@kaiser.cx>
Tested-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 81c9d563
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment