spi: pxa2xx: Set minimum transfer speed
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 28 Jun 2019 14:07:17 +0000 (17:07 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2019 11:48:26 +0000 (12:48 +0100)
commit23cdddb21f41e6092643fb8403f992f99ade33be
tree23552554084a88560f57990caf1862310cfb5d77
parent775c4c0032c408b8a57a3fc2695eeda101da003a
spi: pxa2xx: Set minimum transfer speed

It is possible to request a transfer with a speed lower than supported
by the HW. This causes silent divider calculation underflow in
ssp_get_clk_div() which leads to a frequency higher than requested. Up to
maximum speed of the controller.

Set the minimum supported transfer speed and let the SPI core to
validate no transfers have speed lower than supported.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c