Skip to content
Commit 617085fc authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: mcp251x: fix support for half duplex SPI host controllers

Some SPI host controllers do not support full-duplex SPI transfers.

The function mcp251x_spi_trans() does a full duplex transfer. It is
used in several places in the driver, where a TX half duplex transfer
is sufficient.

To fix support for half duplex SPI host controllers, this patch
introduces a new function mcp251x_spi_write() and changes all callers
that do a TX half duplex transfer to use mcp251x_spi_write().

Fixes: e0e25001 ("can: mcp251x: add support for half duplex controllers")
Link: https://lore.kernel.org/r/20210330100246.1074375-1-mkl@pengutronix.de


Cc: Tim Harvey <tharvey@gateworks.com>
Tested-By: default avatarTim Harvey <tharvey@gateworks.com>
Reported-by: default avatarGerhard Bertelsmann <info@gerhard-bertelsmann.de>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 08c27f33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment