Re: [PATCH v4 2/5] mtd: mchp23k256: switch to mtd_device_register()

2017-05-29 Thread Boris Brezillon
On Thu, 25 May 2017 11:49:13 +1200 Chris Packham wrote: > Use mtd_device_register() instead of mtd_device_parse_register() to > eliminate two unused parameters. > > Signed-off-by: Chris Packham > Reviewed-by: Andrew Lunn > Tested-by: Andrew Lunn Acked-by: Boris Brezillon

Re: [PATCH v4 1/5] mtd: mchp23k256: Add OF device ID table

2017-05-29 Thread Boris Brezillon
On Thu, 25 May 2017 11:49:12 +1200 Chris Packham wrote: > This allows registering of this device via a Device Tree. > > Signed-off-by: Chris Packham > Reviewed-by: Andrew Lunn > Tested-by: Andrew Lunn Acked-by: Boris Brezillon > --- > Changes in v2: > - collect

Re: [PATCH v4 3/5] mtd: handle partitioning on devices with 0 erasesize

2017-05-29 Thread Boris Brezillon
re they fall on writesize boundaries. > > Helped-by: Boris Brezillon > Signed-off-by: Chris Packham Acked-by: Boris Brezillon > --- > Changes in v3: > - new > Changes in v4: > - None > > drivers/mtd/mtdpart.c | 25 - > 1 file change

Re: [PATCH v4 4/5] mtd: mchp23k256: add partitioning support

2017-05-29 Thread Boris Brezillon
eviewed-by: Andrew Lunn > Tested-by: Andrew Lunn Acked-by: Boris Brezillon > --- > Changes in v2 > - collect revew/test from Andrew > Changes in v3: > - remove setting of erasesize > Changes in v4: > - none > > drivers/mtd/devices/mchp23k256.c | 1 + > 1 fil

Re: [PATCH v4 5/5] mtd: mchp23k256: Add support for mchp23lcv1024

2017-05-29 Thread Boris Brezillon
t be told via a > Device Tree or default to mchp23k256 when device tree is not used. > > Signed-off-by: Chris Packham > Reviewed-by: Andrew Lunn Acked-by: Boris Brezillon > --- > Changes in v2: > - fix formatting in switch statement > - add support for 24-bit addressing

Re: [PATCH] mtd: nand: check ecc->total sanity in nand_scan_tail

2017-05-29 Thread Boris Brezillon
On Thu, 25 May 2017 13:50:20 +0900 Masahiro Yamada wrote: > Drivers are supposed to set correct ecc->{size,strength,bytes} before > calling nand_scan_tail(), but it does not complain about ecc->total > bigger than oobsize. > > In this case, chip->scan_bbt() crashes due to memory corruption, but

Re: linux-next: manual merge of the nand tree with the jc_docs tree

2017-05-30 Thread Boris Brezillon
Hi Stephen, On Tue, 30 May 2017 11:37:23 +1000 Stephen Rothwell wrote: > Hi Boris, > > Today's linux-next merge of the nand tree got a conflict in: > > drivers/mtd/nand/nand_base.c > > between commit: > > b6f6c29454d2 ("mtd: adjust kernel-docs to avoid Sphinx/kerneldoc warnings") > > fr

Re: [PATCH] mtd: lpddr: Fix a potential double mutex_lock

2017-10-31 Thread Boris Brezillon
Hi Christophe, On Sun, 22 Oct 2017 10:28:31 +0200 Christophe JAILLET wrote: > If 'chip->state == FL_SYNCING', we will 'goto retry' with the mutex > '&shared->lock' already taken. > In such a case, the 'mutex_lock' at line 927 can never succeed. > > In order to avoid a deadlock, move the 'mutex_

Re: linux-next: build warnings after merge of the drm tree

2017-11-01 Thread Boris Brezillon
Hi Stephen, On Wed, 1 Nov 2017 14:16:40 +1100 Stephen Rothwell wrote: > Hi Dave, > > After merging the drm tree, today's linux-next build (x86_64 allmodconfig) > produced these warnings: > > drivers/gpu/drm/vc4/vc4_bo.c: In function 'vc4_bo_stats_debugfs': > drivers/gpu/drm/vc4/vc4_bo.c:91:17:

Re: [PATCH v2] mtd: nand: Fix writing mtdoops to nand flash.

2017-11-02 Thread Boris Brezillon
On Mon, 30 Oct 2017 22:32:45 -0500 moto...@gmail.com wrote: > From: Brent Taylor > > When mtdoops calls mtd_panic_write, it eventually calls > panic_nand_write in nand_base.c. In order to properly > wait for the nand chip to be ready in panic_nand_wait, > the chip must first be selected. > > W

Re: [PATCH] drm/vc4: use %z format string for size_t

2017-11-02 Thread Boris Brezillon
Hi Arnd, On Thu, 2 Nov 2017 12:20:43 +0100 Arnd Bergmann wrote: > Printing a size_t variable needs to use the %z format string modifier > rather than %l, otherwise we get this warning on 64-bit architectures: > > drivers/gpu/drm/vc4/vc4_bo.c: In function 'vc4_bo_stats_debugfs': > drivers/gpu/d

Re: [RFC] Improving udelay/ndelay on platforms where that is possible

2017-11-02 Thread Boris Brezillon
On Wed, 1 Nov 2017 21:48:22 +0200 Baruch Siach wrote: > Hi Marc, > > On Wed, Nov 01, 2017 at 08:03:20PM +0100, Marc Gonzalez wrote: > > On 01/11/2017 18:53, Alan Cox wrote: > > > For that matter given the bad blocks don't randomly change why not cache > > > them ? > > > > That's a good que

Re: [PATCH] mtd: nand: omap2: Fix subpage write

2017-10-19 Thread Boris Brezillon
On Thu, 19 Oct 2017 11:41:29 +0300 Roger Quadros wrote: > Since v4.12, NAND subpage writes were causing a NULL pointer > dereference on OMAP platforms (omap2-nand) using OMAP_ECC_BCH4_CODE_HW, > OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH16_CODE_HW. > > This is because for those ECC modes, omap_calcu

Re: [PATCH] mtd: nand: omap2: Fix subpage write

2017-10-19 Thread Boris Brezillon
On Thu, 19 Oct 2017 17:11:34 +0300 Roger Quadros wrote: > On 19/10/17 16:51, Boris Brezillon wrote: > > On Thu, 19 Oct 2017 11:41:29 +0300 > > Roger Quadros wrote: > > > >> Since v4.12, NAND subpage writes were causing a NULL pointer > >> dereferen

Re: [PATCH] mtd: nand: omap2: Fix subpage write

2017-10-19 Thread Boris Brezillon
On Thu, 19 Oct 2017 17:23:24 +0300 Roger Quadros wrote: > On 19/10/17 17:20, Boris Brezillon wrote: > > On Thu, 19 Oct 2017 17:11:34 +0300 > > Roger Quadros wrote: > > > >> On 19/10/17 16:51, Boris Brezillon wrote: > >>> On Thu, 19 Oct 2017

Re: [PATCH v3] mtd: nand: omap2: Fix subpage write

2017-10-27 Thread Boris Brezillon
On Fri, 20 Oct 2017 15:16:21 +0300 Roger Quadros wrote: > Since v4.12, NAND subpage writes were causing a NULL pointer > dereference on OMAP platforms (omap2-nand) using OMAP_ECC_BCH4_CODE_HW, > OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH16_CODE_HW. > > This is because for those ECC modes, omap_calcu

Re: [PATCH] Fix writing mtdoops to nand flash.

2017-10-30 Thread Boris Brezillon
Hi Brent, Subject should be prefixed by "mtd: nand: ", so "mtd: nand: Fix writing mtdoops to nand flash" On Sun, 29 Oct 2017 23:23:43 -0500 moto...@gmail.com wrote: > From: Brent Taylor > > When mtdoops calls mtd_panic_write, it eventually calls > panic_nand_write in nand_base.c. In order to

Re: ubi: fastmap: use kmem_cache_free to deallocate memory

2017-10-30 Thread Boris Brezillon
On Sun, 29 Oct 2017 20:40:02 +0800 Pan Bian wrote: > Memory allocated by kmem_cache_alloc() should not be deallocated with > kfree(). Use kmem_cache_free() instead. > > Signed-off-by: Pan Bian Reviewed-by: Boris Brezillon Richard, maybe you can add: Fixes: dbb7d2a88d2a ("

Re: [PATCH] ubi: fastmap: clean up the initialization of pointer p

2017-10-30 Thread Boris Brezillon
eans up > clang warning: > > drivers/mtd/ubi/fastmap.c:217:19: warning: Value stored to 'p' > during its initialization is never read > > Signed-off-by: Colin Ian King Reviewed-by: Boris Brezillon > --- > drivers/mtd/ubi/fastmap.c | 3 +-- > 1 file chang

Re: [RFC] NAND: Optimize NAND_ECC_HW_OOB_FIRST read

2017-10-30 Thread Boris Brezillon
Hi PrasannaKumar, On Sat, 28 Oct 2017 13:13:51 +0530 PrasannaKumar Muralidharan wrote: > From: Lars-Peter Clausen > > Avoid sending unnecessary READ commands to the chip. > > Signed-off-by: Lars-Peter Clausen > Signed-off-by: PrasannaKumar Muralidharan > --- > This patch is taken from git:/

Re: [PATCH] mtd: cfi_cmdset_0002: fix Cypress S29GL flash erase suspend

2017-10-30 Thread Boris Brezillon
Hi Chen, On Thu, 14 Sep 2017 21:58:11 +0800 Chen Bin wrote: > On UBIFS, Cypress S29GL01GT flash is failed to access occasionally > , and throw below error information and call trace: > MTD get_chip(): chip not ready after erase suspend > UBI error: ubi_io_write: error -5 while writing 512 bytes

Re: [RFC] NAND: Optimize NAND_ECC_HW_OOB_FIRST read

2017-10-30 Thread Boris Brezillon
On Mon, 30 Oct 2017 18:17:50 +0530 PrasannaKumar Muralidharan wrote: > Hi Boris, > > On 30 October 2017 at 14:04, Boris Brezillon > wrote: > > Hi PrasannaKumar, > > > > On Sat, 28 Oct 2017 13:13:51 +0530 > > PrasannaKumar Muralidharan wrote:

Re: [PATCH] Fix writing mtdoops to nand flash.

2017-10-30 Thread Boris Brezillon
On Mon, 30 Oct 2017 07:46:18 -0500 Brent Taylor wrote: > Hi Bors, thanks for your quick reply. > > On Mon, Oct 30, 2017 at 3:23 AM, Boris Brezillon > wrote: > > Hi Brent, > > > > Subject should be prefixed by "mtd: nand: ", so > > > > "

Re: [PATCH v2] mtd: nand: Fix writing mtdoops to nand flash.

2017-10-31 Thread Boris Brezillon
On Mon, 30 Oct 2017 22:32:45 -0500 moto...@gmail.com wrote: > From: Brent Taylor > > When mtdoops calls mtd_panic_write, it eventually calls > panic_nand_write in nand_base.c. In order to properly > wait for the nand chip to be ready in panic_nand_wait, > the chip must first be selected. > > W

Re: [PATCH] kconfig: kill off GENERIC_IO option

2017-10-31 Thread Boris Brezillon
just remove GENERIC_IO. > > Signed-off-by: Rob Herring > Cc: Jeff Dike > Cc: Richard Weinberger > Cc: David Woodhouse > Cc: Brian Norris > Cc: Boris Brezillon Acked-by: Boris Brezillon > Cc: Marek Vasut > Cc: Cyrille Pitchen > Cc: user-mode-linux

Re: [PATCH] Revert "backlight: pwm: Handle EPROBE_DEFER while requesting the PWM"

2015-10-05 Thread Boris Brezillon
error log. > > This is a little risky in my opinion. Not only does it print two error > messages for non-legacy platforms (that would be another regression if > you want to be nit-picking), but it is subtly buggy. If you have a > system with multiple PWM providers, you could end up

Re: [PATCH] Revert "backlight: pwm: Handle EPROBE_DEFER while requesting the PWM"

2015-10-05 Thread Boris Brezillon
On Mon, 5 Oct 2015 14:58:03 +0200 Thierry Reding wrote: > On Mon, Oct 05, 2015 at 01:19:12PM +0200, Boris Brezillon wrote: > > Hi Thierry, > > > > On Mon, 5 Oct 2015 11:35:43 +0200 > > Thierry Reding wrote: > > > > > On Thu, Oct 01, 2015 at 10:00:22AM

Re: [PATCH] Revert "backlight: pwm: Handle EPROBE_DEFER while requesting the PWM"

2015-10-05 Thread Boris Brezillon
On Mon, 5 Oct 2015 16:07:41 +0200 Thierry Reding wrote: > On Mon, Oct 05, 2015 at 03:30:24PM +0200, Boris Brezillon wrote: > > On Mon, 5 Oct 2015 14:58:03 +0200 > > Thierry Reding wrote: > > > > > On Mon, Oct 05, 2015 at 01:19:12PM +0200, Boris Brezi

Re: [PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-13 Thread Boris Brezillon
Hi Brian, On Mon, 12 Oct 2015 16:35:37 -0700 Brian Norris wrote: > On Fri, Oct 02, 2015 at 07:53:25AM +0200, Boris Brezillon wrote: > > The ->read_xxx() methods are all passed the page number the NAND controller > > is supposed to read, but ->write_xxx() do not

[PATCH v4] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-13 Thread Boris Brezillon
) methods add some consistency to the current API. Signed-off-by: Boris Brezillon CC: Josh Wu CC: Ezequiel Garcia CC: Maxime Ripard CC: Greg Kroah-Hartman CC: Huang Shijie CC: Stefan Agner CC: de...@driverdev.osuosl.org CC: linux-arm-ker...@lists.infradead.org CC: linux-kernel@vger.k

[PATCH 0/3] mtd: nand: add preliminary support for data scramblers

2015-10-15 Thread Boris Brezillon
il someone else comes with another scrambler controller and we really see the need to factorize some code. Best Regards, Boris [1]https://lkml.org/lkml/2014/4/30/721 Boris Brezillon (3): mtd: nand: add NAND_NEED_SCRAMBLING option flag mtd: nand: add NAND_NEED_SCRAMBLING flag to the H27UC

[PATCH 3/3] mtd: nand: sunxi: add randomizer support

2015-10-15 Thread Boris Brezillon
NAND block. Randomizing input data mitigate this problem by avoiding such repeated patterns. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 274 ++ 1 file changed, 250 insertions(+), 24 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nan

[PATCH 2/3] mtd: nand: add NAND_NEED_SCRAMBLING flag to the H27UCG8T2ATR-BC definition

2015-10-15 Thread Boris Brezillon
The H27UCG8T2ATR-BC requires an external data scrambler. Reflect this constraint in the nand_flash_ids definition. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_ids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd

[PATCH 1/3] mtd: nand: add NAND_NEED_SCRAMBLING option flag

2015-10-15 Thread Boris Brezillon
Some MLC NANDs are sensible to repeated patterns and require data to be scrambled in order to limit the number of bitflips. Add a new flag to let the NAND controller know about this constraint. Signed-off-by: Boris Brezillon --- include/linux/mtd/nand.h | 6 ++ 1 file changed, 6 insertions

Re: [linux-sunxi] [PATCH 1/3] mtd: nand: add NAND_NEED_SCRAMBLING option flag

2015-10-15 Thread Boris Brezillon
Hi Julian, On Fri, 16 Oct 2015 09:32:38 +1100 Julian Calaby wrote: > Hi Boris, > > On Fri, Oct 16, 2015 at 4:17 AM, Boris Brezillon > wrote: > > Some MLC NANDs are sensible to repeated patterns and require data to be > > Do you mean "sensitive" instead of

Re: [linux-sunxi] [PATCH 1/3] mtd: nand: add NAND_NEED_SCRAMBLING option flag

2015-10-15 Thread Boris Brezillon
On Fri, 16 Oct 2015 08:28:54 +0200 Boris Brezillon wrote: > Hi Julian, > > On Fri, 16 Oct 2015 09:32:38 +1100 > Julian Calaby wrote: > > > Hi Boris, > > > > On Fri, Oct 16, 2015 at 4:17 AM, Boris Brezillon > > wrote: > > > Some MLC NANDs are s

Re: [PATCH 3/3] mtd: nand: sunxi: add randomizer support

2015-10-16 Thread Boris Brezillon
On Thu, 15 Oct 2015 19:17:23 +0200 Boris Brezillon wrote: > Add support for the randomizer engine available in Allwinner's NFC IP. > > Randomization is useful to support modern NAND chips which are sensible to > repeated patterns. On such NANDs you might experience an unexpecte

Re: [PATCH 2/3] mtd: nand: add NAND_NEED_SCRAMBLING flag to the H27UCG8T2ATR-BC definition

2015-10-20 Thread Boris Brezillon
On Tue, 20 Oct 2015 09:20:10 +0200 Richard Weinberger wrote: > On Thu, Oct 15, 2015 at 7:17 PM, Boris Brezillon > wrote: > > The H27UCG8T2ATR-BC requires an external data scrambler. Reflect this > > constraint in the nand_flash_ids definition. > > > >

[PATCH 0/2] mtd: nand: automate NAND timings selection

2015-10-23 Thread Boris Brezillon
patch 2 is given here as an example of how patch 1 simplifies things, but won't apply cleanly on mtd-next (it's based on top of other changes I haven't submitted yet). Best Regards, Boris Boris Brezillon (2): mtd: nand: automate NAND timings selection mtd: nand: sunxi: switch

[PATCH 2/2] mtd: nand: sunxi: switch from manual to automated timing config

2015-10-23 Thread Boris Brezillon
The NAND framework is now able to select the best NAND timings for us. All we have to do is implement a ->setup_data_interface() function to apply those timings and remove the timing selection code from the sunxi driver. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c |

[PATCH 1/2] mtd: nand: automate NAND timings selection

2015-10-23 Thread Boris Brezillon
ult information. NAND controller willing to support timings adjustment should just implement the ->setup_data_interface() method. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 189 ++- include/linux/mtd/nand.h | 115 +++

Re: [PATCH 1/5] mtd: ofpart: grab device tree node directly from master device node

2015-10-27 Thread Boris Brezillon
6,9 @@ struct device_node; > /** > * struct mtd_part_parser_data - used to pass data to MTD partition parsers. > * @origin: for RedBoot, start address of MTD device > - * @of_node: for OF parsers, device node containing partitioning information > + * @of_node: for OF parsers,

Re: [PATCH 2/5] mtd: nand: drop unnecessary partition parser data

2015-10-27 Thread Boris Brezillon
ne in duplicate for now on some drivers. I don't think this should > break things. (Famous last words.) > > Signed-off-by: Brian Norris For the sunxi_nand driver Acked-by: Boris Brezillon Thanks, Boris -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering htt

Re: [PATCH v3 18/27] mtd: nand: omap2: Implement NAND ready using gpiolib

2015-10-27 Thread Boris Brezillon
don't think there are multiple gpios for r/b# function. Because it's supposed to be a generic binding, and some NAND chips embed several dies, thus exposing several CS and RB pins, hence the rb-gpios name. Also, as described here [1], the convention is to name your property -gpios ev

Re: [PATCH v3 18/27] mtd: nand: omap2: Implement NAND ready using gpiolib

2015-10-27 Thread Boris Brezillon
ed the ->dev_ready() or ->waitfunc() fields, and to choose how to implement it he may need to know which kind of RB handler should be used (this is the case in the sunxi driver, where the user can either use a GPIO or native R/B pin directly connected to the controller). All this makes m

Re: [PATCH 06/16] clk: at91: clk-main: factorize irq handling

2015-10-01 Thread Boris Brezillon
_main_base base; unsigned long frequency; unsigned long accuracy; }; Also, it would avoid any problem if someone decides to change the field oder in one of those structures. Best Regards, Boris -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-

[PATCH] mtd: nand: remove unused ->init_size() hook

2015-10-01 Thread Boris Brezillon
ver, this hook is not used by any mainline driver, and should not be used by new drivers, because detecting the NAND chip is not something controller specific. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 5 + include/linux/mtd/nand.h | 6 -- 2 files changed

Re: [PATCH] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
Hi Brian, On Mon, 24 Aug 2015 19:10:19 +0200 Boris Brezillon wrote: > The ->read_xxx() methods are all passed the page number the NAND controller > is supposed to read, but ->write_xxx() do not have such a parameter. > > This is a problem if we want to properly implement

[PATCH v2] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
) methods add some consistency to the current API. Signed-off-by: Boris Brezillon CC: Josh Wu CC: Ezequiel Garcia CC: Maxime Ripard CC: Greg Kroah-Hartman CC: Huang Shijie CC: Bryan Wu CC: Stefan Agner CC: de...@driverdev.osuosl.org CC: linux-arm-ker...@lists.infradead.org CC: lin

Re: [PATCH] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
On Thu, 1 Oct 2015 10:17:50 -0700 Brian Norris wrote: > On Mon, Aug 24, 2015 at 07:10:19PM +0200, Boris Brezillon wrote: > > The ->read_xxx() methods are all passed the page number the NAND controller > > is supposed to read, but ->write_xxx() do not have such a paramete

[RESEND PATCH v2] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
) methods add some consistency to the current API. Signed-off-by: Boris Brezillon CC: Josh Wu CC: Ezequiel Garcia CC: Maxime Ripard CC: Greg Kroah-Hartman CC: Huang Shijie CC: Bryan Wu CC: Stefan Agner CC: de...@driverdev.osuosl.org CC: linux-arm-ker...@lists.infradead.org CC: lin

Re: [PATCH v2] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
On Thu, 1 Oct 2015 20:04:17 +0200 Boris Brezillon wrote: > The ->read_xxx() methods are all passed the page number the NAND controller > is supposed to read, but ->write_xxx() do not have such a parameter. > > This is a problem if we want to properly implement data > scr

[PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
) methods add some consistency to the current API. Signed-off-by: Boris Brezillon CC: Josh Wu CC: Ezequiel Garcia CC: Maxime Ripard CC: Greg Kroah-Hartman CC: Huang Shijie CC: Stefan Agner CC: de...@driverdev.osuosl.org CC: linux-arm-ker...@lists.infradead.org CC: linux-kernel@vger.k

Re: [PATCH v4 1/5] mtd: nand: Create a BBT flag to access bad block markers in raw mode

2015-10-01 Thread Boris Brezillon
we can consistently make BBM checks look for 6 or 7 > "one" bits (rather than a full 8 bits, i.e. BBM == 0xff), then we can > just unconditionally switch to RAW rather than PLACE_OOB. And we don't > need a flag like this pach introduces. I guess it all depends whether w

Re: [PATCH v6] mtd: nand: toshiba: Add support for Toshiba Memory BENAND (Built-in ECC NAND)

2018-08-03 Thread Boris Brezillon
command only knows whether there was bitflips above the > threshold and can not get accurate bitflips. For now, I set > max_bitflips mtd->bitflip_threshold. > > Signed-off-by: KOBAYASHI Yoshitake Reviewed-by: Boris Brezillon > --- > drivers

Re: [RFC PATCH v2] mtd: nand: toshiba: Add support for ->exec_op()

2018-08-03 Thread Boris Brezillon
AYASHI Yoshitake With the commit message adjusted as suggested above, Reviewed-by: Boris Brezillon > --- > drivers/mtd/nand/raw/nand_toshiba.c | 53 > - > 1 file changed, 52 insertions(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw

Re: [PATCH] staging:mt29f_spinand: MT29F2G failing as only 16-bit arguments and variables used for addressing.

2018-08-06 Thread Boris Brezillon
Hi Dan, On Wed, 1 Aug 2018 15:05:51 +0300 Dan Carpenter wrote: > On Wed, Aug 01, 2018 at 11:24:19AM +0800, Jheng-Jhong Wu wrote: > > For NAND flash chips with more than 1Gbit (e.g. MT29F2G) more than 16 bits > > are necessary to address the correct page. The driver sets the address for > > more

Re: [PATCH] staging:mt29f_spinand: MT29F2G failing as only 16-bit arguments and variables used for addressing.

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 15:01:37 +0300 Dan Carpenter wrote: > On Mon, Aug 06, 2018 at 01:46:48PM +0200, Boris Brezillon wrote: > > Hi Dan, > > > > On Wed, 1 Aug 2018 15:05:51 +0300 > > Dan Carpenter wrote: > > > > > On Wed, Aug 01, 2018 at 11:24:19AM

Re: [RFC PATCH v2 07/12] mtd: rawnand: ams-delta: Set port direction once per transfer

2018-08-07 Thread Boris Brezillon
On Tue, 7 Aug 2018 00:29:13 +0200 Janusz Krzysztofik wrote: > In its current shape, the driver sets data port direction before each > byte read/write operation, even during multi-byte transfers. Since > performance of the driver is completely not acceptable on Amstrad Delta > after it has been

Re: [RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation

2018-06-20 Thread Boris Brezillon
Hi Piotr, On Mon, 18 Jun 2018 18:21:24 +0200 Piotr Bugalski wrote: > Documentation for DT-binding change. > > Suggested-by: Boris Brezillon I'm pretty sure I didn't make a single suggestion about the DT bindings you use here ;-). > Signed-off-by: Piotr Bugalski >

Re: [RFC PATCH 0/2] New QuadSPI driver for Atmel SAMA5D2

2018-06-20 Thread Boris Brezillon
Hi Piotr, On Mon, 18 Jun 2018 18:21:22 +0200 Piotr Bugalski wrote: > Hello, > > Atmel SAMA5D2 is equipped with two QSPI interfaces. These interfaces can > work as in SPI-compatible mode or use two / four lines to improve > communication speed. At the moment there is QSPI driver strongly tied to

Re: [PATCH v3 3/4] mtd: rawnand: micron: add fixup for ONFI revision

2018-06-21 Thread Boris Brezillon
On Wed, 20 Jun 2018 21:12:02 + Chris Packham wrote: > On 20/06/18 19:54, Boris Brezillon wrote: > > On Wed, 20 Jun 2018 17:05:43 +1200 > > Chris Packham wrote: > > > >> Some Micron NAND chips (MT29F1G08ABAFAWP-ITE:F) report 00 00 for the > >> revi

Re: [PATCH v4 3/6] mtd: rawnand: add defines for ONFI version bits

2018-06-21 Thread Boris Brezillon
On Thu, 21 Jun 2018 22:33:25 +1200 Chris Packham wrote: > Add defines for the ONFI version bits and use them in > nand_flash_detect_onfi(). > > Signed-off-by: Chris Packham Reviewed-by: Boris Brezillon > --- > Changes in v4: > - New > > drivers/mt

Re: [PATCH v4 5/6] mtd: rawnand: micron: support 8/512 on-die ECC

2018-06-21 Thread Boris Brezillon
On Thu, 21 Jun 2018 22:33:27 +1200 Chris Packham wrote: > Micron MT29F1G08ABAFAWP-ITE:F supports an on-die ECC with 8 bits > per 512 bytes. Add support for this combination. > > Signed-off-by: Chris Packham > --- > Changes in v2: > - New > Changes in v3: > - Handle reporting of corrected errors

Re: [PATCH v4 6/6] mtd: rawnand: micron: detect forced on-die ECC

2018-06-21 Thread Boris Brezillon
On Thu, 21 Jun 2018 22:33:28 +1200 Chris Packham wrote: > Some Micron NAND chips have on-die ECC forceably enabled. The detect > these based on chip ID as there seems to be no other way of > distinguishing these chips from those that have optional support for > on-die ECC. > > When a chip with m

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Boris Brezillon
ler > and is not related to MTD, however can work with NAND-flash or other > peripherals using spi-mem interface. Thanks for working on that. > > Suggested-by: Boris Brezillon > Signed-off-by: Piotr Bugalski > > --- > drivers/spi/Kconfig | 9 + >

Re: [PATCH v6 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-21 Thread Boris Brezillon
Hi Stefan, On Thu, 21 Jun 2018 22:31:43 +0200 Stefan Agner wrote: > Add support for the NAND flash controller found on NVIDIA > Tegra 2 SoCs. This implementation does not make use of the > command queue feature. Regular operations using ->exec_op() > use PIO mode for data transfers. Raw, ECC and

Re: [PATCH] mtd: gpio_flash: add error handling for ioremap_nocache

2018-06-21 Thread Boris Brezillon
On Tue, 12 Jun 2018 11:15:00 +0800 Zhouyang Jia wrote: > When ioremap_nocache fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling ioremap_nocache. > > Signed-off-by: Zhouyang Jia > --- > drivers/mtd/maps/gpio-addr-flash.

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-22 Thread Boris Brezillon
Hi Piotr, On Fri, 22 Jun 2018 07:57:10 +0200 (CEST) Piotr Bugalski wrote: > Hi Boris, > > I'm a bit allergic to personal preferences in coding style, I'm just pointing things that are common kernel coding style practices. You might not like coding style rules of a particular project, but when

Re: [PATCH v5 5/6] mtd: rawnand: micron: support 8/512 on-die ECC

2018-06-22 Thread Boris Brezillon
On Fri, 22 Jun 2018 13:28:34 +1200 Chris Packham wrote: > Micron MT29F1G08ABAFAWP-ITE:F supports an on-die ECC with 8 bits > per 512 bytes. Add support for this combination. > > Signed-off-by: Chris Packham Reviewed-by: Boris Brezillon > --- > > Notes: > Ch

Re: [PATCH v5 6/6] mtd: rawnand: micron: detect forced on-die ECC

2018-06-22 Thread Boris Brezillon
hips from those that have optional support for > on-die ECC. > > When a chip with mandatory on-die ECC is detected change the current ECC > mode to on-die. That part is no longer true. > > Signed-off-by: Chris Packham With the commit message fixed: Reviewed-by: Boris B

[PATCH v5 09/10] gpio: Add a driver for Cadence I3C GPIO expander

2018-06-22 Thread Boris Brezillon
Add a driver for Cadence I3C GPIO expander. Signed-off-by: Boris Brezillon --- Hi Linus, I intentionally did not report your Acked-by because of the scract buffer changes I added in this version (needed to follow the "buffer should be DMA-able" rule) Feel free to add it back if y

Re: [PATCH] mtd: rawnand: fix return value check for bad block status

2018-06-22 Thread Boris Brezillon
On Mon, 18 Jun 2018 15:57:57 +0200 Miquel Raynal wrote: > Hi Boris, > > On Wed, 13 Jun 2018 14:32:36 +0530, Abhishek Sahu > wrote: > > > Positive return value from read_oob() is making false BAD > > blocks. For some of the NAND controllers, OOB bytes will be > > protected with ECC and read_oob

Re: [PATCH v2] mtd: dataflash: Use ULL suffix for 64-bit constants

2018-06-22 Thread Boris Brezillon
On Fri, 22 Jun 2018 09:04:25 +0200 Geert Uytterhoeven wrote: > With gcc 4.1.2 when compiling for 32-bit: > > drivers/mtd/devices/mtd_dataflash.c:736: warning: integer constant is too > large for ‘long’ type > drivers/mtd/devices/mtd_dataflash.c:737: warning: integer constant is too > l

Re: [PATCH v3 1/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-22 Thread Boris Brezillon
Hi Masahiro, On Tue, 19 Jun 2018 13:28:11 +0200 Boris Brezillon wrote: > Hi Masahiro, > > On Fri, 15 Jun 2018 10:18:50 +0900 > Masahiro Yamada wrote: > > > According to the Denali User's Guide, this IP needs three clocks: > > > > - clk: contro

Re: [PATCH v4 1/5] mtd: rawnand: denali_dt: set clk_x_rate to 200 MHz unconditionally

2018-06-22 Thread Boris Brezillon
for existing DT of UniPhier, and also > fixes the issue of SOCFPGA because both platforms use 200 MHz for the > bus interface clock. > > Fixes: 1bb88666775e ("mtd: nand: denali: handle timing parameters by > setup_data_interface()") > Cc: linux-stable #4.14+ > Reporte

Re: [PATCH v4 3/5] dt-binding: mtd: denali_dt: document clock property

2018-06-22 Thread Boris Brezillon
e clock for the backward > compatibility, but the DT binding should represent the real hardware, > and future platforms must follow this. > > Signed-off-by: Masahiro Yamada Reviewed-by: Boris Brezillon > --- > > Changes in v4: > - split into a separate patch > >

Re: [PATCH v4 4/5] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-22 Thread Boris Brezillon
ct denali_dt { > struct denali_nand_info denali; > - struct clk *clk; > + struct clk *clk;/* core clock */ > + struct clk *clk_x; /* bus interface clock */ > + struct clk *clk_ecc;/* ECC circuit clock */ Probably better to use a ke

Re: [PATCH 03/14] ubi: fastmap: Add support for flags

2018-06-24 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:33 +0200 Richard Weinberger wrote: > With version 2 of fastmap, flags are supported. > We fall back to scanning mode if unsupported flags are found. > > Signed-off-by: Richard Weinberger > --- > drivers/mtd/ubi/fastmap.c | 24 > drivers/mtd/

Re: [PATCH 04/14] ubi: fastmap: Add UBI_FM_SB_PRESEEDED_FLG flag

2018-06-24 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:34 +0200 Richard Weinberger wrote: > This flag indicates that the fastmap was preseeded, which means > it was created offline by a tool such as ubinize which cannot know > the whole MTD state such as real size and bad blocks. > As consequence UBI has to take special care

Re: [PATCH 09/14] ubi: fastmap: Relax size check

2018-06-24 Thread Boris Brezillon
mber if used PEBs for > the calculation. > Therefore the found fastmap might be smaller than the kernel expects. > > Signed-off-by: Richard Weinberger Reviewed-by: Boris Brezillon > --- > drivers/mtd/ubi/fastmap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 10/14] ubi: fastmap: Change a WARN_ON() to ubi_err()

2018-06-24 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:40 +0200 Richard Weinberger wrote: > This WARN_ON() was used while development of fastmap, now > it can be a regular ubi_err(). > > Signed-off-by: Richard Weinberger > --- > drivers/mtd/ubi/fastmap.c | 14 -- > 1 file changed, 8 insertions(+), 6 deletions(

Re: [PATCH 11/14] ubi: Add module parameter to force a full scan

2018-06-24 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:41 +0200 Richard Weinberger wrote: > Using this parameter one can force UBI do to a full scan > instead of using a fastmap. > > Signed-off-by: Richard Weinberger > --- > drivers/mtd/ubi/attach.c | 13 + > drivers/mtd/ubi/build.c | 5 - > 2 files chan

Re: [PATCH 12/14] ubi: uapi: Add mode selector to attach request

2018-06-24 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:42 +0200 Richard Weinberger wrote: > This allows userspace, ubiattach, to force a full scan. > > Signed-off-by: Richard Weinberger > --- > include/uapi/mtd/ubi-user.h | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/include/uapi

Re: [PATCH 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver

2018-06-24 Thread Boris Brezillon
Hi Yixun, On Wed, 13 Jun 2018 16:13:13 + Yixun Lan wrote: > From: Liang Yang > > Add Amlogic NAND controller dt-bindings for Meson SoC, > Current this driver support GXBB/GXL/AXG platform. > > Signed-off-by: Liang Yang > Signed-off-by: Yixun Lan > --- > .../bindings/mtd/amlogic,meson-n

Re: [PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-24 Thread Boris Brezillon
Hi Yixun, On Wed, 13 Jun 2018 16:13:14 + Yixun Lan wrote: > From: Liang Yang > > Add initial support for the Amlogic NAND flash controller which found > in the Meson-GXBB/GXL/AXG SoCs. > > Singed-off-by: Liang Yang > Signed-off-by: Yixun Lan > --- > drivers/mtd/nand/raw/Kconfig

Re: [PATCH v7 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-24 Thread Boris Brezillon
ase() being used here. As I said in my review of v6, it's not safe. Please use mtd_device_unregister() + nand_cleanup() instead, and check the return code of mtd_device_unregister(). With this addressed Reviewed-by: Boris Brezillon > + > + clk_disable_unprepare(ctrl->clk); > + > + return 0; > +} > +

Re: [PATCH] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-06-24 Thread Boris Brezillon
Hi Tudor, Just one minor comment, I'll let Marek review the patch in more details. On Fri, 8 Jun 2018 16:48:18 +0300 Tudor Ambarus wrote: > /* > * Erase an address range on the nor chip. The address range may extend > * one or more erase sectors. Return an error is there is a problem era

Re: [PATCH v3] lib/bch: Remove VLA usage

2018-06-24 Thread Boris Brezillon
On Wed, 20 Jun 2018 11:16:11 -0700 Kees Cook wrote: > On Wed, Jun 20, 2018 at 12:38 AM, Boris Brezillon > wrote: > > Hi Kees, > > > > On Tue, 19 Jun 2018 16:48:17 -0700 > > Kees Cook wrote: > > > >> On Fri, Jun 1, 2018 at 4:09 AM, Ivan Djelic &g

Re: [[LINUX PATCH v10] 1/4] Devicetree: Add pl353 smc controller devicetree binding information

2018-06-24 Thread Boris Brezillon
Hi Naga, Subject prefix should be "dt-bindings: memory: " not "Devicetree: ". On Thu, 21 Jun 2018 12:12:28 +0530 Naga Sureshkumar Relli wrote: > Add pl353 static memory controller devicetree binding information. > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v10: > - Corrected

Re: [[LINUX PATCH v10] 3/4] Documentation: nand: pl353: Add documentation for controller and driver

2018-06-24 Thread Boris Brezillon
On Thu, 21 Jun 2018 12:12:30 +0530 Naga Sureshkumar Relli wrote: > Added notes about the controller and driver. > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v10: > - None > Changes in v9: > - Addressed the comments given by Miquel and Randy > Changes in v8 > - None > Changes

Re: [[LINUX PATCH v10] 3/4] Documentation: nand: pl353: Add documentation for controller and driver

2018-06-25 Thread Boris Brezillon
On Mon, 25 Jun 2018 08:56:41 + Naga Sureshkumar Relli wrote: > Hi Boris, > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Monday, June 25, 2018 2:24 AM > > To: Naga Sureshkumar Relli > > Cc:

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-06-25 Thread Boris Brezillon
On Mon, 25 Jun 2018 09:50:18 -0500 Dinh Nguyen wrote: > On 06/22/2018 10:58 AM, Richard Weinberger wrote: > > Masahiro, > > > > Am Freitag, 22. Juni 2018, 16:37:21 CEST schrieb Masahiro Yamada: > >> Hi Richard, > >> > >> > >> 2018-06-19 21:07 GMT+09:00 Richard Weinberger : > >>> The denali N

Re: [PATCH v2] mtd: rawnand: denali: do not pass zero maxchips to nand_scan()

2018-08-27 Thread Boris Brezillon
On Mon, 27 Aug 2018 16:01:41 +0900 Masahiro Yamada wrote: > Commit 49aa76b16676 ("mtd: rawnand: do not execute nand_scan_ident() > if maxchips is zero") gave a new meaning for calling nand_scan_ident() > with maxchips=0. > > It is a special usage for some drivers such as docg4, but actually > th

Re: [PATCH] mtd: rawnand: atmel: use struct_size() in devm_kzalloc()

2018-08-27 Thread Boris Brezillon
Hi Gustavo, On Thu, 23 Aug 2018 20:09:38 -0500 "Gustavo A. R. Silva" wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: >

Re: [PATCH] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-27 Thread Boris Brezillon
On Sat, 18 Aug 2018 17:14:23 +0800 Liu Xiang wrote: > If the size of spi-nor flash is larger than 16MB, the read_opcode > is set to SPINOR_OP_READ_1_1_4_4B, and fsl_qspi_get_seqid() will > return -EINVAL when cmd is SPINOR_OP_READ_1_1_4_4B. This can > cause read operation fail. > > Signed-off-by

Re: [PATCH v2 5/9] mtd: nand: atmel: fix OF child-node lookup

2018-08-27 Thread Boris Brezillon
> Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver") > Cc: stable # 4.11 > Cc: Nicolas Ferre > Cc: Josh Wu > Cc: Boris Brezillon > Signed-off-by: Johan Hovold Acked-by: Boris Brezillon I'll let Miquel queue this patch to the nand/next b

Re: [PATCH v2 5/9] mtd: nand: atmel: fix OF child-node lookup

2018-08-27 Thread Boris Brezillon
On Mon, 27 Aug 2018 10:44:14 +0200 Johan Hovold wrote: > On Mon, Aug 27, 2018 at 10:28:20AM +0200, Boris Brezillon wrote: > > Hi Johan > > > > On Mon, 27 Aug 2018 10:21:49 +0200 > > Johan Hovold wrote: > > > > > Use the new of_get_compatible_child()

Re: [PATCH] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-27 Thread Boris Brezillon
On Mon, 27 Aug 2018 23:02:29 +0800 (CST) liuxiang wrote: > Fixes:e46ecda764dc37f9fc6279d95ea2c007daef1a71("mtd: spi-nor: Add Freescale > QuadSPI driver") 12 digits should be enough for the commit-id. > Cc: sta...@vger.kernel.org > > Should I send a V2 patch that adds these above? Yes please

Re: [PATCH] mtd: rawnand: docg4: Remove wrong __init annotations

2018-08-27 Thread Boris Brezillon
On Thu, 23 Aug 2018 23:43:45 +0200 Geert Uytterhoeven wrote: > If gcc (e.g. 4.1.2) decides not to inline init_mtd_structs() and > read_id_reg(), this will cause section mismatches, and crashes: > > WARNING: drivers/mtd/nand/raw/docg4.o(.text+0xc10): Section mismatch in > reference from the

<    1   2   3   4   5   6   7   8   9   10   >