Re: [PATCH] hwrng: ingenic - Fix a resource leak in an error handling path

2020-12-20 Thread Zhou Yanjie
or Ingenic X1830") Signed-off-by: Christophe JAILLET --- drivers/char/hw_random/ingenic-trng.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) Thanks for fixing it, and apologize for my carelessness. Tested-by: 周琰杰 (Zhou Yanjie) diff --git a/drivers/char/hw_random/

[PATCH 2/2] crypto: Ingenic: Add hardware TRNG for Ingenic X1830.

2020-09-13 Thread Zhou Yanjie
Add X1830 SoC digital true random number generator driver. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/char/hw_random/Kconfig| 14 +++ drivers/char/hw_random/Makefile | 1

[PATCH 0/2] Add support for the TRNG in Ingenic X1830.

2020-09-13 Thread Zhou Yanjie
1.Add the TRNG bindings for the X1830 SoC from Ingenic. 2.Add X1830 SoC digital true random number generator driver. 周琰杰 (Zhou Yanjie) (2): dt-bindings: RNG: Add Ingenic TRNG bindings. crypto: Ingenic: Add hardware TRNG for Ingenic X1830. .../devicetree/bindings/rng/ingenic,trng.yaml

[PATCH 1/2] dt-bindings: RNG: Add Ingenic TRNG bindings.

2020-09-13 Thread Zhou Yanjie
Add the TRNG bindings for the X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- .../devicetree/bindings/rng/ingenic,trng.yaml | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/ingenic,trng.yaml diff --git a

Re: [crypto:master 164/167] drivers/char/hw_random/ingenic-rng.c:118:1-6: WARNING: invalid free of devm_ allocated data (fwd)

2020-08-07 Thread Zhou Yanjie
Cc: l...@intel.com, Julia Lawall Subject: [crypto:master 164/167] drivers/char/hw_random/ingenic-rng.c:118:1-6: WARNING: invalid free of devm_ allocated data CC: kbuild-...@lists.01.org CC: linux-crypto@vger.kernel.org TO: "周琰杰 (Zhou Yanjie)" CC: Herbert Xu CC: PrasannaKumar Mura

Re: [PATCH] crypto: ingenic - Drop kfree for memory allocated with devm_kzalloc

2020-08-07 Thread Zhou Yanjie
Hello, 在 2020/8/4 下午4:11, Wei Yongjun 写道: It's not necessary to free memory allocated with devm_kzalloc and using kfree leads to a double free. Thanks for fix it. Reviewed-by: 周琰杰 (Zhou Yanjie) Fixes: 190873a0ea45 ("crypto: ingenic - Add hardware RNG for Ingenic JZ4780

[PATCH v2 1/2] dt-bindings: RNG: Add Ingenic RNG bindings.

2020-07-22 Thread Zhou Yanjie
Add the RNG bindings for the JZ4780 SoC and the X1000 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: No change. .../devicetree/bindings/rng/ingenic,rng.yaml | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentat

[PATCH v2 0/2] Add support for the RNG in Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
v1->v2: Use "help" instead "---help---" in Kconfig. 周琰杰 (Zhou Yanjie) (2): dt-bindings: RNG: Add Ingenic RNG bindings. crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000. .../devicetree/bindings/rng/ingenic,rng.yaml | 36 + drivers

[PATCH v2 2/2] crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
Add JZ4780 SoC and X1000 SoC random number generator driver, based on PrasannaKumar Muralidharan's JZ4780 RNG driver. Tested-by: 周正 (Zhou Zheng) Tested-by: Mathieu Malaterre Suggested-by: Jeffrey Walton Signed-off-by: PrasannaKumar Muralidharan Signed-off-by: 周琰杰 (Zhou Yanjie) ---

Re: [PATCH 2/2] crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
Hello Randy, 在 2020/7/23 上午2:27, Randy Dunlap 写道: On 7/22/20 9:40 AM, 周琰杰 (Zhou Yanjie) wrote: diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 0ad17efc96df..fcb06027cd88 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig

[PATCH 2/2] crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
Add JZ4780 SoC and X1000 SoC random number generator driver, based on PrasannaKumar Muralidharan's JZ4780 RNG driver. Tested-by: 周正 (Zhou Zheng) Tested-by: Mathieu Malaterre Suggested-by: Jeffrey Walton Signed-off-by: PrasannaKumar Muralidharan Signed-off-by: 周琰杰 (Zhou Yanjie) --- dr

[PATCH 1/2] dt-bindings: RNG: Add Ingenic RNG bindings.

2020-07-22 Thread Zhou Yanjie
Add the RNG bindings for the JZ4780 SoC and the X1000 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- .../devicetree/bindings/rng/ingenic,rng.yaml | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/ingenic

[PATCH 0/2] Add support for the RNG in Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
1.Add the RNG bindings for the JZ4780 SoC and the X1000 SoC from Ingenic. 2.Add JZ4780 SoC and X1000 SoC random number generator driver, based on PrasannaKumar Muralidharan's JZ4780 RNG driver. 周琰杰 (Zhou Yanjie) (2): dt-bindings: RNG: Add Ingenic RNG bindings. crypto: Ingenic