projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
078a551
)
spi: tegra210-quad: set half duplex flag
author
Krishna Yarlagadda
<kyarlagadda@nvidia.com>
Thu, 23 Feb 2023 16:26:34 +0000
(21:56 +0530)
committer
Mark Brown
<broonie@kernel.org>
Thu, 23 Feb 2023 17:28:56 +0000
(17:28 +0000)
Tegra QSPI controller only supports half duplex transfers.
Set half duplex constrain flag.
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Link:
https://lore.kernel.org/r/20230223162635.19747-3-kyarlagadda@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra210-quad.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-tegra210-quad.c
b/drivers/spi/spi-tegra210-quad.c
index 9f356612ba7e54f46fb5868e6675904a6ad20c6c..258e3b8c9c2cb697d1dee2932e9e8522fa963c85 100644
(file)
--- a/
drivers/spi/spi-tegra210-quad.c
+++ b/
drivers/spi/spi-tegra210-quad.c
@@
-1532,6
+1532,7
@@
static int tegra_qspi_probe(struct platform_device *pdev)
master->mode_bits = SPI_MODE_0 | SPI_MODE_3 | SPI_CS_HIGH |
SPI_TX_DUAL | SPI_RX_DUAL | SPI_TX_QUAD | SPI_RX_QUAD;
master->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(16) | SPI_BPW_MASK(8);
+ master->flags = SPI_CONTROLLER_HALF_DUPLEX;
master->setup = tegra_qspi_setup;
master->transfer_one_message = tegra_qspi_transfer_one_message;
master->num_chipselect = 1;