mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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) ||
|
||||
|
||||
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user