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

Commit 7d981405d0fd ("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: ac34de14ac30 ("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