Hi Boris, On Wed, Jan 30, 2019 at 12:56 PM Boris Brezillon <bbrezillon@xxxxxxxxxx> wrote: > Commit 33f45c44d68b ("mtd: Do not allow MTD devices with inconsistent > erase properties") introduced a check to make sure ->erasesize and > ->_erase values are consistent with the MTD_NO_ERASE flag. > This patch did not take the 0 bytes partition case into account which > can happen when the defined partition is outside the flash device memory > range. Fix that by setting the partition erasesize to the parent > erasesize. > > Fixes: 33f45c44d68b ("mtd: Do not allow MTD devices with inconsistent erase properties") > Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > Cc: <stable@xxxxxxxxxxxxxxx> > Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > Signed-off-by: Boris Brezillon <bbrezillon@xxxxxxxxxx> Thanks, that made the warning disappear. Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/