mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
94e9c0f522
commit
3c633f9dbd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue