Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176950
b: refs/heads/master
c: c1317f7
h: refs/heads/master
v: v3
  • Loading branch information
Scott Wood authored and David Woodhouse committed Nov 30, 2009
1 parent a837b01 commit 5ff361b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 476459a6cf46d20ec73d9b211f3894ced5f9871e
refs/heads/master: c1317f7163d287805b8e12af12d04a2a6ead865c
13 changes: 8 additions & 5 deletions trunk/drivers/mtd/nand/fsl_elbc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,15 @@ static int fsl_elbc_run_command(struct mtd_info *mtd)

ctrl->use_mdr = 0;

dev_vdbg(ctrl->dev,
"fsl_elbc_run_command: stat=%08x mdr=%08x fmr=%08x\n",
ctrl->status, ctrl->mdr, in_be32(&lbc->fmr));
if (ctrl->status != LTESR_CC) {
dev_info(ctrl->dev,
"command failed: fir %x fcr %x status %x mdr %x\n",
in_be32(&lbc->fir), in_be32(&lbc->fcr),
ctrl->status, ctrl->mdr);
return -EIO;
}

/* returns 0 on success otherwise non-zero) */
return ctrl->status == LTESR_CC ? 0 : -EIO;
return 0;
}

static void fsl_elbc_do_read(struct nand_chip *chip, int oob)
Expand Down

0 comments on commit 5ff361b

Please sign in to comment.