Patchwork nanddump: Support 4096+218 and 4096+224 page sizes

login
register
mail settings
Submitter Kevin Cernekee
Date May 4, 2010, 4:14 a.m.
Message ID <fd9a371bd2bc8bea4119df47b82550901f017e10@localhost.localdomain>
Download mbox | patch
Permalink /patch/51557/
State New
Headers show

Comments

Kevin Cernekee - May 4, 2010, 4:14 a.m.
Tested with Samsung K9GAG08U0D.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
---
 nanddump.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Artem Bityutskiy - May 5, 2010, 11:25 a.m.
On Mon, 2010-05-03 at 21:14 -0700, Kevin Cernekee wrote:
> Tested with Samsung K9GAG08U0D.
> 
> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
> ---
>  nanddump.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Pushed to mtd-utils.git

Patch

diff --git a/nanddump.c b/nanddump.c
index 678d684..ae0e425 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -209,7 +209,9 @@  int main(int argc, char * const argv[])
 	}
 
 	/* Make sure device page sizes are valid */
-	if (!(meminfo.oobsize == 128 && meminfo.writesize == 4096) &&
+	if (!(meminfo.oobsize == 224 && meminfo.writesize == 4096) &&
+			!(meminfo.oobsize == 218 && meminfo.writesize == 4096) &&
+			!(meminfo.oobsize == 128 && meminfo.writesize == 4096) &&
 			!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
 			!(meminfo.oobsize == 32 && meminfo.writesize == 1024) &&
 			!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&