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)
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

Simple merge