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

From: Miquel Raynal

Date: Fri Dec 04 2026 - 16:51:15 EST


On Thu, 26 Nov 2026 08:59:02 +0000, Orgad Shaneh 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.
>
> [...]

Applied to mtd/next, thanks!

[1/4] mtd: maps: only point() maps read through the simple accessors
commit: 916a23c3ce2d0d1ab48dd57f3c1962600386e752
[2/4] mtd: cfi_cmdset_0002: implement point() for simple linear maps
commit: 4e5457fcbc14d21e7c004c3159e78fc63838029e
[3/4] MIPS: Octeon: flash: allocate the map per device
(no commit info)
[4/4] MIPS: Octeon: flash: use the simple map accessors without a shared eMMC
(no commit info)

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl