[linux-sunxi] [PATCH v9 3/4] MAINTAINERS: Add myself as maintainer of Allwinner Security System

2015-05-14 Thread LABBE Corentin
Signed-off-by: LABBE Corentin --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5d87ccb..f2518d8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -555,6 +555,12 @@ S: Maintained F: Documentation/i2c/busses/i2c-ali1563 F: drivers/i2c/b

[linux-sunxi] [PATCH v9 2/4] ARM: sun4i: dt: Add DT bindings documentation for SUN4I Security System

2015-05-14 Thread LABBE Corentin
This patch adds documentation for Device-Tree bindings for the Security System cryptographic accelerator driver. Signed-off-by: LABBE Corentin --- Documentation/devicetree/bindings/crypto/sun4i-ss.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/de

[linux-sunxi] [PATCH v9 4/4] crypto: Add Allwinner Security System crypto accelerator

2015-05-14 Thread LABBE Corentin
Add support for the Security System included in Allwinner SoC A20. The Security System is a hardware cryptographic accelerator that support: - MD5 and SHA1 hash algorithms - AES block cipher in CBC/ECB mode with 128/196/256bits keys. - DES and 3DES block cipher in CBC/ECB mode Signed-off-by: LABBE

[linux-sunxi] [PATCH v9] crypto: Add Allwinner Security System crypto accelerator

2015-05-14 Thread LABBE Corentin
Hello This is the driver for the Security System included in Allwinner SoC A20. The Security System (SS for short) is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on others Allwinner SoC: - A10, A10s, A13, A31 and A33 manual give the

[linux-sunxi] [PATCH v9 1/4] ARM: sun7i: dt: Add Security System to A20 SoC DTS

2015-05-14 Thread LABBE Corentin
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on many Allwinner SoC. This patch enable the Security System on the Allwinner A20 SoC Device-tree. Signed-off-by: LABBE Corentin --- arch/arm/boot/dts/sun7i-a20.dtsi

[linux-sunxi] Re: Android for A20 SOC: No board-sun7i.c file

2015-05-14 Thread Guillaume Debray
I have found core.c, with static void __init sun7i_init(void) { pr_info("%s: enter\n", __func__); sw_pdev_init(); /* Register platform devices here!! */ } Le mercredi 13 mai 2015 17:15:43 UTC+2, Guillaume Debray a écrit : > > I'm trying to modify the kernel of Android (4.2) with this instructi

Re: [linux-sunxi] BananPro WiFi Module (ap6181) Problems

2015-05-14 Thread Peter Mattern
Running mainline kernel 4.0.3 (Arch Linux ARM) on a Cubietruck I recently stumbled upon some systemd journal messages during boot that seemed possibly related and hence worth posting to me: > sunxi-mmc 1c12000.mmc: No vqmmc regulator found > sunxi-mmc 1c12000.mmc: base:0xf011e000 irq:27 > sunxi

[linux-sunxi] Handling A20 External Interrupts with Userspace IO

2015-05-14 Thread ivoronov
Dear Colleagues, Playing with Cubieabord2 we are trying to assign userspace IO handling A20 external interrupts with no success. We just updated our system to Linux 4.1-rc3 to be up to date. We have been having the same issue on 3.19.4 in the past. Our main references http://linux-sunxi.org/

[linux-sunxi] Re: [PATCH v9 4/4] crypto: Add Allwinner Security System crypto accelerator

2015-05-14 Thread Herbert Xu
On Thu, May 14, 2015 at 02:59:01PM +0200, LABBE Corentin wrote: > > + err = crypto_ablkcipher_setkey(op->fallback, kkey, op->keylen); > + if (err != 0) { > + dev_err(ss->dev, "Cannot set key on fallback\n"); > + return -EINVAL; > + } You cannot call setkey from

[linux-sunxi] Re: [PATCH v9 4/4] crypto: Add Allwinner Security System crypto accelerator

2015-05-14 Thread Herbert Xu
On Thu, May 14, 2015 at 02:59:01PM +0200, LABBE Corentin wrote: > > +int sun4i_hash_export(struct ahash_request *areq, void *out) > +{ > + struct sun4i_req_ctx *op = ahash_request_ctx(areq); > + > + memcpy(out, op, sizeof(struct sun4i_req_ctx)); > + return 0; > +} > + > +int sun4i_hash_