[PATCH 02/13] mtd: spinand: winbond: Generalize the KV OOB layout
Miquel Raynal
miquel.raynal at bootlin.com
Tue Nov 17 07:33:46 PST 2026
>> + unsigned int offset = mtd->oobsize / 2;
>> + unsigned int num_sections = mtd->writesize / 512;
>
> Ah, I couldn't use oobsize for num_sections because of W25N01KV but
> using writesize makes sense as well as there's one section per 512 bytes
> chunk, and this works for all devices.
>
> Good cleanup!
>
> Reviewed-by: Dominique Martinet <dominique.martinet at atmark-techno.com>
Thanks a lot for the feedback!
Miquèl
More information about the linux-mtd
mailing list