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)
commitf12adc412bea0cf0a2fb428ca9be15f7ee4d1f54
tree3c91226b2619fb8c03dba497ea71901b52e4b5c3
parentaa640401e579c9b6be27fe98c73c467f8c45201a
kernel: Fix oob layout of XTX XT26G0xA

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