spi: pxa2xx: choose closest lower speed
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 13 Oct 2015 14:09:14 +0000 (17:09 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 16 Oct 2015 18:07:45 +0000 (19:07 +0100)
commit3ad48062233f32a8dd2649403f5afc076710f86b
tree928182d75cd5a3a1f17d572793b40fe54ffd2a75
parent289de5541ca6aec56308c04b76c1bb59f00b1f09
spi: pxa2xx: choose closest lower speed

As per discussion [1] the best choice is to set closest speed which is not
going over the asked one.

Do the same approach for Intel Quark boards.

[1] http://www.spinics.net/lists/linux-spi/msg03389.html

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c