mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
ar71xx: ar934x_nfc: fix RNDOUT operation
SVN-Revision: 33451
This commit is contained in:
parent
338b698fb6
commit
96dde2e591
@ -643,10 +643,14 @@ ar934x_nfc_cmdfunc(struct mtd_info *mtd, unsigned int command, int column,
|
||||
break;
|
||||
|
||||
case NAND_CMD_RNDOUT:
|
||||
if (WARN_ON(nfc->small_page))
|
||||
break;
|
||||
|
||||
/* 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,
|
||||
mtd->writesize, false);
|
||||
mtd->writesize + mtd->oobsize, false);
|
||||
nfc->buf_index = column;
|
||||
break;
|
||||
|
||||
case NAND_CMD_ERASE1:
|
||||
|
Loading…
Reference in New Issue
Block a user