]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-cavium-thunderx: flag controller as half duplex
authorTim Harvey <tharvey@gateworks.com>
Thu, 28 May 2020 15:46:39 +0000 (08:46 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2020 23:38:39 +0000 (00:38 +0100)
commite913620c70f81b3be5e1120c8eec99bde85dad76
tree362e8473113d24f6ae5fa01ab349c76ef0265b26
parente663e6f0768a9166662708389d2fbe8820f59c52
spi: spi-cavium-thunderx: flag controller as half duplex

The OcteonTX (TX1/ThunderX) SPI controller does not support full
duplex transactions. Set the appropriate flag such that the spi
core will return -EINVAL on such transactions requested by chip
drivers.

This is an RFC as I need someone from Marvell/Cavium to confirm
if this driver is used for other silicon that does support
full duplex transfers (in which case we will need to identify
that we are running on the ThunderX arch before setting the flag).

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Cc: Robert Richter <rrichter@marvell.com>
Link: https://lore.kernel.org/r/1590680799-5640-1-git-send-email-tharvey@gateworks.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cavium-thunderx.c