mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
ar71xx: ar934x-nfc: disable subpage write when hardware ECC is used
It is not supported by the controller. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38234
This commit is contained in:
parent
5da90c4e1f
commit
7815af409a
@ -1281,6 +1281,12 @@ ar934x_nfc_setup_hwecc(struct ar934x_nfc *nfc)
|
||||
|
||||
switch (nfc->mtd.writesize) {
|
||||
case 2048:
|
||||
/*
|
||||
* Writing a subpage separately is not supported, because
|
||||
* the controller only does ECC on full-page accesses.
|
||||
*/
|
||||
nand->options = NAND_NO_SUBPAGE_WRITE;
|
||||
|
||||
nand->ecc.size = 512;
|
||||
nand->ecc.bytes = 7;
|
||||
nand->ecc.strength = 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user