The patch titled spi-imx: update state correctly has been added to the -mm tree. Its filename is spi-imx-update-state-correctly.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: spi-imx: update state correctly From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Cc: Guennadi Liakhovetski <g.liakhovetski@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/spi/spi_imx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff -puN drivers/spi/spi_imx.c~spi-imx-update-state-correctly drivers/spi/spi_imx.c --- a/drivers/spi/spi_imx.c~spi-imx-update-state-correctly +++ a/drivers/spi/spi_imx.c @@ -443,6 +443,13 @@ static int spi_imx_setupxfer(struct spi_ config.speed_hz = t ? t->speed_hz : spi->max_speed_hz; config.mode = spi->mode; + if (!config.speed_hz) + config.speed_hz = spi->max_speed_hz; + if (!config.bpw) + config.bpw = spi->bits_per_word; + if (!config.speed_hz) + config.speed_hz = spi->max_speed_hz; + spi_imx->config(spi_imx, &config); return 0; _ Patches currently in -mm which might be from s.hauer@xxxxxxxxxxxxxx are spi-imx-rename-source-file-to-spi_imxc.patch spi-imx-update-state-correctly.patch spi-imx-fix-initial-chipselect-settings.patch spi-imx-setup-mode_bits-we-can-handle.patch spi-imx-no-need-to-assert-bits_per_word-being-initialized.patch spi-imx-initialize-complete-config-struct.patch spi-imx-strip-down-chipselect-function-to-only-drive-the-chipselect.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html