Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93049
b: refs/heads/master
c: c45c6c6
h: refs/heads/master
i:
  93047: 7968ad9
v: v3
  • Loading branch information
Ben Dooks authored and David Woodhouse committed Apr 22, 2008
1 parent 7af879e commit e814996
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71d54f3855b4ca98559e8782350336ec2433cc24
refs/heads/master: c45c6c68333c04de84c21a4b869f36a96f642779
8 changes: 8 additions & 0 deletions trunk/drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat,
if (diff0 == 0 && diff1 == 0 && diff2 == 0)
return 0; /* ECC is ok */

/* sometimes people do not think about using the ECC, so check
* to see if we have an 0xff,0xff,0xff read ECC and then ignore
* the error, on the assumption that this is an un-eccd page.
*/
if (read_ecc[0] == 0xff && read_ecc[1] == 0xff && read_ecc[2] == 0xff
&& info->platform->ignore_unset_ecc)
return 0;

/* Can we correct this ECC (ie, one row and column change).
* Note, this is similar to the 256 error code on smartmedia */

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-arm/plat-s3c/nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ struct s3c2410_platform_nand {
int twrph0; /* active time for nWE/nOE */
int twrph1; /* time for release CLE/ALE from nWE/nOE inactive */

unsigned int ignore_unset_ecc : 1;

int nr_sets;
struct s3c2410_nand_set *sets;

Expand Down

0 comments on commit e814996

Please sign in to comment.