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)
+ if (section)
+ return -ERANGE;
+
-+ region->offset = 8;
-+ region->length = 40;
++ region->offset = 48;
++ region->length = 16;
+
+ return 0;
+}
+ return -ERANGE;
+
+ region->offset = 1;
-+ region->length = 7;
++ region->length = 47;
+
+ return 0;
+}