Re: [PATCH] mtd: spi-nor: move SECT_4K_PMC special handling
From: Pratyush Yadav
Date: Wed Apr 20 2022 - 02:27:30 EST
On 18/04/22 01:26PM, Michael Walle wrote:
> The SECT_4K_PMC flag will set a device specific opcode for the 4k sector
> erase. Instead of handling it in the core, we can move it to a
> late_init(). In that late init, loop over all erase types, look for the
> 4k size and replace the opcode.
>
> Signed-off-by: Michael Walle <michael@xxxxxxxx>
> ---
> Please have a closer look here. This is only compile time tested. Also
> I didn't see much reason to reorder the flags.
Patch looks okay to me but I would like someone to test it on the flash
before I apply it.
--
Regards,
Pratyush Yadav
Texas Instruments Inc.