[PATCH] mxc_nand : add RESET command support

Artem Bityutskiy dedekind1 at gmail.com
Wed Dec 9 03:25:50 EST 2009


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 at 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.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list