[PATCH] mtd: parsers: qcom: drop setting of partition's mask_flags
Miquel Raynal
miquel.raynal at bootlin.com
Mon Oct 12 11:27:09 PDT 2026
Hi Gabor,
On 06/10/2026 at 22:00:41 +02, Gabor Juhos <j4g8y7 at gmail.com> wrote:
> The 'attr' member of struct 'smem_flash_pentry' is 8 bits wide,
> so it is only usable to mask the lower 8 bits in the MTD flags.
> However the MTD layer does not define any maskable flags in
> these bits at all. Additionally, the meaning of the bits in the
> 'attr' field is not documented, so it is not even possible to map
> those to the defined MTD flags.
>
> Due to the reasons above, remove the 'mask_flags' assignment code
> since it has no effect anyway.
>
> Signed-off-by: Gabor Juhos <j4g8y7 at gmail.com>
Sorry but it no longer applies after Weigang He's:
[PATCH] mtd: parsers: qcom: fix offset/size overflow on large partitions
Thanks,
Miquèl
More information about the linux-mtd
mailing list