]> git.baikalelectronics.ru Git - kernel.git/commit
soc: imx8m: Enable OCOTP clock before reading the register
authorXiaolei Wang <xiaolei.wang@windriver.com>
Fri, 28 Oct 2022 04:14:18 +0000 (12:14 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Nov 2022 07:52:53 +0000 (15:52 +0800)
commit09502a19412df89c0a18c8773732a59b42080ec9
treefcf53ce61d4758fab492eb29e28db97b619a6b99
parentf86351522c1e25ee10c91beec270e421a242457c
soc: imx8m: Enable OCOTP clock before reading the register

Commit fe4931d3f72f ("soc: imx8m: change to use platform driver") ever
removed the dependency on bootloader for enabling OCOTP clock.  It
helped to fix a kexec kernel hang issue.  But unfortunately it caused
a regression on CAAM driver and got reverted.

This is the second try to enable the OCOTP clock by directly calling
clock API instead of indirectly enabling the clock via nvmem API.

Fixes: 5717469c1f79 ("Revert "soc: imx8m: change to use platform driver"")
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/soc-imx8m.c