projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d6af57
)
spi: spi-fsl-dspi: Don't mask off undefined bits
author
Vladimir Oltean
<vladimir.oltean@nxp.com>
Wed, 4 Mar 2020 22:00:35 +0000
(
00:00
+0200)
committer
Mark Brown
<broonie@kernel.org>
Thu, 5 Mar 2020 14:06:16 +0000
(14:06 +0000)
This is a useless operation, and if the driver needs to do that, there's
something deeply wrong going on.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link:
https://lore.kernel.org/r/20200304220044.11193-4-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-fsl-dspi.c
b/drivers/spi/spi-fsl-dspi.c
index
63ec1d6
..
b92c2b8
100644
(file)
--- a/
drivers/spi/spi-fsl-dspi.c
+++ b/
drivers/spi/spi-fsl-dspi.c
@@
-274,9
+274,6
@@
static void dspi_push_rx(struct fsl_dspi *dspi, u32 rxdata)
if (!dspi->rx)
return;
- /* Mask off undefined bits */
- rxdata &= (1 << dspi->bits_per_word) - 1;
-
memcpy(dspi->rx, &rxdata, dspi->bytes_per_word);
dspi->rx += dspi->bytes_per_word;
}