]> git.baikalelectronics.ru Git - kernel.git/commit
spi/rockchip: fix bug that cause the failure to read data in DMA mode
authorAddy Ke <addy.ke@rock-chips.com>
Thu, 25 Sep 2014 06:59:41 +0000 (14:59 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 25 Sep 2014 13:14:44 +0000 (14:14 +0100)
commit765f6493fc6ca195cf2d9ce5f599d055126d738c
tree5efc415cbd87dc6882e03e39d80ca21d9b327719
parentca09702717581356bb91e5bbfbb244eda384a004
spi/rockchip: fix bug that cause the failure to read data in DMA mode

In my test on RK3288-pinky board, if spi is enabled, it will begin to
read data from slave regardless of whether the DMA is ready. So we
need prepare DMA before spi is enable.

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