spi: rockchip: set min/max speed
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 31 Oct 2018 10:57:07 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:42:27 +0000 (11:42 +0000)
commit420b82f842941a32adf309ca1b193adfc77616b0
tree5860b351c148bc73b705e0ef77d47703f80415c5
parenteff0275e5253604429aedc42b008c5fcaa6cc597
spi: rockchip: set min/max speed

The driver previously checked each transfer if the
requested speed was higher than possible with the
current spi clock rate and raised the clock rate
accordingly.

However, there is no check to see if the spi clock
was actually set that high and no way to dynamically
lower the spi clock rate again.

So it seems any potiential users of this functionality
are better off just setting the spi clock rate at init
using the assigned-clock-rates devicetree property.

Removing this dynamic spi clock rate raising allows
us let the spi framework handle min/max speeds
for us.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c