[PATCH v2] mtd: mchp23k256: use SPI match data for chip caps

Miquel Raynal miquel.raynal at bootlin.com
Sun Jul 5 23:24:25 PDT 2026


On Fri, 03 Jul 2026 15:40:52 +0800, Pengpeng Hou wrote:
> The driver stores chip capacity information in both the OF match table
> and the SPI id table. Probe currently uses of_device_get_match_data(),
> so a non-OF SPI modalias match falls back to mchp23k256_caps even when
> the SPI id table selected a different part.
> 
> Use spi_get_device_match_data() so SPI id-table driver_data is consumed
> when OF match data is absent. This keeps the existing default fallback
> while avoiding the wrong MTD geometry for id-table-only matches.
> 
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: mchp23k256: use SPI match data for chip caps
      commit: d322e40f4edf92bf0ca329e5aa4ae1c0316feb38

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




More information about the linux-mtd mailing list