Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
Le sam. 12 mai 2018 à 20:02, Boris Brezillon a écrit : On Sat, 12 May 2018 19:42:49 +0200 Paul Cercueil wrote: >> >> My motivation is to get rid of this (move it to devicetree): >> >> >> >> >>

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
Le sam. 12 mai 2018 à 20:02, Boris Brezillon a écrit : On Sat, 12 May 2018 19:42:49 +0200 Paul Cercueil wrote: >> >> My motivation is to get rid of this (move it to devicetree): >> >> >> >> >> https://elixir.bootlin.com/linux/latest/source/arch/mips/jz4740/board-qi_lb60.c#L93 >>

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 19:42:49 +0200 Paul Cercueil wrote: > >> >> My motivation is to get rid of this (move it to devicetree): > >> >> > >> >> > >> https://elixir.bootlin.com/linux/latest/source/arch/mips/jz4740/board-qi_lb60.c#L93 > >> > >> >> And enable the

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 19:42:49 +0200 Paul Cercueil wrote: > >> >> My motivation is to get rid of this (move it to devicetree): > >> >> > >> >> > >> https://elixir.bootlin.com/linux/latest/source/arch/mips/jz4740/board-qi_lb60.c#L93 > >> > >> >> And enable the support of other boards

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
>> My motivation is to get rid of this (move it to devicetree): >> >> https://elixir.bootlin.com/linux/latest/source/arch/mips/jz4740/board-qi_lb60.c#L93 >> And enable the support of other boards with custom OOB layouts. > > Can you list the different layouts you have? I'm pretty

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
>> My motivation is to get rid of this (move it to devicetree): >> >> https://elixir.bootlin.com/linux/latest/source/arch/mips/jz4740/board-qi_lb60.c#L93 >> And enable the support of other boards with custom OOB layouts. > > Can you list the different layouts you have? I'm pretty

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 11:38:26 -0300 Paul Cercueil wrote: > Le sam. 12 mai 2018 à 10:42, Boris Brezillon > a écrit : > > On Sat, 12 May 2018 08:55:40 -0300 > > Paul Cercueil wrote: > > > >> Hi Boris, > >> > >> Le 12

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 11:38:26 -0300 Paul Cercueil wrote: > Le sam. 12 mai 2018 à 10:42, Boris Brezillon > a écrit : > > On Sat, 12 May 2018 08:55:40 -0300 > > Paul Cercueil wrote: > > > >> Hi Boris, > >> > >> Le 12 mai 2018 02:55, Boris Brezillon > >> a écrit : > >> > > >> > Hi

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
Le sam. 12 mai 2018 à 10:42, Boris Brezillon a écrit : On Sat, 12 May 2018 08:55:40 -0300 Paul Cercueil wrote: Hi Boris, Le 12 mai 2018 02:55, Boris Brezillon a écrit : > > Hi Paul, > > On Fri, 11

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Paul Cercueil
Le sam. 12 mai 2018 à 10:42, Boris Brezillon a écrit : On Sat, 12 May 2018 08:55:40 -0300 Paul Cercueil wrote: Hi Boris, Le 12 mai 2018 02:55, Boris Brezillon a écrit : > > Hi Paul, > > On Fri, 11 May 2018 23:29:12 +0200 > Paul Cercueil wrote: > > > By specifying the

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 08:55:40 -0300 Paul Cercueil wrote: > Hi Boris, > > Le 12 mai 2018 02:55, Boris Brezillon a écrit : > > > > Hi Paul, > > > > On Fri, 11 May 2018 23:29:12 +0200 > > Paul Cercueil wrote: > > > > >

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-12 Thread Boris Brezillon
On Sat, 12 May 2018 08:55:40 -0300 Paul Cercueil wrote: > Hi Boris, > > Le 12 mai 2018 02:55, Boris Brezillon a écrit : > > > > Hi Paul, > > > > On Fri, 11 May 2018 23:29:12 +0200 > > Paul Cercueil wrote: > > > > > By specifying the properties "mtd-oob-ecc" and "mtd-oob-free", it is > >

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-11 Thread Boris Brezillon
Hi Paul, On Fri, 11 May 2018 23:29:12 +0200 Paul Cercueil wrote: > By specifying the properties "mtd-oob-ecc" and "mtd-oob-free", it is > now possible to specify from devicetree where the ECC data is located > inside the OOB region. Why would we want to do that? I mean,

Re: [PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-11 Thread Boris Brezillon
Hi Paul, On Fri, 11 May 2018 23:29:12 +0200 Paul Cercueil wrote: > By specifying the properties "mtd-oob-ecc" and "mtd-oob-free", it is > now possible to specify from devicetree where the ECC data is located > inside the OOB region. Why would we want to do that? I mean, ECC/free regions are

[PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-11 Thread Paul Cercueil
By specifying the properties "mtd-oob-ecc" and "mtd-oob-free", it is now possible to specify from devicetree where the ECC data is located inside the OOB region. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/mtd/nand.txt | 7 +

[PATCH] mtd: nand: Add support for reading ooblayout from device tree

2018-05-11 Thread Paul Cercueil
By specifying the properties "mtd-oob-ecc" and "mtd-oob-free", it is now possible to specify from devicetree where the ECC data is located inside the OOB region. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/mtd/nand.txt | 7 + drivers/mtd/nand/raw/nand_base.c