diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-09-17 20:30:53 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-09-17 20:30:53 +0000 |
commit | 9ffbc4ff02810b55b95de9f370f42e25c24d8aac (patch) | |
tree | 5c794fc582a76bf1e54399a556f9788ab2b7123d | |
parent | 375b85687f03cf521c78030ab3f5c74dd94600e9 (diff) | |
download | master-187ad058-9ffbc4ff02810b55b95de9f370f42e25c24d8aac.tar.gz master-187ad058-9ffbc4ff02810b55b95de9f370f42e25c24d8aac.tar.bz2 master-187ad058-9ffbc4ff02810b55b95de9f370f42e25c24d8aac.zip |
ar71xx: ar934x_nfc: optimize READOOB operation on large page devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33452 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c | 10 |
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: |