summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorGabor Juhos2013-08-14 10:25:28 +0200
committerMark Brown2013-08-14 20:12:31 +0200
commit56ede94a000bb9635b326db38baf66da6dfc174e (patch)
treefdf5f0ba35a81bbfaf3ae5374609d9b2689b16b4 /include/linux/spi
parentspi: More sanity checks for transfers (diff)
downloadkernel-qcow2-linux-56ede94a000bb9635b326db38baf66da6dfc174e.tar.gz
kernel-qcow2-linux-56ede94a000bb9635b326db38baf66da6dfc174e.tar.xz
kernel-qcow2-linux-56ede94a000bb9635b326db38baf66da6dfc174e.zip
spi: limit default transfer speed to controller's max speed
Since the 'spi: Support transfer speed checking in the core' change, the SPI core validates the desired speed of a given transfer against the minimum and maximum speeds supported by the controller. If the speed of a transfer is not specified, the core uses the maximum speed of the actual SPI device. However if the maximum speed of the actual device is greater than the maximum speed of the controller, the core will reject the transfer due to the aforementioned change. Change the code to use the maximum speed of the controller by default if that is below the device's maximum speed. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/spi')
0 files changed, 0 insertions, 0 deletions