diff options
author | 2021-03-30 11:46:07 +0200 | |
---|---|---|
committer | 2021-04-06 12:31:21 +0200 | |
commit | 617085fca6375e2c1667d1fbfc6adc4034c85f04 (patch) | |
tree | ded19c17fed5c597d28d842d4c8e0bd7385263d9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field (diff) | |
download | wireguard-linux-617085fca6375e2c1667d1fbfc6adc4034c85f04.tar.xz wireguard-linux-617085fca6375e2c1667d1fbfc6adc4034c85f04.zip |
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: e0e25001d088 ("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: Tim Harvey <tharvey@gateworks.com>
Reported-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions