From: Sowjanya Komatineni Date: Wed, 27 Mar 2019 05:56:25 +0000 (-0700) Subject: spi: tegra114: use packed mode for 32 bits per word X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc9ba6e3e28afcedf3bb3105b1d8cbc5c183c2a3;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mark Brown --- 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 {