Re: [PATCH 0/4] mtd: rawnand: restore SmartMedia setup in r852

From: Miquel Raynal

Date: Fri Dec 04 2026 - 16:33:49 EST


On Sun, 08 Nov 2026 18:29:19 -0700, James Hilliard wrote:
> r852 installs its own NAND controller, but the shared SmartMedia setup is
> still attached to the unused legacy dummy controller. Run that setup from
> r852's attach_chip callback so the media-specific OOB layout, bad-block
> handling and page-size checks take effect. Restore the hardware-ECC
> default during probe so the PCI path selects a valid engine without a
> NAND device-tree node.
>
> [...]

Applied to nand/next, thanks!

[1/4] mtd: rawnand: sm_common: restore the first ECC region offset
commit: 947c468e00eec862ccccd0dd67cabc9bbd686458
[2/4] mtd: rawnand: sm_common: avoid recursive locking when marking bad blocks
commit: f7e00d3f4a984d706a7088b0e54768f6fbd0d9b4
[3/4] mtd: rawnand: r852: use the standard OOB write operation
commit: d8bdef80662286c5dd7db2b608583bbfd1953c4d
[4/4] mtd: rawnand: r852: restore SmartMedia and ECC initialization
commit: cfb2d8b8cc6fa577ff0ff55f6064c5592b5f4b52

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