kernel: mtdsplit: rework and make use of -ENOENT error
authorChristian Marangi <[email protected]>
Tue, 18 Nov 2025 12:07:59 +0000 (13:07 +0100)
committerChristian Marangi <[email protected]>
Tue, 18 Nov 2025 12:07:59 +0000 (13:07 +0100)
commite5ad92c588ce0d4ce9238a9dc920b345313417a8
tree4ff0c1b31bdf3eb007f069fb02b937ca712dc833
parent1db7ed390db47267461c338530025d5ed00d6192
kernel: mtdsplit: rework and make use of -ENOENT error

Rework each affected mtdsplit driver to make use of -ENOENT error
instead of -ENODEV to handle new kernel that checks error from parser on
subpartitions.

The only acceptable error is -ENOENT that skip the parser. This follow
pattern used upstream and also by an mtdsplit parser, mtdsplit_bcm_wfi,
and also by a workaround currently implemented for mtdsplit_mstc_boot.

Signed-off-by: Christian Marangi <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_elf.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_jimage.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_mstc_boot.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c