projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ecffa
)
spi: tegra114: use packed mode for 32 bits per word
author
Sowjanya Komatineni
<skomatineni@nvidia.com>
Wed, 27 Mar 2019 05:56:25 +0000
(22:56 -0700)
committer
Mark Brown
<broonie@kernel.org>
Mon, 1 Apr 2019 08:48:59 +0000
(15:48 +0700)
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>
drivers/spi/spi-tegra114.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-tegra114.c
b/drivers/spi/spi-tegra114.c
index a76acedd7e2f402190a3525804cc012770747fc7..929358e3487a83459fb0cd03fbfcce7e7919f270 100644
(file)
--- 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 {