Skip to content

Commit

Permalink
ar71xx: ar934x_nfc: optimize READOOB operation on large page devices
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33452 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
juhosg committed Sep 17, 2012
1 parent 56caae5 commit 5c9038f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
Expand Up @@ -628,18 +628,16 @@ ar934x_nfc_cmdfunc(struct mtd_info *mtd, unsigned int command, int column,
break;

case NAND_CMD_READOOB:
if (nfc->small_page) {
if (nfc->small_page)
ar934x_nfc_send_read(nfc, NAND_CMD_READOOB,
column, page_addr,
mtd->oobsize,
true);
} else {
else
ar934x_nfc_send_read(nfc, NAND_CMD_READ0,
column, page_addr,
mtd->writesize + mtd->oobsize,
mtd->writesize, page_addr,
mtd->oobsize,
true);
nfc->buf_index = mtd->writesize;
}
break;

case NAND_CMD_RNDOUT:
Expand Down

0 comments on commit 5c9038f

Please sign in to comment.