summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRichard Genoud <[email protected]>2026-01-23 12:44:53 +0100
committerMichael Trimarchi <[email protected]>2026-02-03 21:45:06 +0100
commit442eb06c92eba87b63dcd7222088a18e951e024d (patch)
tree9433d572537a530b8f6f023baa356c56e717397f /drivers
parent50b459973c3e747d9e5e4b38acb0702724fd8e68 (diff)
mtd: rawnand: sunxi_spl: increase max_oobsize for 2KiB pages
Increase max_oobsize to take into account bigger OOB on 2KiB pages Some NAND chip (e.g. Kioxia TC58NVG1S3HTA00) have a 2KiB page size + 128 bytes OOB. In order to detect them, the max_oobsize has to be increased from 64 to 128 bytes. Tested on Kioxia TC58NVG1S3HTA00 NAND chip on Whatsminer H616 board. Signed-off-by: Richard Genoud <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/raw/sunxi_nand_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
index da94285e6b7..9a6286b015d 100644
--- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
+++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
@@ -303,7 +303,7 @@ static int nand_max_ecc_strength(struct nfc_config *conf)
*/
switch (conf->page_size) {
case 2048:
- max_oobsize = 64;
+ max_oobsize = 128;
break;
case 4096:
max_oobsize = 256;