kernel: Fix oob layout of XTX XT26G0xA
authorFelix Matouschek <felix@matouschek.org>
Fri, 8 Apr 2022 16:27:05 +0000 (18:27 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 11 Apr 2022 20:47:03 +0000 (22:47 +0200)
The correct oob layout is:

ECC:
region->offset = 48;
region->length = 16;

Free:
/* Reserve 1 byte for the BBM. */
region->offset = 1;
region->length = 47;

Signed-off-by: Felix Matouschek <felix@matouschek.org>
(cherry picked from commit a5de91a88a8a33ced147bb5340fd45599f652d4d)

target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch

index c55ce872251761e28ab92ae1f70a54a62db43eef..3a8ba498bd1aa87e90a8a24631129d3e238db4a1 100644 (file)
@@ -83,8 +83,8 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +      if (section)
 +              return -ERANGE;
 +
-+      region->offset = 8;
-+      region->length = 40;
++      region->offset = 48;
++      region->length = 16;
 +
 +      return 0;
 +}
@@ -96,7 +96,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +              return -ERANGE;
 +
 +      region->offset = 1;
-+      region->length = 7;
++      region->length = 47;
 +
 +      return 0;
 +}