]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
spi: tegra114: clear packed bit for unpacked mode
authorSowjanya Komatineni <skomatineni@nvidia.com>
Wed, 27 Mar 2019 05:56:23 +0000 (22:56 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:25:10 +0000 (15:25 +0700)
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>
drivers/spi/spi-tegra114.c

index a76acedd7e2f402190a3525804cc012770747fc7..1435792944c4a3d311918a67b98973093c1c43c8 100644 (file)
@@ -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;