]> 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)
commit2d1853537bbb4e5a6d80e4b9a8df2952dc1a226a
treefcf53ce61d4758fab492eb29e28db97b619a6b99
parent949b10e65aa8d8481a84547dbaeb35c26dcbbc36
soc: imx8m: Enable OCOTP clock before reading the register

Commit 78c394603d83 ("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: b934c4df10ee ("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