Re: [PATCH 02/13] mtd: spinand: winbond: Generalize the KV OOB layout

From: Miquel Raynal

Date: Tue Nov 17 2026 - 10:34:00 EST



>> + 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@xxxxxxxxxxxxxxxxx>

Thanks a lot for the feedback!

Miquèl