summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2016-12-08 19:37:08 +0300
committerMark Brown <broonie@kernel.org>2016-12-08 20:54:51 +0300
commit7243e0b20729d372e97763617a7a9c89f29b33e1 (patch)
treeb75e2be1faaecc337cca9496f30517b9e7d8b8ce /ipc
parentdf34d04a6f09ba41037e58c3df6d6fbed0ffcde9 (diff)
downloadlinux-7243e0b20729d372e97763617a7a9c89f29b33e1.tar.xz
spi: mvebu: fix baudrate calculation for armada variant
The calculation of SPR and SPPR doesn't round correctly at several places which might result in baud rates that are too big. For example with tclk_hz = 250000001 and target rate 25000000 it determined a divider of 10 which is wrong. Instead of fixing all the corner cases replace the calculation by an algorithm without a loop which should even be quicker to execute apart from being correct. Fixes: df59fa7f4bca ("spi: orion: support armada extended baud rates") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions