mtd nand oob test gives reset to nand device at the start.
This will be problem for the nand devices which are configured for
nvddr modes. i.e controller and device both are not is same mode,
resulting failure in mtd-oob test. this patch fixes this with out
issuing reset.
Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* interface mode. This will be the problem for devices configured for
* NVDDR modes. So, limiting the reset operation to Toshiba devices.
*/
- if (chip->onfi_params.jedec_id == NAND_MFR_TOSHIBA)
+ if (chip->onfi_params.jedec_id == NAND_MFR_TOSHIBA) {
chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
-
- nand_reset(chip, chipnr);
+ nand_reset(chip, chipnr);
+ }
chip->select_chip(mtd, chipnr);