projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e9c0f
)
spi: uniphier: fix wrong register overwrite
author
Keiji Hayashibara
<hayashibara.keiji@socionext.com>
Tue, 3 Sep 2019 05:30:59 +0000
(14:30 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 3 Sep 2019 11:38:20 +0000
(12:38 +0100)
When it changes the spi mode, the register is overwritten incorrectly.
This commit fixes this register overwrite.
Signed-off-by: Keiji Hayashibara <hayashibara.keiji@socionext.com>
Link:
https://lore.kernel.org/r/1567488661-11428-2-git-send-email-hayashibara.keiji@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-uniphier.c
b/drivers/spi/spi-uniphier.c
index 5a6137fe172df6eb5633ee38b7b3be2c01a84305..50f12fb20403d450bea6a178cd73f3b36b60ff35 100644
(file)
--- a/
drivers/spi/spi-uniphier.c
+++ b/
drivers/spi/spi-uniphier.c
@@
-214,6
+214,7
@@
static void uniphier_spi_setup_transfer(struct spi_device *spi,
if (!priv->is_save_param || priv->mode != spi->mode) {
uniphier_spi_set_mode(spi);
priv->mode = spi->mode;
+ priv->is_save_param = false;
}
if (!priv->is_save_param || priv->bits_per_word != t->bits_per_word) {