]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3e7db36db5f95bedf4d40867719d7a9802a33d3
tree23552554084a88560f57990caf1862310cfb5d77
parent4a022bac044db7d88fcf7013e787c5953f8ff15b
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