[PATCH v3 2/3] spi: spi-cadence: supports transmission with bits_per_word of 16 and 32
Mark Brown
broonie at kernel.org
Wed Jan 14 06:16:39 PST 2026
On Wed, Jan 14, 2026 at 02:14:35PM +0000, Rodrigo Alencar wrote:
> On 25/10/31 03:30PM, Jun Guo wrote:
> > + if (xspi->txbuf) {
> > + switch (xspi->n_bytes) {
> > + case CDNS_SPI_N_BYTES_U8:
> > + txw = *(u8 *)xspi->txbuf;
> > + break;
> > + cdns_spi_write(xspi, CDNS_SPI_TXD, txw);
> > + xspi->txbuf = (u8 *)xspi->txbuf + xspi->n_bytes;
> > + }
> cdns_spi_write(xspi, CDNS_SPI_TXD, txw) needs to be called regardless of xspi->txbuf.
> Otherwise, there will be no clock for the read operation to work.
> This is a bug I am seeing on a Zedboard running on 6.19
So the device needs to be flagged as SPI_CONTROLLER_MUST_TX?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260114/7689d001/attachment.sig>
More information about the linux-arm-kernel
mailing list