|
@@ -396,7 +396,8 @@ static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip,
|
|
|
uint8_t *buf, int oob_required, int page)
|
|
|
{
|
|
|
chip->read_buf(mtd, buf, mtd->writesize);
|
|
|
- chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
|
|
|
+ if (oob_required)
|
|
|
+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
|
|
|
return 0;
|
|
|
}
|
|
|
|