projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebe9d1
)
spi: s3c64xx: Use transfer speed unconditionally
author
Jarkko Nikula
<jarkko.nikula@linux.intel.com>
Tue, 15 Sep 2015 13:26:14 +0000
(16:26 +0300)
committer
Mark Brown
<broonie@kernel.org>
Wed, 16 Sep 2015 19:53:04 +0000
(20:53 +0100)
SPI core validates the transfer speed and defaults to spi->max_speed_hz in
case the transfer speed is not set.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-s3c64xx.c
b/drivers/spi/spi-s3c64xx.c
index dee82e1ae65da5d3e39d0ad2b43d420840f9ad99..8e86e7f6663a1e8409397984dd5b25fab19913b9 100644
(file)
--- a/
drivers/spi/spi-s3c64xx.c
+++ b/
drivers/spi/spi-s3c64xx.c
@@
-683,7
+683,7
@@
static int s3c64xx_spi_transfer_one(struct spi_master *master,
/* Only BPW and Speed may change across transfers */
bpw = xfer->bits_per_word;
- speed = xfer->speed_hz
? : spi->max_speed_hz
;
+ speed = xfer->speed_hz;
if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) {
sdd->cur_bpw = bpw;