Re: MCP251x SPI CAN controller on Cavium ThunderX

From: Mark Brown
Date: Wed Nov 15 2017 - 10:39:50 EST


On Wed, Nov 15, 2017 at 01:07:54PM +0100, Jan Glauber wrote:

> To support this full duplex transfer the Cavium SPI controller needs
> to know the receive lenght before setting up the transaction.

> spi_transfer only includes the total length, so I don't see how this
> should work.

For a full duplex transfer the recieve length *is* the total length of
the transfer. If there is a mix of tx, rx and full duplex then you need
multiple xfers in the transfer.

Attachment: signature.asc
Description: PGP signature