Re: [PATCH 1/5] spi: cadence-xspi: Reconfigure to STIG mode before SPI message
From: Paul Cercueil
Date: Mon Nov 09 2026 - 10:12:35 EST
Hi Mark,
Le samedi 07 novembre 2026 à 12:08 +0000, Mark Brown a écrit :
> > The .transfer_one_message() function uses the STIG mode, therefore the
> > xSPI needs to be configured to STIG mode before starting any transfer.
> >
> > Without this, .transfer_one_message() simply won't work, at least on the
> > CN10K SoC.
>
> > @@ -1112,6 +1123,11 @@ static int cdns_xspi_transfer_one_message_b0(struct
> > spi_controller *controller,
> > int current_transfer_len;
> > int cs = spi_get_chipselect(spi, 0);
> > int cs_change = 0;
> > + int ret;
> > +
> > + ret = cdns_xspi_set_stig_mode(cdns_xspi);
> > + if (ret)
> > + return ret;
>
> If we return an error we need to also set m->status otherwise it'll be
> stuck at -EINPROGESS and we will get confused. This is a preexisting
> bug in other bits of the function :/
ACK.
So I'll fix that first, in the v2.
Cheers,
-Paul