Commit cca3b837 authored by Thomas Gleixner's avatar Thomas Gleixner

[MTD] NAND simplify nand_chip_select

nCE setting can be done when the first command is issued to the device.
We keep the deselect functionality as it makes sense to deassert nCE
when the device becomes idle.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 29da9cea
...@@ -174,8 +174,6 @@ static void nand_select_chip(struct mtd_info *mtd, int chipnr) ...@@ -174,8 +174,6 @@ static void nand_select_chip(struct mtd_info *mtd, int chipnr)
chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | NAND_CTRL_CHANGE); chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | NAND_CTRL_CHANGE);
break; break;
case 0: case 0:
chip->cmd_ctrl(mtd, NAND_CMD_NONE,
NAND_NCE | NAND_CTRL_CHANGE);
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment