1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 19:01:10 +02:00

ar71xx: ar934x_nfc: fix RNDOUT operation

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33451 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-09-17 20:30:51 +00:00
parent 5cf642fa6f
commit 56caae5b72

View File

@ -643,10 +643,14 @@ ar934x_nfc_cmdfunc(struct mtd_info *mtd, unsigned int command, int column,
break; break;
case NAND_CMD_RNDOUT: case NAND_CMD_RNDOUT:
if (WARN_ON(nfc->small_page))
break;
/* emulate subpage read */ /* emulate subpage read */
ar934x_nfc_send_read(nfc, nfc->rndout_read_cmd, column, ar934x_nfc_send_read(nfc, nfc->rndout_read_cmd, 0,
nfc->rndout_page_addr, nfc->rndout_page_addr,
mtd->writesize, false); mtd->writesize + mtd->oobsize, false);
nfc->buf_index = column;
break; break;
case NAND_CMD_ERASE1: case NAND_CMD_ERASE1: