]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/rockchip: fix bug that case spi can't go as fast as slave request
authorAddy Ke <addy.ke@rock-chips.com>
Wed, 15 Oct 2014 11:25:49 +0000 (19:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Oct 2014 13:05:38 +0000 (15:05 +0200)
commitf9cfd52262d36a55b39d41e2b0faae632ad57e4c
tree751cc7e24e8abbc0374a71077ad438f2b99e256f
parenta2285b8c75bf7e21895f7c2cf75d6a910914517b
spi/rockchip: fix bug that case spi can't go as fast as slave request

Because the minimum divisor in rk3x's spi controller is 2,
if spi_clk is less than 2 * sclk_out, we can't get the right divisor.
So we must set spi_clk again to match slave request.

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