projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mtd: nand: Add a few more timings to nand_sdr_timings
[oweals/u-boot.git]
/
drivers
/
mtd
/
nand
/
omap_elm.c
diff --git
a/drivers/mtd/nand/omap_elm.c
b/drivers/mtd/nand/omap_elm.c
index afa629a8135475f01991a28787d4613b85682c2a..9ef1b2169e03999ffebbd768d4146c7a411c117f 100644
(file)
--- a/
drivers/mtd/nand/omap_elm.c
+++ b/
drivers/mtd/nand/omap_elm.c
@@
-15,10
+15,11
@@
#include <common.h>
#include <asm/io.h>
#include <common.h>
#include <asm/io.h>
-#include <
asm
/errno.h>
+#include <
linux
/errno.h>
#include <linux/mtd/omap_elm.h>
#include <asm/arch/hardware.h>
#include <linux/mtd/omap_elm.h>
#include <asm/arch/hardware.h>
+#define DRIVER_NAME "omap-elm"
#define ELM_DEFAULT_POLY (0)
struct elm *elm_cfg;
#define ELM_DEFAULT_POLY (0)
struct elm *elm_cfg;
@@
-113,8
+114,10
@@
int elm_check_error(u8 *syndrome, enum bch_level bch_type, u32 *error_count,
/* check if correctable */
location_status = readl(&elm_cfg->error_location[poly].location_status);
/* check if correctable */
location_status = readl(&elm_cfg->error_location[poly].location_status);
- if (!(location_status & ELM_LOCATION_STATUS_ECC_CORRECTABLE_MASK))
- return -1;
+ if (!(location_status & ELM_LOCATION_STATUS_ECC_CORRECTABLE_MASK)) {
+ printf("%s: uncorrectable ECC errors\n", DRIVER_NAME);
+ return -EBADMSG;
+ }
/* get error count */
*error_count = readl(&elm_cfg->error_location[poly].location_status) &
/* get error count */
*error_count = readl(&elm_cfg->error_location[poly].location_status) &