Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195883
b: refs/heads/master
c: c3341d0
h: refs/heads/master
i:
  195881: 4a3e815
  195879: 5c1219a
v: v3
  • Loading branch information
Vimal Singh authored and David Woodhouse committed Feb 26, 2010
1 parent 07c5ac7 commit 5f99587
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: f35b6eda5184e46bf2393d8970b4b9498daf7bcf
refs/heads/master: c3341d0ceb4de1680572024f50233403c6a8b10d
11 changes: 7 additions & 4 deletions trunk/drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,14 @@ static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len)
u32 *p = (u32 *)buf;

/* take care of subpage reads */
for (; len % 4 != 0; ) {
*buf++ = __raw_readb(info->nand.IO_ADDR_R);
len--;
if (len % 4) {
if (info->nand.options & NAND_BUSWIDTH_16)
omap_read_buf16(mtd, buf, len % 4);
else
omap_read_buf8(mtd, buf, len % 4);
p = (u32 *) (buf + len % 4);
len -= len % 4;
}
p = (u32 *) buf;

/* configure and start prefetch transfer */
ret = gpmc_prefetch_enable(info->gpmc_cs, 0x0, len, 0x0);
Expand Down

0 comments on commit 5f99587

Please sign in to comment.