The patch titled spi_mpc83xx: fix QE+LSB mode shifts has been added to the -mm tree. Its filename is spi_mpc83xx-fix-qelsb-mode-shifts.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: spi_mpc83xx: fix QE+LSB mode shifts From: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> spi_mpc83xx should use other shifts when running in QE+LSB mode. Signed-off-by: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> Acked-by: Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx> Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/spi/spi_mpc83xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff -puN drivers/spi/spi_mpc83xx.c~spi_mpc83xx-fix-qelsb-mode-shifts drivers/spi/spi_mpc83xx.c --- a/drivers/spi/spi_mpc83xx.c~spi_mpc83xx-fix-qelsb-mode-shifts +++ a/drivers/spi/spi_mpc83xx.c @@ -237,6 +237,14 @@ int mpc83xx_spi_setup_transfer(struct sp } else return -EINVAL; + if (mpc83xx_spi->qe_mode && spi->mode & SPI_LSB_FIRST) { + mpc83xx_spi->tx_shift = 0; + if (bits_per_word <= 8) + mpc83xx_spi->rx_shift = 8; + else + mpc83xx_spi->rx_shift = 0; + } + /* nsecs = (clock period)/2 */ if (!hz) hz = spi->max_speed_hz; _ Patches currently in -mm which might be from avorontsov@xxxxxxxxxxxxx are spi_mpc83xx-turn-off-spi-unit-while-switching-mode.patch spi_mpc83xx-get-rid-of-magic-numbers.patch spi_mpc83xx-support-for-lsb-first-transfers.patch spi_mpc83xx-fix-qelsb-mode-shifts.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