aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_imx.c')
-rw-r--r--drivers/spi/spi_imx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index b1f530fd6bdc..a8f9bff529e5 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -443,6 +443,13 @@ static int spi_imx_setupxfer(struct spi_device *spi,
443 config.speed_hz = t ? t->speed_hz : spi->max_speed_hz; 443 config.speed_hz = t ? t->speed_hz : spi->max_speed_hz;
444 config.mode = spi->mode; 444 config.mode = spi->mode;
445 445
446 if (!config.speed_hz)
447 config.speed_hz = spi->max_speed_hz;
448 if (!config.bpw)
449 config.bpw = spi->bits_per_word;
450 if (!config.speed_hz)
451 config.speed_hz = spi->max_speed_hz;
452
446 spi_imx->config(spi_imx, &config); 453 spi_imx->config(spi_imx, &config);
447 454
448 return 0; 455 return 0;