aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-09-17 20:30:53 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-09-17 20:30:53 +0000
commitb7cb43f6a6f33416fdac54b7ae84c96d56b050ff (patch)
treea4e8b89de6f645f388a16f9b25b3c95b41f1cf56 /target/linux/ar71xx/files
parent96dde2e591fd952ba4dc471e55ed88f21c2683d6 (diff)
downloadupstream-b7cb43f6a6f33416fdac54b7ae84c96d56b050ff.tar.gz
upstream-b7cb43f6a6f33416fdac54b7ae84c96d56b050ff.tar.bz2
upstream-b7cb43f6a6f33416fdac54b7ae84c96d56b050ff.zip
ar71xx: ar934x_nfc: optimize READOOB operation on large page devices
SVN-Revision: 33452
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
index d889c70b02..a0f2a6ad56 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
@@ -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: