[linux-sunxi] Re: [U-Boot] cmd, nand: add an option to disable the verification when writing in raw mode

2016-07-25 Thread Boris Brezillon
On Sun, 24 Jul 2016 20:41:30 -0500 Scott Wood wrote: > On Wed, Jun 15, 2016 at 10:42:18AM +0200, Boris Brezillon wrote: > > diff --git a/cmd/nand.c b/cmd/nand.c > > index 583a18f..3a5e3a0 100644 > > --- a/cmd/nand.c > > +++ b/cmd/nand.c > > @@ -306,7 +306,7 @@ st

[linux-sunxi] Re: [PATCH v7 1/2] mtd: nand: sunxi: update DT bindings

2016-06-24 Thread Boris Brezillon
On Fri, 24 Jun 2016 13:00:04 +0800 Icenowy Zheng wrote: > Document the reset lines > > Signed-off-by: Icenowy Zheng Applied both. Thanks, Boris > --- > Changes in v7: > - Rebased for nand/next branch. > - Merged the two part of "Optional properties" of nand/next's document > into on

[linux-sunxi] Re: [PATCH v6 2/2] mtd: nand: sunxi: add reset line support

2016-06-23 Thread Boris Brezillon
OBE_DEFER again? Sorry, I just had a brainfart :-). Your implementation is correct. BTW, can you avoid top-posting and reply inline? > > 24.06.2016, 00:01, "Boris Brezillon" : > > On Mon, 20 Jun 2016 12:48:38 +0800 > > Icenowy Zheng wrote: > > > >>  Th

[linux-sunxi] Re: [PATCH v6 2/2] mtd: nand: sunxi: add reset line support

2016-06-23 Thread Boris Brezillon
On Mon, 20 Jun 2016 12:48:38 +0800 Icenowy Zheng wrote: > The NAND controller on some sun8i chips needs its reset line to be > deasserted before they can enter working state. > > Signed-off-by: Icenowy Zheng > --- >  Changes in v2: >    - Corrected the error checking code of reset line. > >

[linux-sunxi] Re: [PATCH 2/2] mtd: nand: sunxi: add reset line support

2016-06-20 Thread Boris Brezillon
Hi Philipp, On Mon, 20 Jun 2016 14:05:54 +0200 Philipp Zabel wrote: > Am Sonntag, den 19.06.2016, 14:06 +0200 schrieb Boris Brezillon: > > +Philipp > > > > On Sun, 19 Jun 2016 19:37:39 +0800 > > Icenowy Zheng wrote: > > > > > The NAND controller o

[linux-sunxi] Re: [PATCH 0/3] mtd: nand: sunxi: fix SLC NAND support

2016-06-20 Thread Boris Brezillon
On Mon, 6 Jun 2016 13:59:11 +0200 Boris Brezillon wrote: > Hello, > > Those 3 patches aims a fixing support for SLC NANDs with rather small > NAND pages (<= 4k). > > The first patch promote 512 bytes ECC steps to 1k steps, which should > both save a few OOB bytes

[linux-sunxi] Re: [PATCH] mtd: nand: sunxi: Fix OOB bytes retrieval in read_chunks_dma()

2016-06-20 Thread Boris Brezillon
On Wed, 15 Jun 2016 11:22:12 +0200 Boris Brezillon wrote: > The column address passed to the RNDOUT operation was missing the page > size offset. > Applied. > Signed-off-by: Boris Brezillon > Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA as

[linux-sunxi] Re: [U-Boot,v3,3/7] spl: nand: support redundant u-boot image

2016-06-20 Thread Boris Brezillon
On Sun, 19 Jun 2016 19:07:47 -0500 Scott Wood wrote: > On Mon, Jun 06, 2016 at 10:16:58AM +0200, Boris Brezillon wrote: > > 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 &g

[linux-sunxi] Re: [PATCH v4 2/2] mtd: nand: sunxi: add reset line support

2016-06-19 Thread Boris Brezillon
On Sun, 19 Jun 2016 23:40:35 +0800 Icenowy Zheng wrote: > The NAND controller on some sun8i chips needs its reset line to be deasserted > before they can enter working state. This commit added the reset line process > to the driver. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > -

[linux-sunxi] Re: [PATCH v3 2/2] mtd: nand: sunxi: add reset line support

2016-06-19 Thread Boris Brezillon
On Sun, 19 Jun 2016 23:01:28 +0800 Icenowy Zheng wrote: > The NAND controller on some sun8i chips needs its reset line to be deasserted > before they can enter working state. This commit added the reset line process > to the driver. > > Signed-off-by: Icenowy Zheng > --- > Changes in v1: > -

[linux-sunxi] Re: [PATCH 2/2] mtd: nand: sunxi: add reset line support

2016-06-19 Thread Boris Brezillon
le errors. But there may be other reasons for devm_reset_control_get_optional() to fail. The only one that is really reflecting that the reset line is not defined in the DT is -ENOENT. > > 19.06.2016, 20:53, "Boris Brezillon" : > > On Sun, 19 Jun 2016 20:41:09 +0800 > > i

[linux-sunxi] Re: [PATCH 2/2] mtd: nand: sunxi: add reset line support

2016-06-19 Thread Boris Brezillon
aintainer). > > > 19.06.2016, 20:06, "Boris Brezillon" : > > +Philipp > > > > On Sun, 19 Jun 2016 19:37:39 +0800 > > Icenowy Zheng wrote: > > > >>  The NAND controller on some sun8i chips needs its reset line to be > >> deasserted

[linux-sunxi] Re: [PATCH 2/2] mtd: nand: sunxi: add reset line support

2016-06-19 Thread Boris Brezillon
+Philipp On Sun, 19 Jun 2016 19:37:39 +0800 Icenowy Zheng wrote: > The NAND controller on some sun8i chips needs its reset line to be deasserted > before they can enter working state. This commit added the reset line process > to the driver. > > Signed-off-by: Icenowy Zheng > --- > drivers/mt

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

2016-06-15 Thread Boris Brezillon
On Mon, 6 Jun 2016 10:16:55 +0200 Boris Brezillon wrote: > 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&qu

[linux-sunxi] [PATCH] mtd: nand: sunxi: Fix OOB bytes retrieval in read_chunks_dma()

2016-06-15 Thread Boris Brezillon
The column address passed to the RNDOUT operation was missing the page size offset. Signed-off-by: Boris Brezillon Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA assisted operations") --- drivers/mtd/nand/sunxi_nand.c | 6 -- 1 file changed, 4 insertions(+), 2

[linux-sunxi] [PATCH] cmd, nand: add an option to disable the verification when writing in raw mode

2016-06-15 Thread Boris Brezillon
platforms, where the ROM code tests several hardcoded configs, which are not necessarily matching the NAND characteristics). Add an extension to the nand write.raw command allowing one to disable the verification step. Signed-off-by: Boris Brezillon --- cmd/nand.c | 15 ++- 1 file

[linux-sunxi] [PATCH] ARM: sunxi/dt: make the CHIP inherit from allwinner,sun5i-a13

2016-06-14 Thread Boris Brezillon
The sun4i-timer driver registers its sched_clock only if the machine is compatible with "allwinner,sun5i-a13", "allwinner,sun5i-a10s" or "allwinner,sun4i-a10". Add the missing "allwinner,sun5i-a13" string to the machine compatible. Signed-off-by: Boris Br

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

2016-06-09 Thread Boris Brezillon
Hi Siarhei, On Fri, 10 Jun 2016 01:07:45 +0300 Siarhei Siamashka wrote: > On Wed, 1 Jun 2016 14:54:24 +0200 > Boris Brezillon wrote: > > > On Wed, 1 Jun 2016 14:41:36 +0300 > > Siarhei Siamashka wrote: > > > > > On Mon, 30 May 2016 19:02:1

[linux-sunxi] [PATCH v2 1/6] sunxi: Add missing macros to configure the NAND controller clk

2016-06-08 Thread Boris Brezillon
We need some macros to manipulate the NAND controller clock. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun4i.h b/arch/arm/include/asm

[linux-sunxi] [PATCH v2 5/6] mtd: nand: Add a full-id entry for the H27QCG8T2E5R‐BCF NAND

2016-06-08 Thread Boris Brezillon
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/nand_ids.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 561d2cd..ce0a14e 100644 --- a

[linux-sunxi] [PATCH v2 2/6] mtd: nand: add common DT init code

2016-06-08 Thread Boris Brezillon
tween calling nand_scan_ident() and nand_scan_tail(). The original commit has been slightly reworked to use the fdtdec_xxx() helpers (instead of the of_() ones). Signed-off-by: Brian Norris Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/nand_base.c

[linux-sunxi] [PATCH v2 3/6] mtd: nand: Add the sunxi NAND controller driver

2016-06-08 Thread Boris Brezillon
We already have an SPL driver for the sunxi NAND controller, now add the normal/standard one. The source has been copied from Linux 4.6 with a few changes to make it work in u-boot. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- board/sunxi/board.c|5 +- drivers

[linux-sunxi] [PATCH v2 4/6] sun5i: Add NAND controller to the sun5i DTSI

2016-06-08 Thread Boris Brezillon
From: Maxime Ripard Add the NAND controller definition to sun5i.dtsi. Signed-off-by: Maxime Ripard Signed-off-by: Boris Brezillon --- arch/arm/dts/sun5i.dtsi | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/sun5i.dtsi b/arch

[linux-sunxi] [PATCH v2 6/6] sunxi: Enable NAND controller on the CHIP

2016-06-08 Thread Boris Brezillon
Enable the NAND controller in the sun5i-r8-chip.dts. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- arch/arm/dts/sun5i-a10s.dtsi | 14 ++ arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +++ arch/arm/dts/sun5i-r8-chip.dts | 15 +++ 3

[linux-sunxi] [PATCH v2 0/6] sunxi: Add NAND controller driver

2016-06-08 Thread Boris Brezillon
Boris [1]https://patchwork.ozlabs.org/patch/627928/ Changes since v1: - moved the sunxi_nand_init() prototype definition into include/nand.h - added Hans Acked-by tags Boris Brezillon (4): sunxi: Add missing macros to configure the NAND controller clk mtd: nand: Add the sunxi NAND controller driver mtd: nand

[linux-sunxi] Re: [PATCH 5/7] mtd: nand: Add Hynix H27UBG8T2BTR-BC to nand_ids table

2016-06-06 Thread Boris Brezillon
On Mon, 6 Jun 2016 22:31:38 +0200 Boris Brezillon wrote: > On Mon, 6 Jun 2016 22:59:03 +0300 > Aleksei Mamlin wrote: > > > On Mon, 6 Jun 2016 20:55:49 +0200 > > Boris Brezillon wrote: > > > > > On Mon, 6 Jun 2016 13:24:22 +0300 > > > Aleksei M

[linux-sunxi] Re: [PATCH 5/7] mtd: nand: Add Hynix H27UBG8T2BTR-BC to nand_ids table

2016-06-06 Thread Boris Brezillon
On Tue, 7 Jun 2016 00:06:45 +0300 Aleksei Mamlin wrote: > On Mon, 6 Jun 2016 22:31:38 +0200 > Boris Brezillon wrote: > > > On Mon, 6 Jun 2016 22:59:03 +0300 > > Aleksei Mamlin wrote: > > > > > On Mon, 6 Jun 2016 20:55:49 +0200 > > > Boris Brez

[linux-sunxi] Re: [PATCH 3/6] mtd: nand: Add the sunxi NAND controller driver

2016-06-06 Thread Boris Brezillon
On Mon, 06 Jun 2016 18:54:03 -0500 Scott Wood wrote: > On Mon, 2016-06-06 at 20:31 +0200, Boris Brezillon wrote: > > On Mon, 06 Jun 2016 12:56:48 -0500 > > Scott Wood wrote: > > > > > On Mon, 2016-06-06 at 18:22 +0200, Boris Brezillon wrote: > > &

[linux-sunxi] Re: [PATCH 5/7] mtd: nand: Add Hynix H27UBG8T2BTR-BC to nand_ids table

2016-06-06 Thread Boris Brezillon
On Mon, 6 Jun 2016 22:59:03 +0300 Aleksei Mamlin wrote: > On Mon, 6 Jun 2016 20:55:49 +0200 > Boris Brezillon wrote: > > > On Mon, 6 Jun 2016 13:24:22 +0300 > > Aleksei Mamlin wrote: > > > > > Add the full description of the Hynix H27UBG8T2BTR-BC NAND

[linux-sunxi] Re: [PATCH 5/7] mtd: nand: Add Hynix H27UBG8T2BTR-BC to nand_ids table

2016-06-06 Thread Boris Brezillon
0xc3} }, > + SZ_8K, SZ_4K, SZ_2M, NAND_NEED_SCRAMBLING, 6, 640, > + NAND_ECC_INFO(40, SZ_1K), 0 }, > > LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), > LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_

[linux-sunxi] Re: [PATCH 7/7] ARM: dts: sun7i: Enable NAND on Wexler TAB7200

2016-06-06 Thread Boris Brezillon
On Mon, 6 Jun 2016 13:24:24 +0300 Aleksei Mamlin wrote: > Enable the NFC and describe the NAND flash connected to this controller. > > Signed-off-by: Aleksei Mamlin Reviewed-by: Boris Brezillon > --- > arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts | 41 > +

[linux-sunxi] Re: [PATCH 6/7] ARM: dts: sun4i: Enable NAND on Marsboard A10

2016-06-06 Thread Boris Brezillon
On Mon, 6 Jun 2016 13:24:23 +0300 Aleksei Mamlin wrote: > Enable the NFC and describe the NAND flash connected to this controller. > > Signed-off-by: Aleksei Mamlin Reviewed-by: Boris Brezillon > --- > arch/arm/boot/dts/sun4i-a10-marsboard.dts | 41 > ++

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

2016-06-06 Thread Boris Brezillon
On Mon, 06 Jun 2016 12:16:33 -0500 Scott Wood wrote: > On Sat, 2016-06-04 at 13:06 +0200, Boris Brezillon wrote: > > On Sat, 04 Jun 2016 02:14:09 -0500 > > Scott Wood wrote: > > > > > On Sat, 2016-06-04 at 08:06 +0200, Boris Brezillon wrote: > > &g

[linux-sunxi] Re: [PATCH 3/6] mtd: nand: Add the sunxi NAND controller driver

2016-06-06 Thread Boris Brezillon
On Mon, 06 Jun 2016 12:56:48 -0500 Scott Wood wrote: > On Mon, 2016-06-06 at 18:22 +0200, Boris Brezillon wrote: > > On Mon, 6 Jun 2016 17:36:10 +0200 > > Hans de Goede wrote: > > > > > > +#ifndef CONFIG_SPL_BUILD > > > >

[linux-sunxi] Re: [PATCH v3 1/2] mtd: nand: sunxi: add support for DMA assisted operations

2016-06-06 Thread Boris Brezillon
On Fri, 15 Apr 2016 15:10:30 +0200 Boris Brezillon wrote: > The sunxi NAND controller is able to pipeline ECC operations only when > operated in DMA mode, which improves a lot NAND throughput while keeping > CPU usage low. Applied both. > > Signed-off-by: Boris Brezillon

[linux-sunxi] Re: [PATCH 3/6] mtd: nand: Add the sunxi NAND controller driver

2016-06-06 Thread Boris Brezillon
. Hehe, I was expecting this one :-). Do you know where I should put this prototype definition? A board.h file in board/sunxi/? -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- You received this message because you are subscribed to the Googl

[linux-sunxi] [PATCH 6/6] sunxi: Enable NAND controller on the CHIP

2016-06-06 Thread Boris Brezillon
Enable the NAND controller in the sun5i-r8-chip.dts. Signed-off-by: Boris Brezillon --- arch/arm/dts/sun5i-a10s.dtsi | 14 ++ arch/arm/dts/sun5i-a13-olinuxino.dts | 15 +++ arch/arm/dts/sun5i-r8-chip.dts | 15 +++ 3 files changed, 44 insertions

[linux-sunxi] [PATCH 4/6] sun5i: Add NAND controller to the sun5i DTSI

2016-06-06 Thread Boris Brezillon
From: Maxime Ripard Add the NAND controller definition to sun5i.dtsi. Signed-off-by: Maxime Ripard Signed-off-by: Boris Brezillon --- arch/arm/dts/sun5i.dtsi | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/sun5i.dtsi b/arch

[linux-sunxi] [PATCH 5/6] mtd: nand: Add a full-id entry for the H27QCG8T2E5R‐BCF NAND

2016-06-06 Thread Boris Brezillon
Add a full-id entry for the H27QCG8T2E5R‐BCF NAND. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_ids.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 561d2cd..ce0a14e 100644 --- a/drivers/mtd/nand/nand_ids.c

[linux-sunxi] [PATCH 0/6] sunxi: Add NAND controller driver

2016-06-06 Thread Boris Brezillon
Boris [1]https://patchwork.ozlabs.org/patch/627928/ Boris Brezillon (4): sunxi: Add missing macros to configure the NAND controller clk mtd: nand: Add the sunxi NAND controller driver mtd: nand: Add a full-id entry for the H27QCG8T2E5R‐BCF NAND sunxi: Enable NAND controller on the CHIP Brian Norris (1):

[linux-sunxi] [PATCH 3/6] mtd: nand: Add the sunxi NAND controller driver

2016-06-06 Thread Boris Brezillon
We already have an SPL driver for the sunxi NAND controller, now add the normal/standard one. The source has been copied from Linux 4.6 with a few changes to make it work in u-boot. Signed-off-by: Boris Brezillon --- board/sunxi/board.c|9 +- drivers/mtd/nand/Kconfig

[linux-sunxi] [PATCH 2/6] mtd: nand: add common DT init code

2016-06-06 Thread Boris Brezillon
tween calling nand_scan_ident() and nand_scan_tail(). The original commit has been slightly reworked to use the fdtdec_xxx() helpers (instead of the of_() ones). Signed-off-by: Brian Norris Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c

[linux-sunxi] [PATCH 1/6] sunxi: Add missing macros to configure the NAND controller clk

2016-06-06 Thread Boris Brezillon
We some macro to manipulate the NAND controller clock. Signed-off-by: Boris Brezillon --- arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun4i.h b/arch/arm/include/asm/arch-sunxi/clock_sun4i.h index

[linux-sunxi] Re: [PATCH 3/3] mtd: nand: sunxi: fix subpage write

2016-06-06 Thread Boris Brezillon
On Mon, 6 Jun 2016 13:59:14 +0200 Boris Brezillon wrote: Oops, I forgot to add this commit message: " Implement ecc->write_subpage() to prevent core code from assigning this hook to nand_write_subpage_hwecc(). This default implementation tries to call ecc->hwctl() which in our c

[linux-sunxi] [PATCH 1/3] mtd: nand: sunxi: prefer 1k ECC blocks when applicable

2016-06-06 Thread Boris Brezillon
you to correct the case where most of your bitflips are concentrated in a single 512bytes portion. This fact makes the 1k ECC block size more advantageous than the 512bytes one. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[linux-sunxi] [PATCH 0/3] mtd: nand: sunxi: fix SLC NAND support

2016-06-06 Thread Boris Brezillon
hat requires ECC steps != 512 | 1024. The last patch implements ecc->write_subpage(), thus fixing a NULL pointer dereference when the NAND chip supports subpage write. Best Regards, Boris Boris Brezillon (3): mtd: nand: sunxi: prefer 1k ECC blocks when applicable mtd: nand: sunxi: check ecc->si

[linux-sunxi] [PATCH 2/3] mtd: nand: sunxi: check ecc->size values

2016-06-06 Thread Boris Brezillon
Verify that the ecc->size value is either 512 or 1024 bytes. This should always be the case if this field was assigned to the nand->ecc_step_size_ds value, but can be wrong when the user overloaded this value with the nand-ecc-step-size DT property. Signed-off-by: Boris Brezillon --- d

[linux-sunxi] [PATCH 3/3] mtd: nand: sunxi: fix subpage write

2016-06-06 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index 252cbbf..409acbe 100644 --- a/drivers/mtd/nand/sunxi_nand.c

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

2016-06-06 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 Acked-by: Bernhard Nortmann --- Changes since v1: - Drop uneeded braces --- nand-image-builder.c | 30 +- 1 file

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

2016-06-06 Thread Boris Brezillon
the original source code I copied from the kernel). Signed-off-by: Boris Brezillon --- Changes since v1: - Add a link to the original bch.c source file --- nand-image-builder.c | 49 - 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a

[linux-sunxi] [PATCH sunxi-tools v4 4/4] nand-image-builder: Fix --help/-h option

2016-06-06 Thread Boris Brezillon
--help/-h is not working correctly (it's printing the help context on stderr instead of stdout). Adding a valid shortcut for --help solves the problem. Signed-off-by: Boris Brezillon Acked-by: Bernhard Nortmann --- nand-image-builder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[linux-sunxi] [PATCH sunxi-tools v4 3/4] nand-image-builder: Rework the help context

2016-06-06 Thread Boris Brezillon
Add explanations 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 Acked-by: Bernhard Nortmann --- Changes since v3: - cosmetic changes to the help context Changes since v2: - limit line width

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

2016-06-06 Thread Boris Brezillon
n, then I'd recommend specifying all the config parameters through Kconfig options. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_nand_spl.c | 56 ++- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/dri

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

2016-06-06 Thread Boris Brezillon
ption to specify the offset of the redundant u-boot image. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede # Conflicts: # common/spl/spl_nand.c # drivers/mtd/nand/Kconfig --- common/spl/spl_nand.c| 5 + drivers/mtd/nand/Kconfig | 8 2 files changed, 13 inser

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

2016-06-06 Thread Boris Brezillon
Use CONFIG_SYS_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 # Conflicts: # drivers/mtd/nand/sunxi_nand_spl.c --- drivers

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

2016-06-06 Thread Boris Brezillon
d rewriting the same values in NFC registers each time we read a page. These new functions are passed a pointer to an nfc_config struct to limit the number of parameters. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_nand_spl.c | 185 +++---

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

2016-06-06 Thread Boris Brezillon
rename the max_number_of_retries parameters and the MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that we're actually waiting a given amount of time and not only a number of retries. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_

[linux-sunxi] [PATCH v3 2/7] spl: nand: rework SYS_NAND_U_BOOT_OFFS Kconfig option dependency

2016-06-06 Thread Boris Brezillon
NAND_SUNXI and make it dependent on SPL selection. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/Kconfig | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 2fc73ef..5fe169f 100644

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

2016-06-06 Thread Boris Brezillon
dumb 'trial and error' mechanism. With this new approach we can get rid of the fixed config list that was used in the sunxi NAND SPL driver. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- Changes since v1: - fix the nand_max_ecc_strength() --- drivers/mtd/nand/sunxi_n

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

2016-06-06 Thread Boris Brezillon
we try to limit the impact on boot-time here). Patch 6 and 7 are implementing the auto-detection logic. Best Regards, Boris Changes since v2: - rework the Kconfig options for SYS_U_BOOT_OFFS and SYS_U_BOOT_REDUND_OFFS Changes since v1: - added Hans ack - fixed 2 typos in patch 7 Boris Bre

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

2016-06-04 Thread Boris Brezillon
On Sat, 04 Jun 2016 02:14:09 -0500 Scott Wood wrote: > On Sat, 2016-06-04 at 08:06 +0200, Boris Brezillon wrote: > > On Fri, 03 Jun 2016 20:08:49 -0500 > > Scott Wood wrote: > > > > > This doesn't work. CONFIG_SPL_NAND_U_BOOT_OFFS will always be defined

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

2016-06-03 Thread Boris Brezillon
On Fri, 03 Jun 2016 20:15:16 -0500 Scott Wood wrote: > On Wed, 2016-06-01 at 13:23 +0200, Boris Brezillon wrote: > > 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 > &g

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

2016-06-03 Thread Boris Brezillon
On Fri, 03 Jun 2016 20:08:49 -0500 Scott Wood wrote: > On Wed, 2016-06-01 at 13:23 +0200, Boris Brezillon wrote: > > 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 > &g

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

2016-06-03 Thread Boris Brezillon
the original source code I copied from the kernel). Signed-off-by: Boris Brezillon --- Changes since v1: - Add a link to the original bch.c source file --- nand-image-builder.c | 49 - 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a

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

2016-06-03 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 Acked-by: Bernhard Nortmann --- Changes since v1: - Drop uneeded braces --- nand-image-builder.c | 30 +- 1 file

[linux-sunxi] [PATCH sunxi-tools v3 3/4] nand-image-builder: Rework the help context

2016-06-03 Thread Boris Brezillon
Add explanations 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 --- Changes since v2: - limit line width in the help context Changes since v1: - use shorter option names - rework the help

[linux-sunxi] [PATCH sunxi-tools v3 4/4] nand-image-builder: Fix --help/-h option

2016-06-03 Thread Boris Brezillon
--help/-h is not working correctly (it's printing the help context on stderr instead of stdout). Adding a valid shortcut for --help solves the problem. Signed-off-by: Boris Brezillon --- nand-image-builder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nand-

Re: [linux-sunxi] [PATCH sunxi-tools v2 3/3] nand-image-builder: Rework the help context

2016-06-03 Thread Boris Brezillon
On Fri, 3 Jun 2016 07:43:40 +0200 Bernhard Nortmann wrote: > Am 02.06.2016 um 17:33 schrieb Boris Brezillon: > > Add explanations on where the options to pass to the tool should be > > extracted from, and add two examples to illustrate this explanation. > > > > Sig

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

2016-06-02 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 Acked-by: Bernhard Nortmann --- Changes since v1: - Drop uneeded braces --- nand-image-builder.c | 30 +- 1 file

[linux-sunxi] [PATCH sunxi-tools v2 3/3] nand-image-builder: Rework the help context

2016-06-02 Thread Boris Brezillon
Add explanations 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 --- Changes since v1: - use shorter option names - rework the help context --- nand-image-builder.c | 67

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

2016-06-02 Thread Boris Brezillon
the original source code I copied from the kernel). Signed-off-by: Boris Brezillon --- Changes since v1: - Add a link to the original bch.c source file --- nand-image-builder.c | 49 - 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a

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 or JEDEC parameter tables. While

[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. > > > > Sig

[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: > > > > > On Mon, 30 May 2016 17:24:16 +0200 > > >

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

2016-06-01 Thread Boris Brezillon
rename the max_number_of_retries parameters and the MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that we're actually waiting a given amount of time and not only a number of retries. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_

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

2016-06-01 Thread Boris Brezillon
n, then I'd recommend specifying all the config parameters through Kconfig options. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_nand_spl.c | 56 ++- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/dri

[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 --- drivers/mtd/nand/sunxi_nand_spl.c | 20 1

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

2016-06-01 Thread Boris Brezillon
dumb 'trial and error' mechanism. With this new approach we can get rid of the fixed config list that was used in the sunxi NAND SPL driver. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- Changes since v1: - fix the nand_max_ecc_strength() --- drivers/mtd/nand/sunxi_n

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

2016-06-01 Thread Boris Brezillon
selection. common/spl/spl_nand.c now sets CONFIG_SYS_NAND_U_BOOT_OFFS to CONFIG_SPL_NAND_U_BOOT_OFFS only when it's undefined. This way we stay compatible with the existing behavior. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- common/spl/spl_nand.c | 4 dr

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

2016-06-01 Thread Boris Brezillon
ption to specify the offset of the redundant u-boot image. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- common/spl/spl_nand.c| 8 drivers/mtd/nand/Kconfig | 6 ++ 2 files changed, 14 insertions(+) diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index 61

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

2016-06-01 Thread Boris Brezillon
d rewriting the same values in NFC registers each time we read a page. These new functions are passed a pointer to an nfc_config struct to limit the number of parameters. Signed-off-by: Boris Brezillon Acked-by: Hans de Goede --- drivers/mtd/nand/sunxi_nand_spl.c | 185 +++---

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

2016-06-01 Thread Boris Brezillon
olling loop, which is really important to make the "trial and error" approach efficient (we try to limit the impact on boot-time here). Patch 6 and 7 are implementing the auto-detection logic. Best Regards, Boris Changes since v1: - added Hans ack - fixed 2 typos in patch 7 Boris Bre

[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 way to > complica

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

2016-06-01 Thread Boris Brezillon
the original source code I copied from the kernel). Signed-off-by: Boris Brezillon --- Hi, A PR containing those 2 patches has been seent [1], but please review the changes before merging the PR. Thanks, Boris [1]https://github.com/linux-sunxi/sunxi-tools/pull/55 nand-image-builder.c | 48

[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 deletions(-) diff --git a/nand-image

[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 deletions(-) diff --git a/nand-image

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

2016-05-30 Thread Boris Brezillon
Hi Bernhard, On Mon, 30 May 2016 23:23:31 +0200 Bernhard Nortmann wrote: > Am 30.05.2016 um 17:12 schrieb Boris Brezillon: > > Generating raw NAND images is particularly useful for boot0 images > > creation since the mainline driver is not supporting the funky layout > > us

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

2016-05-30 Thread Boris Brezillon
On Mon, 30 May 2016 19:46:17 +0300 Siarhei Siamashka wrote: > On Mon, 30 May 2016 17:24:16 +0200 > Boris Brezillon wrote: > > > Hi Hans, > > > > On Mon, 30 May 2016 17:12:53 +0200 > > Boris Brezillon wrote: > > > > > Generating raw NAN

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

2016-05-30 Thread Boris Brezillon
Hi Hans, On Mon, 30 May 2016 17:12:53 +0200 Boris Brezillon wrote: > Generating raw NAND images is particularly useful for boot0 images > creation since the mainline driver is not supporting the funky layout > used by Allwinner's ROM code to load the boot0 binary from NAND. >

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

2016-05-30 Thread Boris Brezillon
hat they can be flashed before soldering on the NAND on the board (using a regular NAND programmer). The tool takes care of generating ECC bytes and randomizing data as expected by the NAND controller, and re-arranging the ECC/data sections correctly. Signed-off-by: Boris Brezillon --- Hi Siarhei,

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

2016-05-20 Thread Boris Brezillon
olling loop, which is really important to make the "trial and error" approach efficient (we try to limit the impact on boot-time here). Patch 6 and 7 are implementing the auto-detection logic. Best Regards, Boris Boris Brezillon (7): spl: nand: sunxi: remove support for so-called 'sy

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

2016-05-20 Thread Boris Brezillon
n, then I'd recommend specifying all the config parameters through Kconfig options. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand_spl.c | 56 ++- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/drivers/mtd/nand/sunxi_na

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

2016-05-20 Thread Boris Brezillon
rename the max_number_of_retries parameters and the MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that we're actually waiting a given amount of time and not only a number of retries. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand_spl.c | 29 +

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

2016-05-20 Thread Boris Brezillon
dumb 'trial and error' mechanism. With this new approach we can get rid of the fixed config list that was used in the sunxi NAND SPL driver. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand_spl.c | 262 +- 1 file changed, 204 insertions(+

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

2016-05-20 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 --- drivers/mtd/nand/sunxi_nand_spl.c | 20 1 file changed, 20 deletions

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

2016-05-20 Thread Boris Brezillon
ption to specify the offset of the redundant u-boot image. Signed-off-by: Boris Brezillon --- common/spl/spl_nand.c| 8 drivers/mtd/nand/Kconfig | 6 ++ 2 files changed, 14 insertions(+) diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index 612bd4a..0bf0848 100644

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

2016-05-20 Thread Boris Brezillon
d rewriting the same values in NFC registers each time we read a page. These new functions are passed a pointer to an nfc_config struct to limit the number of parameters. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand_spl.c | 185 +++--- 1 file cha

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

2016-05-20 Thread Boris Brezillon
selection. common/spl/spl_nand.c now sets CONFIG_SYS_NAND_U_BOOT_OFFS to CONFIG_SPL_NAND_U_BOOT_OFFS only when it's undefined. This way we stay compatible with the existing behavior. Signed-off-by: Boris Brezillon --- common/spl/spl_nand.c | 4 drivers/mtd/nand/Kc

[linux-sunxi] Re: [U-Boot] Porting Linux's MTD/NAND changes into U-Boot

2016-05-16 Thread Boris Brezillon
Hi Scott, On Tue, 03 May 2016 00:06:45 -0500 Scott Wood wrote: > On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote: > > On Mon, 25 Apr 2016 13:36:46 -0400 > > Tom Rini wrote: > > > > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wr

[linux-sunxi] Re: [U-Boot] Porting Linux's MTD/NAND changes into U-Boot

2016-05-03 Thread Boris Brezillon
Hi Scott, On Tue, 03 May 2016 00:06:45 -0500 Scott Wood wrote: > On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote: > > On Mon, 25 Apr 2016 13:36:46 -0400 > > Tom Rini wrote: > > > > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wr

  1   2   3   4   5   6   7   8   9   10   >