[PATCH] mtd: parsers: qcom: drop setting of partition's mask_flags
Gabor Juhos
j4g8y7 at gmail.com
Tue Oct 13 02:45:25 PDT 2026
Hi Miquèl,
2026. 10. 12. 20:27 keltezéssel, Miquel Raynal írta:
> 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
Sorry, my fault. The patch was based on nand/next.
I will send a v2 based on tip of mtd/next.
Regards,
Gabor
More information about the linux-mtd
mailing list