summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorSowjanya Komatineni <skomatineni@nvidia.com>2019-03-26 22:56:23 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 14:46:27 +0100
commit58ac2bc9ce809985c78bf4855dfa69e8505e6bfc (patch)
tree20711e5faf0b60b3d73f7cab8022c7e15448d3ad /drivers/spi
parentf4c8d9e5ea524d7f53e54da2920a7d1250822ec5 (diff)
downloadlinux-stable-58ac2bc9ce809985c78bf4855dfa69e8505e6bfc.tar.gz
linux-stable-58ac2bc9ce809985c78bf4855dfa69e8505e6bfc.tar.bz2
linux-stable-58ac2bc9ce809985c78bf4855dfa69e8505e6bfc.zip
spi: tegra114: clear packed bit for unpacked mode
[ Upstream commit 7b3d10cdf54b8bc1dc0da21faed9789ac4da3684 ] Fixes: Clear packed bit when not using packed mode. Packed bit is not cleared when not using packed mode. This results in transfer timeouts for the unpacked mode transfers followed by the packed mode transfers. Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-tegra114.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c
index 2ad04796ef29..3a6b202dfffe 100644
--- a/drivers/spi/spi-tegra114.c
+++ b/drivers/spi/spi-tegra114.c
@@ -730,6 +730,8 @@ static int tegra_spi_start_transfer_one(struct spi_device *spi,
if (tspi->is_packed)
command1 |= SPI_PACKED;
+ else
+ command1 &= ~SPI_PACKED;
command1 &= ~(SPI_CS_SEL_MASK | SPI_TX_EN | SPI_RX_EN);
tspi->cur_direction = 0;