Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252498
b: refs/heads/master
c: c5d8c0c
h: refs/heads/master
v: v3
  • Loading branch information
Kishore Kadiyala authored and David Woodhouse committed May 25, 2011
1 parent 4877e9a commit fac755c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 61cc8276fa776ced06b0e5b67b57e12c4997d388
refs/heads/master: c5d8c0cae4af7d78823d32fcd1c458ee1a1b5489
12 changes: 5 additions & 7 deletions trunk/drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,10 @@ static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len)
if (ret) {
/* PFPW engine is busy, use cpu copy method */
if (info->nand.options & NAND_BUSWIDTH_16)
omap_read_buf16(mtd, buf, len);
omap_read_buf16(mtd, (u_char *)p, len);
else
omap_read_buf8(mtd, buf, len);
omap_read_buf8(mtd, (u_char *)p, len);
} else {
p = (u32 *) buf;
do {
r_count = gpmc_read_status(GPMC_PREFETCH_FIFO_CNT);
r_count = r_count >> 2;
Expand All @@ -293,7 +292,7 @@ static void omap_write_buf_pref(struct mtd_info *mtd,
struct omap_nand_info, mtd);
uint32_t w_count = 0;
int i = 0, ret = 0;
u16 *p;
u16 *p = (u16 *)buf;
unsigned long tim, limit;

/* take care of subpage writes */
Expand All @@ -309,11 +308,10 @@ static void omap_write_buf_pref(struct mtd_info *mtd,
if (ret) {
/* PFPW engine is busy, use cpu copy method */
if (info->nand.options & NAND_BUSWIDTH_16)
omap_write_buf16(mtd, buf, len);
omap_write_buf16(mtd, (u_char *)p, len);
else
omap_write_buf8(mtd, buf, len);
omap_write_buf8(mtd, (u_char *)p, len);
} else {
p = (u16 *) buf;
while (len) {
w_count = gpmc_read_status(GPMC_PREFETCH_FIFO_CNT);
w_count = w_count >> 1;
Expand Down

0 comments on commit fac755c

Please sign in to comment.