Re: [PATCH v9 4/4] soc: imx8m: change to use platform driver

2020-12-22 Thread Fabio Estevam
Hi Alice, On Tue, Dec 22, 2020 at 5:11 AM Alice Guo (OSS) wrote: > - soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH); > - soc_uid <<= 32; > - soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW); > + if (dev) { > + int ret = 0; No need to initialize

[PATCH v9 4/4] soc: imx8m: change to use platform driver

2020-12-22 Thread Alice Guo (OSS)
From: Alice Guo Directly reading ocotp register depends on that bootloader enables ocotp clk, which is not always effective, so change to use nvmem API. Using nvmem API requires to support driver defer probe and thus change soc-imx8m.c to use platform driver. The other reason is that directly