Re: [linux-sunxi] [PATCH 00/15] rtc: sun6i: clock rework and pre-H6 SoC support

2018-11-28 Thread Corentin Labbe
rm/boot/dts/sun8i-h3.dtsi | 4 + > arch/arm/boot/dts/sun8i-r40.dtsi | 18 ++- > arch/arm/boot/dts/sunxi-h3-h5.dtsi| 28 ++--- > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 22 ++-- > arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 4 + >

[linux-sunxi] [PATCH RFC 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-01-24 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/crypto/sun8i-ce.txt | 47 +++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH RFC 11/11] sunxi_defconfig: add new crypto options

2019-01-24 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] [PATCH RFC 08/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-01-24 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on Most Allwinner SoCs. This patch enable the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner

[linux-sunxi] [PATCH RFC 07/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-01-24 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on Most Allwinner SoCs. This patch enable the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner

[linux-sunxi] [PATCH RFC 06/11] ARM: dts: sun8i: h3: Add Crypto Engine node

2019-01-24 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Most Allwinner SoCs. This patch enable the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi

[linux-sunxi] [PATCH RFC 00/11] crypto: add Allwinner Crypto Engine driver

2019-01-24 Thread Corentin Labbe
sun4i-ss driver. For the moment only cipher algorithms are handled and others algorithms (RSA, RNG, etc...) will be supported later. Since this patchset create a second driver for sunxi, a dedicated directory is created and the sun4i-ss will be moved inside. Regards Corentin Labbe (11): crypto

[linux-sunxi] [PATCH RFC 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-01-24 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H3, R40, A64, H5, H6 This driver support also the Security System present on A80 and A83T. This driver supports AES cipher in CTR/CBC/ECB/CTS mode. Signed-off-by: Corentin Labbe --- drivers/crypto

[linux-sunxi] [PATCH RFC 05/11] ARM: dts: sun8i: r40: add crypto engine node

2019-01-24 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Most Allwinner SoCs. This patch enable the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40

[linux-sunxi] [PATCH RFC 09/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-01-24 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. This patch enable the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed

[linux-sunxi] [PATCH RFC 10/11] crypto: move sunxi-ss in the dedicated allwinner directory

2019-01-24 Thread Corentin Labbe
This patch move the sunxi-ss driver in the dedicated allwinner directory Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 25 - drivers/crypto/Makefile | 1

[linux-sunxi] [PATCH RFC 04/11] ARM: dts: sun8i: a83t: Add Security System node

2019-01-24 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch add it on the Allwinner A83T SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 11

[linux-sunxi] [PATCH RFC 01/11] crypto: Add allwinner subdirectory

2019-01-24 Thread Corentin Labbe
Since a new Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig

Re: [linux-sunxi] [PATCH v2 00/10] Allwinner sunxi message box support

2019-02-28 Thread Corentin Labbe
On Thu, Feb 28, 2019 at 11:29:37PM -0600, Samuel Holland wrote: > This series adds support for the "hardware message box" in sun8i, sun9i, > and sun50i SoCs, used for communication with the ARISC management > processor (the platform's equivalent of the ARM SCP). The end goal is to > use the arm_scp

[linux-sunxi] [PATCH 1/4] crypto: sun4i-ss: Handle better absence/presence of IV

2019-04-18 Thread Corentin Labbe
This patch remove the test against areq->info since sun4i-ss could work without it (ECB). Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 10 -- 1 fil

[linux-sunxi] [PATCH 2/4] crypto: sun4i-ss: remove ivsize from ECB

2019-04-18 Thread Corentin Labbe
ECB algos does not need IV. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/sunxi-ss/sun4i-ss

[linux-sunxi] [PATCH 3/4] crypto: sun4i-ss: Fix invalid calculation of hash end

2019-04-18 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c b/drivers/crypto/sunxi-ss/sun4i-ss-hash.c index a4b5ff2b72f8..f6936bb3b7be 100644 --- a/drivers/crypto/sunxi-ss/su

[linux-sunxi] [PATCH 4/4] crypto: sun4i-ss: fallback when length is not multiple of blocksize

2019-04-18 Thread Corentin Labbe
sun4i-ss does not handle requests when length are not a multiple of blocksize. This patch adds a fallback for that case. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-cip

[linux-sunxi] [PATCH 0/4] crypto: sun4i-ss: Fix problem reported by CONFIG_CRYPTO_EXTRA_TESTS

2019-04-18 Thread Corentin Labbe
Hello Loading sun4i-ss with CONFIG_CRYPTO_EXTRA_TESTS, lead to hung tasks. This patchset fix the two deadlock (one in hash, one in cipher) found. This patchset fix also some invalid IV handling found while debugging thoses issues. Regards Corentin Labbe (4): crypto: sun4i-ss: Handle better

Re: [linux-sunxi] Re: Linux 5.1 not booting on banana Pi

2019-05-10 Thread Corentin Labbe
On Fri, May 10, 2019 at 11:38:04AM +0200, Marc Haber wrote: > Bisecting the kernel identified 4e7babba30d820c4195b1d58cf51dce3c22ecf2b > which is unfortunately too complex to validly roll back (adding Eric and > Herbert, Authors and Off-Signers to Cc). > > As a short-term workaround, setting CONFI

Re: [linux-sunxi] Re: [PATCH RFC 00/11] crypto: add Allwinner Crypto Engine driver

2019-05-23 Thread Corentin Labbe
On Thu, May 23, 2019 at 03:55:57AM -0700, Domenico Andreoli wrote: > On Friday, January 25, 2019 at 8:53:34 AM UTC+1, clabbe.montjoie wrote: > > > > Hello > > > > Hi, > > This patchset adds the driver for the cryptographic accelerator found on > > Allwinner H3/A64/H5/H2+/H6/R40 SoCs called Cryp

[linux-sunxi] [PATCH 1/3] configs: Sinovoip_BPI_M3_defconfig: Fix invalid DLDO3 settings

2019-06-16 Thread Corentin Labbe
The current dldo3 voltage while sufficient for 100Mbit/s transfers is insufficient for achieving 1Gbit/s. In fact this problem is the same that I reported on Linux month ago. This patch set DLDO3 to 3.3v which is needed by the PHY. Signed-off-by: Corentin Labbe --- configs

[linux-sunxi] [PATCH 3/3] configs: Sinovoip_BPI_M3_defconfig: enable sun8i-emac

2019-06-16 Thread Corentin Labbe
Since the BPIM3 have a sun8i-emac, this patch enables it on Sinovoip_BPI_M3_defconfig. Signed-off-by: Corentin Labbe --- configs/Sinovoip_BPI_M3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/Sinovoip_BPI_M3_defconfig b/configs/Sinovoip_BPI_M3_defconfig index

[linux-sunxi] [PATCH 2/3] net: sun8i-emac: bring back support of A83T

2019-06-16 Thread Corentin Labbe
Building sun8i-emac for the A83T variant fail. This is due to different sunxi_ccm_reg members structures of R40 and H3 not present in A83T ones. This patch fix this problem by adding some ifdef around thses problematic code. Signed-off-by: Corentin Labbe --- drivers/net/sun8i_emac.c | 4

[linux-sunxi] [PATCH 0/3] Enable networking for BananaPi M3

2019-06-16 Thread Corentin Labbe
Hello This serie fix building sun8i-emac for a83t and then enable networking for BananaPi M3. Regards Corentin Labbe (3): configs: Sinovoip_BPI_M3_defconfig: Fix invalid DLDO3 settings net: sun8i-emac: bring back support of A83T configs: Sinovoip_BPI_M3_defconfig: enable sun8i-emac

Re: [linux-sunxi] [PATCH 0/3] Enable networking for BananaPi M3

2019-06-16 Thread Corentin Labbe
On Mon, Jun 17, 2019 at 11:15:17AM +0800, Chen-Yu Tsai wrote: > On Mon, Jun 17, 2019 at 12:31 AM Corentin Labbe > wrote: > > > > Hello > > > > This serie fix building sun8i-emac for a83t and then enable networking > > for BananaPi M3. > > > > R

Re: [linux-sunxi] [PATCH v2 0/5] sunxi: H6: Enable USB (2.0) support

2019-06-24 Thread Corentin Labbe
ed to receive: -5 BOOTP broadcast 2 DHCP client bound to address 192.168.66.143 (6010 ms) *** ERROR: `serverip' not set Cannot autoload with TFTPGET But the network is working (download kernel via tftp with success) But I fear the EHCI timed out and co... Could it be related to yours patchs ? Anyw

Re: [linux-sunxi] Linux 5.2 leaves Banana Pi networkless

2019-07-11 Thread Corentin Labbe
On Wed, Jul 10, 2019 at 10:50:35PM +0200, Marc Haber wrote: > Hi, > > 5.2 is another mainline kernel that doesn't work on the Banana Pi. On Hello, which banana pi ? there are so many. > boot, the syslog is spewed with hundreds of lines of > > | sun4i-ss 1c15000.crypto-engine: ERROR: Invalid k

[linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-08 Thread Corentin Labbe
This patch adds the evaluation variant of the model A of the PineH64. The model A has the same size of the pine64 and has a PCIE slot. The only devicetree difference with current pineH64, is the PHY regulator. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/Makefile| 1

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Thu, Aug 08, 2019 at 04:50:35PM +0200, Clément Péron wrote: > Hi, > > On Thu, 8 Aug 2019 at 10:42, Corentin Labbe wrote: > > > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a

[linux-sunxi] Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slot. &

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote: > Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a): > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slo

[linux-sunxi] Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > > > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > >

[linux-sunxi] Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > >

[linux-sunxi] Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 01:57:50PM +0200, Corentin Labbe wrote: > > On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > > > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > > >

[linux-sunxi] [PATCH 2/9] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-09-06 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 26 + drivers/crypto/allwinner/Makefile

[linux-sunxi] [PATCH 1/9] crypto: Add allwinner subdirectory

2019-09-06 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig

[linux-sunxi] [PATCH 4/9] ARM: dts: sun8i: r40: add crypto engine node

2019-09-06 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 11 +++ 1

[linux-sunxi] [PATCH 6/9] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-09-06 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 11

[linux-sunxi] [PATCH 3/9] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-09-06 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 84 +++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH 0/9] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-09-06 Thread Corentin Labbe
and A83T SoCs, originaly this driver supported it also, but supporting both IP bringing too much complexity and another driver (sun8i-ss) will came for it. For the moment, the driver support only DES3/AES in ECB/CBC mode. Patchs for CTR/CTS/XTS and RNGs will came later. Regards Corentin Labbe (9

[linux-sunxi] [PATCH 5/9] ARM: dts: sun8i: h3: Add Crypto Engine node

2019-09-06 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 11 +++ 1

[linux-sunxi] [PATCH 8/9] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-09-06 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions

[linux-sunxi] [PATCH 7/9] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-09-06 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 11

[linux-sunxi] [PATCH 9/9] sunxi_defconfig: add new crypto options

2019-09-06 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] Re: [PATCH 1/9] crypto: Add allwinner subdirectory

2019-09-07 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 06:54:53AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:43PM +0200, Corentin Labbe wrote: > > Since a second Allwinner crypto driver will be added, it is better to > > create a dedicated subdirectory. > > > > Si

[linux-sunxi] Re: [PATCH 4/9] ARM: dts: sun8i: r40: add crypto engine node

2019-09-07 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 07:02:17AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:46PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic offloader that supports > > many algorithms. > > It could be found on most Allwinner SoCs. >

[linux-sunxi] Re: [PATCH 6/9] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-09-07 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 07:02:54AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:48PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic accelerator that supports > > many algorithms. > > It could be found on most Allwinner SoCs. >

[linux-sunxi] Re: [PATCH 9/9] sunxi_defconfig: add new crypto options

2019-09-07 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 07:03:53AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:51PM +0200, Corentin Labbe wrote: > > This patch adds the new allwinner crypto configs to sunxi_defconfig > > > > Signed-off-by: Corentin Labbe > > --- > > arc

[linux-sunxi] Re: [PATCH 2/9] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-09-07 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 11:19:51AM +0300, Maxime Ripard wrote: > Hi, > > I can't really comment on the crypto side, so my review is going to be > pretty boring. > > On Fri, Sep 06, 2019 at 08:45:44PM +0200, Corentin Labbe wrote: > > +static const st

[linux-sunxi] Re: [PATCH 2/9] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-09-09 Thread Corentin Labbe
On Mon, Sep 09, 2019 at 01:38:37PM +0200, Maxime Ripard wrote: > On Sat, Sep 07, 2019 at 09:04:08PM +0200, Corentin Labbe wrote: > > > Also, I'm not sure what is the point of having the clocks names be > > > parameters there as well. It's constant across all the co

[linux-sunxi] [PATCH 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-11 Thread Corentin Labbe
This patch enables power management on the Security System. Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 5 +++ drivers/crypto/sunxi-ss/sun4i-ss-core.c | 42 ++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/crypto

[linux-sunxi] [PATCH 1/2] crypto: sun4i-ss: simplify enable/disable of the device

2019-09-11 Thread Corentin Labbe
This patch regroups resource enabling/disabling in dedicated function. This simplify error handling and will permit to support power management. Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 73 ++--- 1 file changed, 42 insertions(+), 31

[linux-sunxi] [PATCH 0/2] crypto: sun4i-ss: Enable power management

2019-09-11 Thread Corentin Labbe
Hello This serie enables power management in the sun4i-ss driver. Regards Corentin Labbe (2): crypto: sun4i-ss: simplify enable/disable of the device crypto: sun4i-ss: enable pm_runtime drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 5 + drivers/crypto/sunxi-ss/sun4i-ss-core.c | 115

[linux-sunxi] Re: [PATCH 3/9] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-09-11 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 07:01:16AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:45PM +0200, Corentin Labbe wrote: > > This patch adds documentation for Device-Tree bindings for the > > Crypto Engine cryptographic accelerator driver. > > > > Si

[linux-sunxi] Re: [PATCH 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-12 Thread Corentin Labbe
On Thu, Sep 12, 2019 at 08:35:51AM +0200, Maxime Ripard wrote: > Hi, > > Le mer. 11 sept. 2019 à 13:46, Corentin Labbe > a écrit : > > > > This patch enables power management on the Security System. > > > > Signed-off-by: Corentin Labbe > > --- >

[linux-sunxi] Re: [PATCH 9/9] sunxi_defconfig: add new crypto options

2019-09-13 Thread Corentin Labbe
On Sat, Sep 07, 2019 at 07:03:53AM +0300, Maxime Ripard wrote: > On Fri, Sep 06, 2019 at 08:45:51PM +0200, Corentin Labbe wrote: > > This patch adds the new allwinner crypto configs to sunxi_defconfig > > > > Signed-off-by: Corentin Labbe > > --- > > arc

[linux-sunxi] [PATCH] crypto: sun4i-ss: erase key after use

2019-09-15 Thread Corentin Labbe
When a TFM is unregistered, the sun4i-ss driver does not clean the key used, leaking it in memory. This patch adds this absent key cleaning. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: # 4.3+ Signed-off-by: Corentin Labbe --- driv

[linux-sunxi] [PATCH v2 0/2] crypto: sun4i-ss: Enable power management

2019-09-18 Thread Corentin Labbe
Hello This serie enables power management in the sun4i-ss driver. Regards Changes since v1: - Fixed style in patch #1 - Check more return code of PM functions - Add PM support in hash/prng - reworked the probe order of PM functions and the PM strategy Corentin Labbe (2): crypto: sun4i-ss

[linux-sunxi] [PATCH v2 1/2] crypto: sun4i-ss: simplify enable/disable of the device

2019-09-18 Thread Corentin Labbe
This patch regroups resource enabling/disabling in dedicated function. This simplify error handling and will permit to support power management. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 77 +++-- 1 file changed, 46

[linux-sunxi] [PATCH v2 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-18 Thread Corentin Labbe
This patch enables power management on the Security System. Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 9 +++ drivers/crypto/sunxi-ss/sun4i-ss-core.c | 94 +++ drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 12 +++ drivers/crypto/sunxi-ss

[linux-sunxi] Re: [PATCH v2 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-23 Thread Corentin Labbe
On Thu, Sep 19, 2019 at 06:55:59PM +0200, Maxime Ripard wrote: > Hi, > > On Thu, Sep 19, 2019 at 07:10:35AM +0200, Corentin Labbe wrote: > > This patch enables power management on the Security System. > > > > Signed-off-by: Corentin Labbe > > --- > > dr

[linux-sunxi] [PATCH v3 1/2] crypto: sun4i-ss: simplify enable/disable of the device

2019-09-24 Thread Corentin Labbe
This patch regroups resource enabling/disabling in dedicated function. This simplify error handling and will permit to support power management. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- drivers/crypto/sunxi-ss/sun4i-ss-core.c | 77 +++-- 1 file changed, 46

[linux-sunxi] [PATCH v3 0/2] crypto: sun4i-ss: Enable power management

2019-09-24 Thread Corentin Labbe
Changes since v1: - Fixed style in patch #1 - Check more return code of PM functions - Add PM support in hash/prng - reworked the probe order of PM functions and the PM strategy Corentin Labbe (2): crypto: sun4i-ss: simplify enable/disable of the device crypto: sun4i-ss: enable pm_runtime

[linux-sunxi] [PATCH v3 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-24 Thread Corentin Labbe
This patch enables power management on the Security System. sun4i-ss now depends on PM because it simplify code and prevent some ifdef. But this is not a problem since arch maintainer want ARCH_SUNXI to depend on PM in the future. Signed-off-by: Corentin Labbe --- drivers/crypto/Kconfig

[linux-sunxi] [PATCH v2 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions

[linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 11 +++ 1

[linux-sunxi] [PATCH v2 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 11

[linux-sunxi] [PATCH v2 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-01 Thread Corentin Labbe
This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] [PATCH v2 06/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-10-01 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10

[linux-sunxi] [PATCH v2 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-01 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/crypto/allwinner/Makefile

[linux-sunxi] [PATCH v2 01/11] crypto: Add allwinner subdirectory

2019-10-01 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig

[linux-sunxi] [PATCH v2 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-01 Thread Corentin Labbe
in A64 DT - Added arm64 defconfig - Added support for PM functions - Splitted probe functions - Reworked clock settings - made reset mandatory Corentin Labbe (11): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bindings: crypto: Add DT bindings documentation

[linux-sunxi] [PATCH v2 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-01 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers/crypto/Makefile

[linux-sunxi] [PATCH v2 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-01 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 92 +++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v2 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-01 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8e05c39eab08..f2f330b8416d 100644 --- a/arch

Re: [linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-02 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 08:08:27AM +, Priit Laes wrote: > On Tue, Oct 01, 2019 at 08:41:34PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic offloader that supports > > many algorithms. > > It could be found on most Allwinner SoCs. > >

[linux-sunxi] Re: [PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-02 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 08:02:14AM +0200, Maxime Ripard wrote: > On Tue, Oct 01, 2019 at 08:41:35PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic accelerator that supports > > many algorithms. > > It could be found on most Allwinner SoCs. >

[linux-sunxi] Re: [PATCH v2 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-04 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 12:35:06PM +0200, Maxime Ripard wrote: > Hi, > > On Tue, Oct 01, 2019 at 08:41:32PM +0200, Corentin Labbe wrote: > > + /* CTS and recent CE (H6) need length in bytes, in word otherwise */ > > + if (ce->variant->model == CE_v2) > &g

[linux-sunxi] Re: [PATCH v2 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-04 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 07:54:58AM +0200, Maxime Ripard wrote: > On Tue, Oct 01, 2019 at 08:41:33PM +0200, Corentin Labbe wrote: > > This patch adds documentation for Device-Tree bindings for the > > Crypto Engine cryptographic accelerator driver. > > > > Si

[linux-sunxi] [PATCH v3 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-10 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 92 +++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v3 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-10 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v3 01/11] crypto: Add allwinner subdirectory

2019-10-10 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers/crypto/allwinner/Kconfig

[linux-sunxi] [PATCH v3 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-10 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions

[linux-sunxi] [PATCH v3 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-10 Thread Corentin Labbe
This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] [PATCH v3 06/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-10-10 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10

[linux-sunxi] [PATCH v3 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-10-10 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 10

[linux-sunxi] [PATCH v3 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-10 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers/crypto/Makefile

[linux-sunxi] [PATCH v3 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-10 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v3 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-10 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c9adae41bac0..c45fb6822e4a 100644 --- a/arch

[linux-sunxi] [PATCH v3 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-10 Thread Corentin Labbe
rt for PM functions - Splitted probe functions - Reworked clock settings - made reset mandatory Corentin Labbe (11): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine ARM: dts: sun8

[linux-sunxi] [PATCH v3 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-10 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/crypto/allwinner/Makefile

[linux-sunxi] Re: [PATCH v3 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-11 Thread Corentin Labbe
On Fri, Oct 11, 2019 at 09:57:05AM +0200, Maxime Ripard wrote: > On Thu, Oct 10, 2019 at 08:23:19PM +0200, Corentin Labbe wrote: > > + ce->reset = devm_reset_control_get_optional(&pdev->dev, "bus"); > > + if (IS_ERR(ce->reset)) { > > +

[linux-sunxi] [PATCH v4 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-12 Thread Corentin Labbe
0 DT - Removed old unnecessary interrupt_names in A64 DT - Added arm64 defconfig - Added support for PM functions - Splitted probe functions - Reworked clock settings - made reset mandatory Corentin Labbe (11): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bin

[linux-sunxi] [PATCH v4 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-12 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers/crypto/Makefile

[linux-sunxi] [PATCH v4 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-12 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c9adae41bac0..c45fb6822e4a 100644 --- a/arch

[linux-sunxi] [PATCH v4 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-12 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 + 1 file changed, 9 insertions(+) diff

[linux-sunxi] [PATCH v4 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-12 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/crypto/allwinner/Makefile

[linux-sunxi] [PATCH v4 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-12 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 + 1 file

  1   2   3   4   5   >