[PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only

Linus Walleij linusw at kernel.org
Sun Nov 29 16:09:46 PST 2026


On Tue, Nov 17, 2026 at 10:41 PM Orgad Shaneh <orgads at gmail.com> 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 at kernel.org>

Yours,
Linus Walleij



More information about the linux-mtd mailing list