drivers: mtd: nand: fix cs configuration error during nand initialization

Change-Id: I200c5b00b1a900a4a6d95ed6a409e0409bb2c058
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
This commit is contained in:
Yifeng Zhao
2019-06-13 09:23:31 +08:00
committed by Tao Huang
parent d82f1d3e58
commit 362a761161
2 changed files with 2 additions and 2 deletions

View File

@@ -637,7 +637,7 @@ static int rk_nandc_chips_init(struct device *dev, struct rk_nandc *nandc)
nand_dev_id = chip->read_byte(mtd);
chip->select_chip(mtd, -1);
} else {
chip->select_chip(mtd, chipnr);
chip->select_chip(mtd, bank_idx);
chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1);
if (nand_maf_id != chip->read_byte(mtd) ||

View File

@@ -622,7 +622,7 @@ static int rk_nandc_chips_init(struct device *dev, struct rk_nandc *nandc)
nand_dev_id = chip->read_byte(mtd);
chip->select_chip(mtd, -1);
} else {
chip->select_chip(mtd, chipnr);
chip->select_chip(mtd, bank_idx);
chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1);
if (nand_maf_id != chip->read_byte(mtd) ||