Re: [PATCH 5/5] spi: cadence-xspi: Add workaround for old Marvell firmwares

From: Mark Brown

Date: Sat Nov 07 2026 - 07:09:01 EST


> Older firmwares from Marvell used the cdns,xspi-nor compatible string
> for the Marvell-specific xSPI IP, which is incompatible.
>
> Add a workaround to support this by assuming that if the "xfer" resource
> is found, it means that a Marvell IP is used.

> + if (res && !cdns_xspi->driver_data->mrvl_hw_overlay) {
> + /*
> + * Handle old Marvell firmwares using the cdns,xspi-nor string
> + * instead of the marvell,cn10-xspi-nor string.
> + */
> + dev_warn(dev, "Marvell-specific xfer resource passed, but using the cdns,xspi-nor compatible string. Please fix firmware!\n");
>
> + cdns_xspi->driver_data = &marvell_driver_data;

A bunch of ops were already selected further up in the function, that
probably needs to be moved after here too.

--
Mark Brown <broonie@xxxxxxxxxx>