mtd: rawnand: atmel: Drop redundant nand_read_page_op()
The legacy page read path in atmel_hsmc_nand_pmecc_read_pg() issues a nand_read_page_op() that's already issued by atmel_nand_pmecc_read_pg(). Let's get rid of the unneeded one. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200720131356.1579073-3-tudor.ambarus@microchip.com
This commit is contained in:
committed by
Miquel Raynal
parent
b0155dadeb
commit
dca3c3ce3c
@@ -983,12 +983,9 @@ static int atmel_hsmc_nand_pmecc_read_pg(struct nand_chip *chip, u8 *buf,
|
|||||||
* connected to a native SoC R/B pin. If that's not the case, fallback
|
* connected to a native SoC R/B pin. If that's not the case, fallback
|
||||||
* to the non-optimized one.
|
* to the non-optimized one.
|
||||||
*/
|
*/
|
||||||
if (nand->activecs->rb.type != ATMEL_NAND_NATIVE_RB) {
|
if (nand->activecs->rb.type != ATMEL_NAND_NATIVE_RB)
|
||||||
nand_read_page_op(chip, page, 0, NULL, 0);
|
|
||||||
|
|
||||||
return atmel_nand_pmecc_read_pg(chip, buf, oob_required, page,
|
return atmel_nand_pmecc_read_pg(chip, buf, oob_required, page,
|
||||||
raw);
|
raw);
|
||||||
}
|
|
||||||
|
|
||||||
nc->op.cmds[nc->op.ncmds++] = NAND_CMD_READ0;
|
nc->op.cmds[nc->op.ncmds++] = NAND_CMD_READ0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user