Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310223
b: refs/heads/master
c: 279f08d
h: refs/heads/master
i:
  310221: da646c2
  310219: 4c5de6c
  310215: 3c4ef05
  310207: d3a6959
v: v3
  • Loading branch information
Brian Norris authored and David Woodhouse committed May 14, 2012
1 parent a24934a commit 3df3027
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7725cc85932bd02dd12c23108e0ef748c551ccba
refs/heads/master: 279f08d4ef6548be4e2fa638245adebc77436e54
6 changes: 4 additions & 2 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
uint8_t *buf, int oob_required, int page)
{
chip->read_buf(mtd, buf, mtd->writesize);
chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
if (oob_required)
chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
return 0;
}

Expand Down Expand Up @@ -1928,7 +1929,8 @@ static void nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
const uint8_t *buf, int oob_required)
{
chip->write_buf(mtd, buf, mtd->writesize);
chip->write_buf(mtd, chip->oob_poi, mtd->oobsize);
if (oob_required)
chip->write_buf(mtd, chip->oob_poi, mtd->oobsize);
}

/**
Expand Down

0 comments on commit 3df3027

Please sign in to comment.