diff mbox

[1/1] mtd: OneNAND: fix bufferram management when chip has 2-planes.

Message ID 1287841434-3349-2-git-send-email-eballetbo@gmail.com (mailing list archive)
State Awaiting Upstream, archived
Headers show

Commit Message

Enric Balletbo Serra Oct. 23, 2010, 1:43 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index a2bb520..53aa13e 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1964,6 +1964,10 @@  static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 
 			/* In partial page write we don't update bufferram */
 			onenand_update_bufferram(mtd, to, !ret && !subpage);
+			ONENAND_SET_BUFFERRAM1(this);
+			onenand_update_bufferram(mtd, to + this->writesize,
+				!ret && !subpage);
+
 			if (ret) {
 				printk(KERN_ERR "%s: write failed %d\n",
 					__func__, ret);