diff options
author | Sowjanya Komatineni <skomatineni@nvidia.com> | 2019-03-26 22:56:25 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-01 15:48:59 +0700 |
commit | fc9ba6e3e28afcedf3bb3105b1d8cbc5c183c2a3 (patch) | |
tree | 9734d4bd11418d0d9849f8c68a243ec2f72d9ab6 /drivers/spi/spi-tegra114.c | |
parent | 17ecffa289489e8442306bbc62ebb964e235cdad (diff) |
spi: tegra114: use packed mode for 32 bits per word
Fixes: Use packed mode for 32 bits per word transfers to increase
performance as each packet is a full 32-bit word.
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-tegra114.c')
-rw-r--r-- | drivers/spi/spi-tegra114.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index a76acedd7e2f..929358e3487a 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -259,7 +259,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param( tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); - if (bits_per_word == 8 || bits_per_word == 16) { + if (bits_per_word == 8 || bits_per_word == 16 || bits_per_word == 32) { tspi->is_packed = 1; tspi->words_per_32bit = 32/bits_per_word; } else { |