Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand Deal with a spare size of 32. XXX necc_offset ...
details: https://anonhg.NetBSD.org/src/rev/baa713615cb0
branches: trunk
changeset: 780102:baa713615cb0
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 12 03:05:01 2012 +0000
description:
Deal with a spare size of 32. XXX necc_offset is only a guess.
diffstat:
sys/dev/nand/nand.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r b9f2aa139e53 -r baa713615cb0 sys/dev/nand/nand.c
--- a/sys/dev/nand/nand.c Thu Jul 12 01:21:08 2012 +0000
+++ b/sys/dev/nand/nand.c Thu Jul 12 03:05:01 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand.c,v 1.16 2011/08/28 20:49:30 martin Exp $ */
+/* $NetBSD: nand.c,v 1.17 2012/07/12 03:05:01 matt Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -34,7 +34,7 @@
/* Common driver for NAND chips implementing the ONFI 2.2 specification */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.16 2011/08/28 20:49:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.17 2012/07/12 03:05:01 matt Exp $");
#include "locators.h"
@@ -429,6 +429,9 @@
case 16:
ecc->necc_offset = 0;
break;
+ case 32:
+ ecc->necc_offset = 0;
+ break;
case 64:
ecc->necc_offset = 40;
break;
@@ -436,7 +439,7 @@
ecc->necc_offset = 80;
break;
default:
- panic("OOB size is unexpected");
+ panic("OOB size %zu is unexpected", chip->nc_spare_size);
}
ecc->necc_steps = chip->nc_page_size / ecc->necc_block_size;
Home |
Main Index |
Thread Index |
Old Index