Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c36c46d5 authored by Adrian Hunter's avatar Adrian Hunter Committed by David Woodhouse
Browse files

[MTD] [OneNAND] Exit loop only when column start with 0



The JFFS2 requests OOB function from column 0.
But the oobtest in nand-tests doesn't.
So we only exit loop only when column start with 0.

Signed-off-by: default avatarAdrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent ad286343
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -857,7 +857,7 @@ static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int col
			int n = ed - st;
			memcpy(buf, oob_buf + st, n);
			buf += n;
		} else
		} else if (column == 0)
			break;
	}
	return 0;
@@ -1302,7 +1302,7 @@ static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf,
			int n = ed - st;
			memcpy(oob_buf + st, buf, n);
			buf += n;
		} else
		} else if (column == 0)
			break;
	}
	return 0;