mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:43:08 +02:00
ar71xx: ar934x_nfc: fix READ{0,1} operation on large page devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33450 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3102084037
commit
5cf642fa6f
@ -613,15 +613,18 @@ ar934x_nfc_cmdfunc(struct mtd_info *mtd, unsigned int command, int column,
|
||||
|
||||
case NAND_CMD_READ0:
|
||||
case NAND_CMD_READ1:
|
||||
if (nfc->small_page)
|
||||
if (nfc->small_page) {
|
||||
ar934x_nfc_send_read(nfc, command, column, page_addr,
|
||||
mtd->writesize + mtd->oobsize,
|
||||
false);
|
||||
else
|
||||
ar934x_nfc_send_read(nfc, command, column, page_addr,
|
||||
mtd->writesize, false);
|
||||
} else {
|
||||
ar934x_nfc_send_read(nfc, command, 0, page_addr,
|
||||
mtd->writesize + mtd->oobsize,
|
||||
false);
|
||||
nfc->buf_index = column;
|
||||
nfc->rndout_page_addr = page_addr;
|
||||
nfc->rndout_read_cmd = command;
|
||||
}
|
||||
break;
|
||||
|
||||
case NAND_CMD_READOOB:
|
||||
|
Loading…
Reference in New Issue
Block a user