Re: [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only
From: Miquel Raynal
Date: Mon Nov 30 2026 - 04:08:33 EST
On 30/11/2026 at 01:09:46 +01, Linus Walleij <linusw@xxxxxxxxxx> wrote:
> On Tue, Nov 17, 2026 at 10:41 PM Orgad Shaneh <orgads@xxxxxxxxx> wrote:
>
>> jffs2 scans a flash in place through mtd_point() when the chip driver
>> offers it, and copies every used eraseblock otherwise. cfi_cmdset_0002
>> has no point(), so an Octeon CN6635 board with a 100 MB jffs2
>> partition on an 8-bit M29EW spends 15-30 s mounting it at every boot.
>>
>> 1/4 lets point() through only for maps read through the simple
>> accessors; cfi_cmdset_0001, lpddr, map_ram and map_rom point today at
>> maps whose own accessors swap bytes, switch pins or lock the bus.
>> 2/4 adds point() to cfi_cmdset_0002 behind that gate.
>> 3/4 gives each Octeon flash device its own map.
>> 4/4 lets that map use the simple accessors when no eMMC shares the
>> boot bus. 3/4 and 4/4 build alone, but 4/4 only pays off with 1/4 and
>> 2/4, so taking all four through mtd with an ack from Thomas seems
>> simplest.
>
> I guess I should test this on the ixp4xx but don't have time right
> now, the patches seem sound so:
> Acked-by: Linus Walleij <linusw@xxxxxxxxxx>
Great, thanks for the feedback. I'll wait a bit for Vignesh to give his
feedback as well, but otherwise I'll eventually take it then.
Thanks,
Miquèl