Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45649
b: refs/heads/master
c: 470b0a9
h: refs/heads/master
i:
  45647: 40aec12
v: v3
  • Loading branch information
David Woodhouse committed Oct 23, 2006
1 parent cd87027 commit 2b4a210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fbad5696c5c45982d02e05b85922bad6eb6e6349
refs/heads/master: 470b0a90d6a21cb72b671215f12ec7ec8a0db2c0
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/nand/cafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ module_param(skipbbt, int, 0644);
static int debug = 0;
module_param(debug, int, 0644);

static int checkecc = 0;
module_param(checkecc, int, 0644);

/* Hrm. Why isn't this already conditional on something in the struct device? */
#define cafe_dev_dbg(dev, args...) do { if (debug) dev_dbg(dev, ##args); } while(0)

Expand Down Expand Up @@ -214,7 +217,7 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
writel(cafe->ctl2 | 0x100 | NAND_CMD_READSTART, cafe->mmio + CAFE_NAND_CTRL2);

do_command:
#if 1
#if 0
/* http://dev.laptop.org/ticket/200
ECC on read only works if we read precisely 0x80e bytes */
if (cafe->datalen == 2112)
Expand Down Expand Up @@ -382,7 +385,7 @@ static int cafe_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip,
chip->read_buf(mtd, buf, mtd->writesize);
chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);

if (readl(cafe->mmio + CAFE_NAND_ECC_RESULT) & (1<<18)) {
if (checkecc && readl(cafe->mmio + CAFE_NAND_ECC_RESULT) & (1<<18)) {
unsigned short syn[8];
int i;

Expand Down

0 comments on commit 2b4a210

Please sign in to comment.