]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd7bf68b860ed18b6fab797c53ec6e47b23abe7b
tree5860b351c148bc73b705e0ef77d47703f80415c5
parentfd313e1b57cdb8cba6019c54075deed2c902093d
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