projects
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: nand: fix the partial page write condition
[kernel/u-boot.git]
/
drivers
/
mtd
/
nand
/
nand_base.c
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index
a2d06be
..
3d84659
100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-1973,7
+1973,7
@@
static int nand_do_write_ops(struct mtd_info *mtd, loff_t to,
uint8_t *wbuf = buf;
/* Partial page write ? */
- if (unlikely(column || writelen <
(mtd->writesize - 1)
)) {
+ if (unlikely(column || writelen <
mtd->writesize
)) {
cached = 0;
bytes = min_t(int, bytes - column, (int) writelen);
chip->pagebuf = -1;