Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-06-01 Thread Priit Laes
On Wed, 2016-06-01 at 20:00 +0200, Maxime Ripard wrote: > Hi, > > On Mon, May 30, 2016 at 04:50:16PM +0100, Mark Brown wrote: > > > > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal Suchanek wrote: > > > > > > On 30 May 2016 at 17:03, Mark Brown wrote: > > > > > > > > >

Re: [linux-sunxi] [PATCH] [V2] ARM: dts: sun7i: Add dts file for Bananapi M1 Plus board

2016-06-01 Thread Julian Calaby
Hi Luo yi, On Thu, Jun 2, 2016 at 12:36 PM, wrote: > From: Luo Yi > > Add support for the Bananapi M1 Plus A20 development board from > sinovoip.com.cn . This board is nearly a clone of the Lemaker's > Bananapro, but differ with the wlan chipset

[linux-sunxi] [PATCH] [V2] ARM: dts: sun7i: Add dts file for Bananapi M1 Plus board

2016-06-01 Thread luoyi . ly
From: Luo Yi Add support for the Bananapi M1 Plus A20 development board from sinovoip.com.cn . This board is nearly a clone of the Lemaker's Bananapro, but differ with the wlan chipset connection and i2s pinout. And I also enable the integrated audio codec on default. ---

Re: [linux-sunxi] Re: random decryption errors with sun4i-ss on dm-crypt

2016-06-01 Thread Timo S.
Short update: Corentin's fix (crypto: sun4i-ss - Replace spinlock_bh by spin_lock_irq{save|restore}) finally made it into the stable/longterm updates: Greg has just released the versions 4.4.12, 4.5.6 and 4.6.1 - all of which contain the patch. Regards, Timo On Wed, Apr 20, 2016 at 9:27 AM,

Re: [linux-sunxi] [PATCH 1/5] spi: sunxi: fix transfer timeout

2016-06-01 Thread Maxime Ripard
Hi Mark, On Mon, May 30, 2016 at 12:23:50PM +0100, Mark Brown wrote: > On Fri, May 27, 2016 at 03:10:11PM +1000, Julian Calaby wrote: > > On Fri, May 27, 2016 at 3:05 PM, Michal Suchanek wrote: > > > >> Also, should the changes for the drivers be in two separate patches

[linux-sunxi] Re: [PATCH 3/5] spi: sunxi: expose maximum transfer size limit

2016-06-01 Thread Maxime Ripard
On Mon, May 30, 2016 at 10:57:10AM +0200, Michal Suchanek wrote: > Hello, > > On 30 May 2016 at 10:37, Maxime Ripard > wrote: > > On Thu, May 26, 2016 at 07:25:24PM -, Michal Suchanek wrote: > >> The sun4i spi hardware can trasfer at most 63 bytes of data

[linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-06-01 Thread Maxime Ripard
Hi, On Mon, May 30, 2016 at 04:50:16PM +0100, Mark Brown wrote: > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal Suchanek wrote: > > On 30 May 2016 at 17:03, Mark Brown wrote: > > > > I really don't think it's worth caring too much about cases where the > > > DMA driver

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add dts file for Bananapi M1 Plus board

2016-06-01 Thread Maxime Ripard
Hi, On Wed, Jun 01, 2016 at 10:40:18AM +0800, luoyi wrote: > This is the new version of the patch. and I think maybe every board > should have their own dtb files. and we can you some cpp macro tricks > to merge their coressponding dts file. Please submit it as a new patch with send-email,

Re: [linux-sunxi] [PATCH v2 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Maxime Ripard
Hi, On Wed, Jun 01, 2016 at 03:35:07PM +0300, Siarhei Siamashka wrote: > On Wed, 1 Jun 2016 13:23:24 +0200 > Boris Brezillon wrote: > > > NAND chips are supposed to expose their capabilities through advanced > > mechanisms like READID, ONFI or JEDEC

Re: [linux-sunxi] [PATCH v2 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Boris Brezillon
On Wed, 1 Jun 2016 15:35:07 +0300 Siarhei Siamashka wrote: > On Wed, 1 Jun 2016 13:23:24 +0200 > Boris Brezillon wrote: > > > NAND chips are supposed to expose their capabilities through advanced > > mechanisms like READID, ONFI

[linux-sunxi] Re: [PATCH sunxi-tools 3/3] nand-image-builder: Add more details in the help context

2016-06-01 Thread Boris Brezillon
On Wed, 1 Jun 2016 14:43:22 +0200 Bernhard Nortmann wrote: > Am 01.06.2016 um 11:05 schrieb Boris Brezillon: > > Add explanation on where the options to pass to the tool should be > > extracted from, and add two examples to illustrate this explanation. > > > >

[linux-sunxi] Re: [PATCH sunxi-tools] Add a tool to generate raw NAND images

2016-06-01 Thread Boris Brezillon
On Wed, 1 Jun 2016 14:41:36 +0300 Siarhei Siamashka wrote: > On Mon, 30 May 2016 19:02:13 +0200 > Boris Brezillon wrote: > > > On Mon, 30 May 2016 19:46:17 +0300 > > Siarhei Siamashka wrote: > > >

[linux-sunxi] Re: [PATCH sunxi-tools 3/3] nand-image-builder: Add more details in the help context

2016-06-01 Thread Bernhard Nortmann
Am 01.06.2016 um 11:05 schrieb Boris Brezillon: Add explanation on where the options to pass to the tool should be extracted from, and add two examples to illustrate this explanation. Signed-off-by: Boris Brezillon --- nand-image-builder.c | 17

Re: [linux-sunxi] [PATCH v2 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Siarhei Siamashka
On Wed, 1 Jun 2016 13:23:24 +0200 Boris Brezillon wrote: > NAND chips are supposed to expose their capabilities through advanced > mechanisms like READID, ONFI or JEDEC parameter tables. While those > methods are appropriate for the bootloader itself, it's

[linux-sunxi] Re: [PATCH sunxi-tools] Add a tool to generate raw NAND images

2016-06-01 Thread Siarhei Siamashka
On Mon, 30 May 2016 19:02:13 +0200 Boris Brezillon wrote: > On Mon, 30 May 2016 19:46:17 +0300 > Siarhei Siamashka wrote: > > > On Mon, 30 May 2016 17:24:16 +0200 > > Boris Brezillon wrote: >

[linux-sunxi] [PATCH v2 5/7] spl: nand: sunxi: rework status polling loop

2016-06-01 Thread Boris Brezillon
check_value_xxx() helpers are using a 1ms delay between each test, which can be quite long for some operations (like a page read on an SLC NAND). Since we don't have anything to do but to poll this register, reduce the delay between each test to 1us. While we're at it, rename the

[linux-sunxi] [PATCH v2 1/7] spl: nand: sunxi: remove support for so-called 'syndrome' mode

2016-06-01 Thread Boris Brezillon
The sunxi SPL NAND controller driver supports use 'BootROM'-like configs, that is, configs where the ECC bytes and real data are interleaved in the page instead of putting ECC bytes in the OOB area. Doing that has several drawbacks: - since you're interleaving data and ECC bytes you can't use the

[linux-sunxi] [PATCH v2 4/7] spl: nand: sunxi: stop guessing the redundant u-boot offset

2016-06-01 Thread Boris Brezillon
Use CONFIG_SPL_NAND_U_BOOT_OFFS_REDUND value instead of trying to guess where the redundant u-boot image is based on simple (and most of the time erroneous) heuristics. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede ---

[linux-sunxi] [PATCH v2 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Boris Brezillon
NAND chips are supposed to expose their capabilities through advanced mechanisms like READID, ONFI or JEDEC parameter tables. While those methods are appropriate for the bootloader itself, it's way to complicated and takes too much space to fit in the SPL. Replace those mechanisms by a dumb

[linux-sunxi] [PATCH v2 2/7] spl: nand: rename the SYS_NAND_U_BOOT_OFFS Kconfig option

2016-06-01 Thread Boris Brezillon
The SYS_NAND_U_BOOT_OFFS is quite generic, but the Kconfig entry is forced to explicitly depend on platforms that are not already defining it in their include/configs/.h header. Rename this Kconfig option into SPL_NAND_U_BOOT_OFFS, remove the dependency on NAND_SUNXI and make it dependent on SPL

[linux-sunxi] [PATCH v2 3/7] spl: nand: support redundant u-boot image

2016-06-01 Thread Boris Brezillon
On modern NAND it's more than recommended to have a backup copy of the u-boot binary to recover from corruption: bitflips are quite common on MLC NANDs, and the read-disturbance will corrupt your u-boot partitition more quickly than what you would see on an SLC NAND. Add an extra Kconfig option

[linux-sunxi] [PATCH v2 6/7] spl: nand: sunxi: split 'load page' and 'read page' logic

2016-06-01 Thread Boris Brezillon
Split the 'load page' and 'read page' logic in 2 different functions so we can later load the page and test different ECC configs without the penalty of reloading the same page in the NAND cache. We also move common setup to a dedicated function (nand_apply_config()) to avoid rewriting the same

[linux-sunxi] [PATCH v2 0/7] spl: nand: sunxi: implement auto-detection

2016-06-01 Thread Boris Brezillon
Hello, This patch series aims at adding support for NAND auto-detection to the sunxi SPL NAND driver. As explained in patch 7, this auto-detection is nothing more than a dumb "trial and error" logic, but it allows one to use the same SPL binary for all kind of sunxi boards booting from NAND. Of

[linux-sunxi] Re: [PATCH 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Boris Brezillon
On Fri, 20 May 2016 15:55:51 +0200 Boris Brezillon wrote: > NAND chips are supposed to expose their capabilities through advanced > mechanisms like READID, ONFI or JEDEC parameter tables. While those > methods are appropriate for the bootloader itself, it's

[linux-sunxi] Re: [PATCH sunxi-tools 2/3] nand-image-builder: Add error messages to check_image_info()

2016-06-01 Thread Bernhard Nortmann
Am 01.06.2016 um 11:05 schrieb Boris Brezillon: Add error messages explaining what is wrong or missing in the arguments passed by to the sunxi-nand-image-builder tool. Signed-off-by: Boris Brezillon --- nand-image-builder.c | 30

[linux-sunxi] Re: [PATCH sunxi-tools 1/3] nand-image-builder: Fix the copyright header

2016-06-01 Thread Bernhard Nortmann
Am 01.06.2016 um 11:05 schrieb Boris Brezillon: Add NextThing Co. and Free Electrons copyrights and add myself as the author of the randomizer and image builder implementation. Remove the lengthy description explaining how the BCH implementation works, since this is the purpose of this tool is

[linux-sunxi] [PATCH sunxi-tools 1/3] nand-image-builder: Fix the copyright header

2016-06-01 Thread Boris Brezillon
Add NextThing Co. and Free Electrons copyrights and add myself as the author of the randomizer and image builder implementation. Remove the lengthy description explaining how the BCH implementation works, since this is the purpose of this tool is not to expose a BCH library (which was the case of

[linux-sunxi] [PATCH sunxi-tools 3/3] nand-image-builder: Add more details in the help context

2016-06-01 Thread Boris Brezillon
Add explanation on where the options to pass to the tool should be extracted from, and add two examples to illustrate this explanation. Signed-off-by: Boris Brezillon --- nand-image-builder.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[linux-sunxi] [PATCH sunxi-tools 2/3] nand-image-builder: Add error messages to check_image_info()

2016-06-01 Thread Boris Brezillon
Add error messages explaining what is wrong or missing in the arguments passed by to the sunxi-nand-image-builder tool. Signed-off-by: Boris Brezillon --- nand-image-builder.c | 30 +- 1 file changed, 25 insertions(+), 5