Patchwork mxc_nand : add RESET command support

login
register
mail settings
Submitter Eric Benard
Date Dec. 7, 2009, 10:02 p.m.
Message ID <4B1D7B67.5010900@eukrea.com>
Download mbox | patch
Permalink /patch/40547/
State New, archived
Headers show

Comments

Eric Benard - Dec. 7, 2009, 10:02 p.m.
mxc_nand driver must support the RESET Command in order to support 
Micron NAND which need a reset before any other command.

Signed-off-by: Eric Benard <eric@eukrea.com>
--
Artem Bityutskiy - Dec. 9, 2009, 8:25 a.m.
On Mon, 2009-12-07 at 23:02 +0100, Eric Bénard wrote:
> mxc_nand driver must support the RESET Command in order to support 
> Micron NAND which need a reset before any other command.
> 
> Signed-off-by: Eric Benard <eric@eukrea.com>
> --
> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
> index d5445cd..0207525 100644
> --- a/drivers/mtd/nand/mxc_nand.c
> +++ b/drivers/mtd/nand/mxc_nand.c
> @@ -638,6 +638,7 @@ static void mxc_nand_command(struct mtd_info *mtd, 
> unsigned command
> 
>          case NAND_CMD_ERASE1:
>          case NAND_CMD_ERASE2:
> +       case NAND_CMD_RESET:
>                  send_cmd(host, command, false);
>                  mxc_do_addr_cycle(mtd, column, page_addr);

Please, send a non-line-wrapped patch.
Eric Benard - Jan. 21, 2010, 8:46 p.m.
Hi Sascha,

is it possible to get this patch merged to fix the RESET command on 
mxc_nand ?

Thanks,
Eric

Le 07/12/2009 23:02, Eric Bénard a écrit :
> mxc_nand driver must support the RESET Command in order to support
> Micron NAND which need a reset before any other command.
>
> Signed-off-by: Eric Benard <eric@eukrea.com>
> --
> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
> index d5445cd..0207525 100644
> --- a/drivers/mtd/nand/mxc_nand.c
> +++ b/drivers/mtd/nand/mxc_nand.c
> @@ -638,6 +638,7 @@ static void mxc_nand_command(struct mtd_info *mtd,
> unsigned command
>
> case NAND_CMD_ERASE1:
> case NAND_CMD_ERASE2:
> + case NAND_CMD_RESET:
> send_cmd(host, command, false);
> mxc_do_addr_cycle(mtd, column, page_addr);
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>

Patch

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index d5445cd..0207525 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -638,6 +638,7 @@  static void mxc_nand_command(struct mtd_info *mtd, 
unsigned command

         case NAND_CMD_ERASE1:
         case NAND_CMD_ERASE2:
+       case NAND_CMD_RESET:
                 send_cmd(host, command, false);
                 mxc_do_addr_cycle(mtd, column, page_addr);