[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 12/23] hw/nand.c: bug fix to erase operation
From: |
Kuo-Jung Su |
Subject: |
[Qemu-devel] [PATCH v4 12/23] hw/nand.c: bug fix to erase operation |
Date: |
Tue, 26 Feb 2013 17:14:03 +0800 |
From: Kuo-Jung Su <address@hidden>
The s->addr should be reset along with the s->addrlen,
or it might have the previous address shifted to MSB,
and causes problem to nand erase operation.
Signed-off-by: Kuo-Jung Su <address@hidden>
---
hw/nand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/nand.c b/hw/nand.c
index 7f40ebf..3cf91c5 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -511,6 +511,7 @@ void nand_setio(DeviceState *dev, uint32_t value)
nand_command(s);
if (s->cmd != NAND_CMD_RANDOMREAD2) {
+ s->addr = 0;
s->addrlen = 0;
}
}
--
1.7.9.5
- [Qemu-devel] [PATCH v4 15/23] hw: add WM8731 codec support, (continued)
[Qemu-devel] [PATCH v4 12/23] hw/nand.c: bug fix to erase operation,
Kuo-Jung Su <=
[Qemu-devel] [PATCH v4 19/23] hw/arm: add Faraday FTTSC010 touchscreen controller support, Kuo-Jung Su, 2013/02/26