Commit d12cb348 authored by Martin Sperl's avatar Martin Sperl
Browse files

spi: bcm2835: fix overflow in calculation of transfer time



This resulted in the use of polling mode when other approaches
(dma or interrupts) would have been more appropriate.

Happened for transfers longer than 477 bytes.

Reported-by: default avatarNoralf Tronnes <noralf@tronnes.org>
Signed-off-by: default avatarMartin Sperl <kernel@martin.sperl.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry picked from commit 0122a518)
parent 96dedb62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment