diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-15 16:26:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-16 20:53:45 +0100 |
commit | 57b48ab49b7a9ac5ff94402ade2ccb5d63579816 (patch) | |
tree | 7d8ce6d632daea49c821010dfebe3bd6932edc8c /drivers/spi/spi-bcm2835aux.c | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
download | linux-57b48ab49b7a9ac5ff94402ade2ccb5d63579816.tar.bz2 |
spi: bfin-sport: Calculate transfer speed unconditionally
SPI core validates the transfer speed and defaults to spi->max_speed_hz in
case the transfer speed is not set so code here won't use the
chip->baud value (which is derived from spi->max_speed_hz).
Please note driver uses chip->baud at the beginning of message transmission
by calling the bfin_sport_spi_restore_state() but then programs per
transfer speed in bfin_sport_spi_pump_transfers(). I'm not familiar with
the HW so I don't know would it be possible to remove chip->baud completely
by either using constant value in bfin_sport_spi_restore_state() or by
removing the tclkdiv register write there.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bcm2835aux.c')
0 files changed, 0 insertions, 0 deletions