diff options
author | Keiji Hayashibara <hayashibara.keiji@socionext.com> | 2019-09-03 14:30:59 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-03 12:38:20 +0100 |
commit | 3c633f9dbd824b2f8e5e1a3c1fd533c1b2801be5 (patch) | |
tree | f804109fbb8c5fbb3e3525634244e7cfd0779736 /drivers/spi | |
parent | 94e9c0f522142e47348486f98916cb0b16e72571 (diff) |
spi: uniphier: fix wrong register overwrite
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-uniphier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index 5a6137fe172d..50f12fb20403 100644 --- 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) { |