mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
spi: tegra114: clear packed bit for unpacked mode
[ Upstream commit 7b3d10cdf5 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e4188ad850
commit
49b5e5ac84
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user