]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx8qxp-lpcg: Warn against devm_platform_ioremap_resource
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 9 Dec 2019 20:56:28 +0000 (22:56 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Dec 2019 08:06:10 +0000 (16:06 +0800)
commit249fce6f3ab0dbd98caa9bc8ea4b50fa709e786a
treebbdf1a62dd2a21261bf38aa5ca6fcb75b18ef4ff
parent134d43bb1ff09a696996f16ed8b28d404b770c8a
clk: imx8qxp-lpcg: Warn against devm_platform_ioremap_resource

On imx8 the LPCG nodes map entire subsystems and overlap peripherals,
this means that using devm_platform_ioremap_resource will cause many
devices to fail to probe including serial ports.

Well-meaning but boot-breaking patches were posted multiple times so add
a comment explaining this issue.

Suggested-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8qxp-lpcg.c