mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-06 00:13:38 -04:00
mtd: nand: Fix nand_command_lp() for 8bits opcodes
8 bits opcodes should be followed by a single address cycle. Make the 2nd address cycle dependent of !nand_opcode_8bits(command). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
parent
4796d86559
commit
fde85cfd2d
1 changed files with 4 additions and 1 deletions
|
@ -745,6 +745,9 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
|
||||||
column >>= 1;
|
column >>= 1;
|
||||||
chip->cmd_ctrl(mtd, column, ctrl);
|
chip->cmd_ctrl(mtd, column, ctrl);
|
||||||
ctrl &= ~NAND_CTRL_CHANGE;
|
ctrl &= ~NAND_CTRL_CHANGE;
|
||||||
|
|
||||||
|
/* Only ouput a single addr cycle for 8bits opcodes. */
|
||||||
|
if (!nand_opcode_8bits(command))
|
||||||
chip->cmd_ctrl(mtd, column >> 8, ctrl);
|
chip->cmd_ctrl(mtd, column >> 8, ctrl);
|
||||||
}
|
}
|
||||||
if (page_addr != -1) {
|
if (page_addr != -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue