RE: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Alice Guo (OSS)
> -Original Message- > From: Dominique MARTINET > Sent: 2021年4月19日 13:03 > To: Alice Guo (OSS) > Subject: Re: [RFC v1 PATCH 3/3] driver: update all the code that use > soc_device_match > > Alice Guo (OSS) wrote on Mon, Apr 19, 2021 at 12:27:22PM +0

RE: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Alice Guo (OSS)
> -Original Message- > From: Leon Romanovsky > Sent: 2021年4月19日 13:02 > To: Alice Guo (OSS) > Cc: gre...@linuxfoundation.org; raf...@kernel.org; Horia Geanta > ; Aymen Sghaier ; > herb...@gondor.apana.org.au; da...@davemloft.net; t...@atomide.com; > geert+re

RE: [RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-19 Thread Alice Guo (OSS)
> -Original Message- > From: Dominique MARTINET > Sent: 2021年4月19日 12:49 > To: Alice Guo (OSS) > Cc: gre...@linuxfoundation.org; raf...@kernel.org; Horia Geanta > ; Aymen Sghaier ; > herb...@gondor.apana.org.au; da...@davemloft.net; t...@atomide.com; > geert+re

[RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo Update all the code that use soc_device_match because add support for soc_device_match returning -EPROBE_DEFER. Signed-off-by: Alice Guo --- drivers/bus/ti-sysc.c | 2 +- drivers/clk/renesas/r8a7795-cpg-mssr.c| 4 +++-

[RFC v1 PATCH 2/3] caam: add defer probe when the caam driver cannot identify SoC

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo When imx8_soc_info_driver uses module_platform_driver() to regitser itself, the caam driver cannot identify the SoC in the machine because the SoC driver is probed later, so that add return -EPROBE_DEFER. Signed-off-by: Alice Guo --- drivers/crypto/caam/ctrl.c | 3 +++ 1 file

[RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo In i.MX8M boards, the registration of SoC device is later than caam driver which needs it. Caam driver needs soc_device_match to provide -EPROBE_DEFER when no SoC device is registered and no early_soc_dev_attr. Signed-off-by: Alice Guo --- drivers/base/soc.c | 5 + 1 file

[RFC v1 PATCH 0/3] support soc_device_match to return -EPROBE_DEFER

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo In patch "soc: imx8m: change to use platform driver", change soc-imx8m.c to use module platform driver and use NVMEM APIs to ocotp register, the reason is that directly reading ocotp egister causes kexec kernel hang because kernel will disable unused clks after kernel boots up.

RE: [EXT] regression due to soc_device_match not handling defer (Was: [PATCH v4 4/4] soc: imx8m: change to use platform driver)

2021-03-29 Thread Alice Guo (OSS)
Hi, Thanks for reporting this issue, I'll check and add a fix to handle defer probe. Best regards, Alice Guo > -Original Message- > From: Dominique MARTINET > Sent: 2021年3月29日 17:09 > To: Alice Guo ; Shawn Guo ; > Krzysztof Kozlowski > Cc: robh...@kernel.org;

[PATCH v1] arm64: dts: imx8m: add pmu node

2021-02-22 Thread Alice Guo (OSS)
From: Alice Guo Adding pmu node supports to use perf tool to monitor the CPU performance of the inmate cell when enabling Jailhouse and running dual Linux OS. Signed-off-by: Alice Guo --- arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts | 7 +++

RE: [PATCH v1] LF-3434: arm64: dts: imx8m: add pmu node

2021-02-22 Thread Alice Guo (OSS)
Ignore this patch. > -Original Message- > From: linux-arm-kernel On > Behalf Of Alice Guo (OSS) > Sent: 2021年2月23日 11:08 > To: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx > > Cc: de

[PATCH v1] LF-3434: arm64: dts: imx8m: add pmu node

2021-02-22 Thread Alice Guo (OSS)
From: Alice Guo Adding pmu node supports to use perf tool to monitor the CPU performance of the inmate cell when enabling Jailhouse and running dual Linux OS. Signed-off-by: Alice Guo --- arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts | 7 +++

[PATCH v10 2/4] arm64: dts: imx8m: add SoC ID compatible

2021-01-04 Thread Alice Guo (OSS)
From: Alice Guo Add compatible string to .dtsi files for binding of imx8_soc_info and device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v10: - none Changes for v9: - none Changes for v8: - none Changes for v7: - none Changes for v6: - leave only the

[PATCH v10 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID

2021-01-04 Thread Alice Guo (OSS)
From: Alice Guo In order to be able to use NVMEM APIs to read soc unique ID, add the nvmem data cell and name for nvmem-cells to the "soc" node, and add a nvmem node which provides soc unique ID to efuse@3035. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v10:

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

2021-01-04 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

[PATCH v10 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2021-01-04 Thread Alice Guo (OSS)
From: Alice Guo Add DT Binding doc for the Unique ID of i.MX 8M series. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Alice Guo --- Changes for v10: - add Reviewed-by Changes for v9: - add additionalProperties for "^soc@[0-9a-f]+$" - add examples Changes for

[PATCH v9 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID

2020-12-22 Thread Alice Guo (OSS)
From: Alice Guo In order to be able to use NVMEM APIs to read soc unique ID, add the nvmem data cell and name for nvmem-cells to the "soc" node, and add a nvmem node which provides soc unique ID to efuse@3035. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v9:

[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

[PATCH v9 2/4] arm64: dts: imx8m: add SoC ID compatible

2020-12-22 Thread Alice Guo (OSS)
From: Alice Guo Add compatible string to .dtsi files for binding of imx8_soc_info and device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v9: - none Changes for v8: - none Changes for v7: - none Changes for v6: - leave only the changelog under '---' Changes

[PATCH v9 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-22 Thread Alice Guo (OSS)
From: Alice Guo Add DT Binding doc for the Unique ID of i.MX 8M series. Signed-off-by: Alice Guo --- Changes for v9: - add additionalProperties for "^soc@[0-9a-f]+$" - add examples Changes for v8: - match soc node with regular expression Changes for v7: - change to a separate schema file

RE: [PATCH v8 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-21 Thread Alice Guo (OSS)
> -Original Message- > From: Rob Herring > Sent: 2020年12月18日 22:00 > To: Alice Guo (OSS) > Cc: Krzysztof Kozlowski ; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > devicet...@vger.kernel.org; linux-arm-ker...@lists.i

RE: [PATCH v8 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID

2020-12-20 Thread Alice Guo (OSS)
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年12月19日 20:17 > To: Alice Guo (OSS) > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; devicet...@vger.kernel.org; > linux-arm-ker...@lists

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

2020-12-20 Thread Alice Guo (OSS)
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年12月19日 20:18 > To: Alice Guo (OSS) > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; devicet...@vger.kernel.org; > linux-arm-ker...@lists

RE: [PATCH v8 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-18 Thread Alice Guo (OSS)
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年12月18日 17:37 > To: Alice Guo (OSS) > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; devicet...@vger.kernel.org; > linux-arm-ker...@lists

RE: [PATCH v8 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-18 Thread Alice Guo (OSS)
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年12月18日 16:52 > To: Alice Guo (OSS) > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; devicet...@vger.kernel.org; > linux-arm-ker...@lists

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

2020-12-18 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

[PATCH v8 2/4] arm64: dts: imx8m: add SoC ID compatible

2020-12-18 Thread Alice Guo (OSS)
From: Alice Guo Add compatible string to .dtsi files for binding of imx8_soc_info and device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v8: - none Changes for v7: - none Changes for v6: - leave only the changelog under '---' Changes for v5: - none Changes

[PATCH v8 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-18 Thread Alice Guo (OSS)
From: Alice Guo Add DT Binding doc for the Unique ID of i.MX 8M series. Signed-off-by: Alice Guo --- Changes for v8: - match soc node with regular expression Changes for v7: - change to a separate schema file Changes for v6: - none Changes for v5: - correct the error of using allOf

[PATCH v8 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID

2020-12-18 Thread Alice Guo (OSS)
From: Alice Guo In order to be able to use NVMEM APIs to read soc unique ID, add the nvmem data cell and name for nvmem-cells to the "soc" node, and add a nvmem node which provides soc unique ID to efuse@3035. Signed-off-by: Alice Guo --- Changes for v8: - none Changes for v7: - add

RE: [PATCH v7 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-17 Thread Alice Guo (OSS)
> -Original Message- > From: Rob Herring > Sent: 2020年12月16日 4:33 > To: Alice Guo (OSS) > Cc: shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; k...@kernel.org; devicet...@vger.kernel.org; > linux-arm-ker...@lists.infrad

RE: [PATCH v7 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-16 Thread Alice Guo (OSS)
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年12月15日 17:11 > To: Alice Guo (OSS) > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; devicet...@vger.kernel.org; > linux-arm-ker...@lists

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

2020-12-15 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

[PATCH v7 2/4] arm64: dts: imx8m: add SoC ID compatible

2020-12-15 Thread Alice Guo (OSS)
From: Alice Guo Add compatible string to .dtsi files for binding of imx8_soc_info and device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v7: - none Changes for v6: - leave only the changelog under '---' Changes for v5: - none Changes for v4: - change

[PATCH v7 3/4] arm64: dts: imx8m: add NVMEM provider and consumer to read soc unique ID

2020-12-15 Thread Alice Guo (OSS)
From: Alice Guo In order to be able to use NVMEM APIs to read soc unique ID, add the nvmem data cell and name for nvmem-cells to the "soc" node, and add a nvmem node which provides soc unique ID to efuse@3035. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alice Guo --- Changes for v7:

[PATCH v7 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-15 Thread Alice Guo (OSS)
From: Alice Guo Add DT Binding doc for the Unique ID of i.MX 8M series. Signed-off-by: Alice Guo --- Changes for v7: - change to a separate schema file Changes for v6: - none Changes for v5: - correct the error of using allOf Changes for v4: - use allOf to limit new version DTS files for

RE: [PATCH v6 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-12-08 Thread Alice Guo (OSS)
Gentle ping.. and Krzysztof Kozlowski, do you agree? Best Regards, Alice Guo > -Original Message- > From: linux-arm-kernel On > Behalf Of Alice Guo (OSS) > Sent: 2020年12月1日 11:31 > To: Rob Herring ; Krzysztof Kozlowski ; > shawn...@kernel.org > Cc: devicet...@vger

RE: [PATCH v6 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID

2020-11-30 Thread Alice Guo (OSS)
> -Original Message- > From: linux-arm-kernel On > Behalf Of Rob Herring > Sent: 2020年12月1日 5:57 > To: Alice Guo > Cc: devicet...@vger.kernel.org; Peng Fan ; > s.ha...@pengutronix.de; linux-kernel@vger.kernel.org; k...@kernel.org; > dl-linux-imx ; shawn...@kernel.org; >