Skip to content
Commit 79315ebf authored by Peng Fan's avatar Peng Fan Committed by Greg Kroah-Hartman
Browse files

mmc: sdhci-esdhc-imx: validate pinctrl before use it



[ Upstream commit f410ee0a ]

When imx_data->pinctrl is not a valid pointer, pinctrl_lookup_state
will trigger kernel panic.

When we boot Dual OS on Jailhouse hypervisor, we let the 1st Linux to
configure pinmux ready for the 2nd OS, so the 2nd OS not have pinctrl
settings.

Similar to this commit b62eee9f ("mmc: sdhci-esdhc-imx: no fail when no pinctrl available").

Reviewed-by: default avatarBough Chen <haobo.chen@nxp.com>
Reviewed-by: default avatarAlice Guo <alice.guo@nxp.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1614222604-27066-6-git-send-email-peng.fan@oss.nxp.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 47ac2261
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