RE: [EXT] [RESEND PATCH v3] mtd: spinand: micron: add support for MT29F2G01AAAED

2020-09-09 Thread Shivamurthy Shastri (sshivamurthy)
Hi Thirumalesha, I think it is better to split the patch into two: 1. Changes for the devices which are already present 2. For the device MT29F2G01AAAED, which you want to add > > The MT29F2G01AAAED is a single die, 2Gb Micron SPI NAND Flash with 4-bit > ECC > > Signed-off-by: Thirumalesha

RE: [EXT] [PATCH] mtd: spinand: micron: add support for MT29F2G01AAAED

2020-08-07 Thread Shivamurthy Shastri (sshivamurthy)
Hi Thirumalesha, > > The MT29F2G01AAAED is a single die, 2Gb Micron SPI NAND Flash with 4-bit > ECC > > Signed-off-by: Thirumalesha Narasimhappa > --- > drivers/mtd/nand/spi/micron.c | 77 +++ > 1 file changed, 77 insertions(+) > > diff --git

RE: [EXT] Re: [PATCH v7 0/6] Add new series Micron SPI NAND devices

2020-05-15 Thread Shivamurthy Shastri (sshivamurthy)
Hi Naresh and Poonam, > Subject: [EXT] Re: [PATCH v7 0/6] Add new series Micron SPI NAND devices > > Hi Poonam, > > Poonam Aggrwal wrote on Fri, 15 May 2020 > 05:29:07 +: > > > Adding Ashish. > > > > Regards > > Poonam > > > > > -Original Message- > > > From: Naresh Kamboju > > >

RE: [EXT] Re: [PATCH 6/8] mtd: spinand: micron: Turn driver implementation generic

2019-10-14 Thread Shivamurthy Shastri (sshivamurthy)
Hi Boris, Thank you for the review. > > On Mon, 19 Aug 2019 09:03:38 +0000 > "Shivamurthy Shastri (sshivamurthy)" wrote: > > > > > > > > static int micron_spinand_detect(struct spinand_device *spinand) > > > > { > > > > +

RE: [EXT] Re: [PATCH 4/8] mtd: spinand: enabled parameter page support

2019-09-30 Thread Shivamurthy Shastri (sshivamurthy)
Hello Miquel & Boris, Just a gentle reminder that I'd like some feedback. Thanks, Shiva > > Hi Boris, > > Another question for you :) > > "Shivamurthy Shastri (sshivamurthy)" wrote > on > Mon, 19 Aug 2019 08:51:52 +: > > > Hi Miquel, >

RE: [EXT] Re: [PATCH 6/8] mtd: spinand: micron: Turn driver implementation generic

2019-09-16 Thread Shivamurthy Shastri (sshivamurthy)
Hello Miquel & Boris, Just a gentle reminder that I'd like some feedback. Thanks, Shiva > > Hi Boris, > > I need your opinion on the question below. > > "Shivamurthy Shastri (sshivamurthy)" wrote > on > Mon, 19 Aug 2019 09:03:38 +: >

RE: [EXT] Re: [PATCH 6/8] mtd: spinand: micron: Turn driver implementation generic

2019-08-19 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > Hi Shiva, > > shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:19 +0200: > > > From: Shivamurthy Shastri > > > > I am not sure the "turn implemenatation generic" title describes what > you do. > > > Driver is redesigned using parameter page to support Micron SPI

RE: [EXT] Re: [PATCH 4/8] mtd: spinand: enabled parameter page support

2019-08-19 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > Hi Shiva, > > shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:17 +0200: > > "mtd: spinand: enable parameter page support" > > > From: Shivamurthy Shastri > > > > Some of the SPI NAND devices has parameter page, which is similar to > -

RE: [EXT] Re: [PATCH 2/8] mtd: nand: move support functions for ONFI to nand/onfi.c

2019-08-19 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > Hi shiva.linuxwo...@gmail.com, > > shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:15 +0200: > > > From: Shivamurthy Shastri > > "mtd: nand: move ONFI specific helpers to nand/onfi.c"? I will use this. > > > > > These functions are support functions for enabling

RE: [EXT] Re: [PATCH 1/8] mtd: nand: move ONFI related functions to onfi.h

2019-08-19 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, Thanks for reviewing. > > Hi Shiva, > > shiva.linuxwo...@gmail.com wrote on Mon, 22 Jul 2019 07:56:14 +0200: > > > From: Shivamurthy Shastri > > > > These functions will be used by both raw NAND and SPI NAND, which > > supports ONFI like standards. > > This is not exactly what

RE: [EXT] Re: [PATCH v3 04/12] mtd: rawnand: introduce struct onfi_helper

2019-06-04 Thread Shivamurthy Shastri (sshivamurthy)
Hi Boris, > > Create onfi_helper object. This is base to turn ONFI code to generic. > > > > Signed-off-by: Shivamurthy Shastri > > --- > > include/linux/mtd/nand.h | 21 + > > 1 file changed, 21 insertions(+) > > > > diff --git a/include/linux/mtd/nand.h

[PATCH v3 06/12] mtd: nand: Move ONFI code into nand/ directory

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Move generic ONFI code to nand/ directory, which can be used by SPI NAND layer. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/Makefile| 2 +- drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} | 1 + drivers/mtd/nand/raw/Makefile| 1 - 3 files changed, 2

[PATCH v3 08/12] mtd: spinand: add parameter page fixup function

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Parameter page not following any standard. Hence, manufacturers may interpret parameters differently, and it is better to have a fixup function. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/spi/core.c | 6 ++ include/linux/mtd/spinand.h | 2 ++ 2 files changed, 8 insertions(+)

[PATCH v3 02/12] mtd: rawnand: move ONFI related functions to nand.h

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
ONFI reated functions are used by nand_jedec.c and in next patch nand_onfi.c will be moving to nand/ directory, it is necessary to move these functions to nand.h. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/internals.h | 4 drivers/mtd/nand/raw/nand_onfi.c | 8

[PATCH v3 09/12] mtd: spinand: micron: prepare for generalizing driver

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
>From 654f8acf5d0724fda54c352cc91b0ab576dff928 Mon Sep 17 00:00:00 2001 From: Shivamurthy Shastri Date: Tue, 7 May 2019 15:19:22 +0200 Subject: [PATCH 09/12] mtd: spinand: micron: prepare for generalizing driver Generalize OOB layout structure and function names. Signed-off-by: Shivamurthy

[PATCH v3 10/12] mtd: spinand: micron: Turn driver implementation generic

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Driver is redesigned using parameter page to support Micron SPI NAND flashes. The reason why spinand_select_op_variant globalized is that the Micron driver no longer calling spinand_match_and_init. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/spi/core.c | 2 +-

[PATCH v3 04/12] mtd: rawnand: introduce struct onfi_helper

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Create onfi_helper object. This is base to turn ONFI code to generic. Signed-off-by: Shivamurthy Shastri --- include/linux/mtd/nand.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 3cdf06cae8b6..645dde4c5797

[PATCH v3 07/12] mtd: spinand: turn SPI NAND to support parameter page detection

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Instantiate onfi_helper object for SPI NAND. Enable SPI NAND core to detect SPI NANDs with parameter page. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/spi/core.c | 103 1 file changed, 103 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c

[PATCH v3 12/12] mtd: spinand: micron: Enable micron flashes with multi-die

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Some of the Micron flashes has multi-die, and need to select the die each time while accessing it. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/spi/micron.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/nand/spi/micron.c

[PATCH v3 11/12] mtd: spinand: micron: Fix read failure in Micron M70A flashes

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
M70A series flashes by default enable continuous read feature (BIT0 in configuration register). This feature will not expose the ECC to host and causing read failure. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/spi/micron.c | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v3 01/12] mtd: rawnand: turn nand_onfi_detect to use nand_device

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
It is necessary to turn nand_onfi_detect to use nand_device structure, to make ONFI related codes generic for all NAND devices. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/internals.h | 2 +- drivers/mtd/nand/raw/nand_base.c | 2 +- drivers/mtd/nand/raw/nand_onfi.c | 8 +---

[PATCH v3 05/12] mtd: rawnand: turn ONFI support to generic

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Instantiate the onfi_helper object for raw NAND and turn ONFI support to generic. Later this generic ONFI code will be used by SPI NAND as well. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/nand_base.c | 218 ++- drivers/mtd/nand/raw/nand_onfi.c | 183

[PATCH v3 03/12] mtd: rawnand: move sanitize_strings to nand_onfi.c

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
sanitize_strings is not used in nand_base.c but used in nand_onfi.c. It is better to move sanitize_strings definition to nand_onfi.c, with this all ONFI related functions will be in the same file. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/nand_base.c | 18 --

[PATCH v3 00/12] Introduce generic ONFI support

2019-06-03 Thread Shivamurthy Shastri (sshivamurthy)
Current support to ONFI parameter page is only for raw NAND, this patch series turn ONFI support into generic. So that, other NAND devices like SPI NAND can use this. There are five parts in this series. 1. Prepare for turning ONFI into generic 2. Turn ONFI into generic, which can be used by SPI

RE: [EXT] Re: [PATCH 3/4] mtd: spinand: Enabled support to detect parameter page

2019-05-28 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > > > > > > Some of the SPI NAND devices has parameter page which is similar to > ONFI > > > > table. > > > > > > > > But, it may not be self sufficient to propagate all the required > > > > parameters. Fixup function has been added in struct manufacturer to > > > > accommodate this.

RE: [EXT] Re: [PATCH 4/4] mtd: spinand: micron: Support for new Micron SPI NAND flashes

2019-05-02 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > Hi Shivamurthy, > > "Shivamurthy Shastri (sshivamurthy)" wrote > on > Tue, 26 Mar 2019 10:52:04 +: > > > Driver is redesigned using parameter page to support Micron SPI NAND > > flashes. > > > > Support for selecting di

RE: [EXT] Re: [PATCH 3/4] mtd: spinand: Enabled support to detect parameter page

2019-05-02 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > > Hi Shivamurthy, > > "Shivamurthy Shastri (sshivamurthy)" wrote > on > Tue, 26 Mar 2019 10:52:00 +: > > > Some of the SPI NAND devices has parameter page which is similar to ONFI > > table. > > > > But, it m

RE: [EXT] Re: [PATCH 1/4] mtd: rawnand: Turn the ONFI support to generic

2019-05-02 Thread Shivamurthy Shastri (sshivamurthy)
Hi Miquel, > Hi Shivamurthy, > > Sorry for the long delay I was a bit overloaded. > > "Shivamurthy Shastri (sshivamurthy)" wrote > on > Tue, 26 Mar 2019 10:51:47 +: > > > Fix headers to make way for adding helper functions. > > > > Add

[PATCH 3/4] mtd: spinand: Enabled support to detect parameter page

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Some of the SPI NAND devices has parameter page which is similar to ONFI table. But, it may not be self sufficient to propagate all the required parameters. Fixup function has been added in struct manufacturer to accommodate this. Signed-off-by: Shivamurthy Shastri ---

[PATCH 2/4] mtd: nand: Move ONFI code into nand/ directory

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Move generic ONFI code to nand/ directory, which can be used by SPI NAND layer. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/Makefile| 2 +- drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} | 0 drivers/mtd/nand/raw/Makefile| 1 - 3 files changed, 1

[PATCH 4/4] mtd: spinand: micron: Support for new Micron SPI NAND flashes

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Driver is redesigned using parameter page to support Micron SPI NAND flashes. Support for selecting die is enabled for multi-die flashes. Turn OOB layout generic. Fixup some of the parameter page data as per Micron datasheet. Signed-off-by: Shivamurthy Shastri ---

[PATCH 0/4] Introduce generic ONFI support

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Current support to ONFI parameter page is only for raw NAND, this patch series turn ONFI support into generic. So that, other NAND devices like SPI NAND can use this. Support to detect parameter page is enabled in SPI NAND core. Turned Micron SPI NAND driver to use parameter page. >From SPI

[PATCH 1/4] mtd: rawnand: Turn the ONFI support to generic

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Fix headers to make way for adding helper functions. Add onfi helper structure. Add helper functions in raw NAND core, which later will be used during ONFI detection. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/internals.h | 6 +- drivers/mtd/nand/raw/nand_base.c | 236

RE: [EXT] Re: [PATCH 2/2] mtd: spinand: micron: Support for all Micron SPI NAND flashes

2019-03-04 Thread Shivamurthy Shastri (sshivamurthy)
Hi Boris, > -Original Message- > From: Boris Brezillon > Sent: Monday, February 4, 2019 7:02 PM > To: Shivamurthy Shastri (sshivamurthy) > Cc: Miquel Raynal ; linux- > m...@lists.infradead.org; linux-kernel@vger.kernel.org; Chuanhong Guo > ; Richard Weinberger

Re: [PATCH 2/2] mtd: spinand: micron: Support for all Micron SPI NAND flashes

2019-02-04 Thread Shivamurthy Shastri (sshivamurthy)
Hi Emil, > Hi, > > Den mån 4 feb. 2019 kl 12:18 skrev Shivamurthy Shastri (sshivamurthy) > : > > > > Driver is redesigned using parameter page to support all the Micron > > SPI NAND flashes. > > > > Parameter page of Micron flashes is similar to ONFI par

[PATCH 2/2] mtd: spinand: micron: Support for all Micron SPI NAND flashes

2019-02-04 Thread Shivamurthy Shastri (sshivamurthy)
Driver is redesigned using parameter page to support all the Micron SPI NAND flashes. Parameter page of Micron flashes is similar to ONFI parameter table and functionality is same, so copied some of the common functions like crc16 and bit_wise_majority from nand_onfi.c. This driver is tested

[PATCH 1/2] mtd: spinand: Add function to read parameter page

2019-02-04 Thread Shivamurthy Shastri (sshivamurthy)
Some of the manufacturers support parameter page, which can be used to get the device details during detection. This function reads parameter page and this page can be accessed by set of commands, which are common across the manufacturers. Signed-off-by: Shivamurthy Shastri Reviewed-by: Bean

[PATCH 0/2] Support parameter page and Redesign Micron SPI NAND

2019-02-04 Thread Shivamurthy Shastri (sshivamurthy)
Parameter page is supported by some of the manufacturers and instead of maintaining spinand_info structure for each flash it is better to use the parameter page to get the flash info. As I have seen the different datasheets, command required to access parameter page is same across the