can: mcp251x: add support for half duplex controllers
authorTim Harvey <tharvey@gateworks.com>
Thu, 23 Jul 2020 14:57:55 +0000 (07:57 -0700)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2020 08:13:19 +0000 (10:13 +0200)
commite0e25001d088a4964abd2498e26dbf725ffab128
tree54d6278f4dea93ae43f543174b97ed73200648c0
parent74fa565b63dc0811499918faa0bc1abce0869c96
can: mcp251x: add support for half duplex controllers

Some SPI host controllers do not support full-duplex SPI and are
marked as such via the SPI_CONTROLLER_HALF_DUPLEX controller flag.

For such controllers use half duplex transactions but retain full
duplex transactions for the controllers that can handle those.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://lore.kernel.org/r/1595516275-1179-1-git-send-email-tharvey@gateworks.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251x.c