Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298171
b: refs/heads/master
c: aea686b
h: refs/heads/master
i:
  298169: 412017d
  298167: 51cf84d
v: v3
  • Loading branch information
Vipin Kumar authored and David Woodhouse committed Mar 26, 2012
1 parent d4d9afe commit 04b7876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 4cbe1bf07a4dfc3ec2d81c4e8aee832384997bc4
refs/heads/master: aea686b47c0cf97e0c6941799b523b6df87fc234
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/nand/fsmc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,9 @@ static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip,
* to read at least 13 bytes even in case of 16 bit NAND
* devices
*/
len = roundup(len, 2);
if (chip->options & NAND_BUSWIDTH_16)
len = roundup(len, 2);

chip->cmdfunc(mtd, NAND_CMD_READOOB, off, page);
chip->read_buf(mtd, oob + j, len);
j += len;
Expand Down

0 comments on commit 04b7876

Please sign in to comment.