Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: txx9: Use transfer speed unconditionally

SPI core validates the transfer speed and defaults to spi->max_speed_hz in
case the transfer speed is not set.

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

authored by

Jarkko Nikula and committed by
Mark Brown
fc306de9 6ff33f39

+1 -1
+1 -1
drivers/spi/spi-txx9.c
··· 181 181 u32 data; 182 182 unsigned int len = t->len; 183 183 unsigned int wsize; 184 - u32 speed_hz = t->speed_hz ? : spi->max_speed_hz; 184 + u32 speed_hz = t->speed_hz; 185 185 u8 bits_per_word = t->bits_per_word; 186 186 187 187 wsize = bits_per_word >> 3; /* in bytes */