]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/rockchip: fix bug that cause spi transfer timed out in DMA duplex mode
authorAddy Ke <addy.ke@rock-chips.com>
Wed, 15 Oct 2014 11:26:18 +0000 (19:26 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Oct 2014 13:05:38 +0000 (15:05 +0200)
commitc28be31b11f56b3bb62490dfe5304eaa2724afc2
treea6d6abddeb38faee5fcebe670e949b2220264e51
parentf9cfd52262d36a55b39d41e2b0faae632ad57e4c
spi/rockchip: fix bug that cause spi transfer timed out in DMA duplex mode

In rx mode, dma must be prepared before spi is enabled.
But in tx and tr mode, spi must be enabled first.

Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c