spi: bcm2835: make the polling duration limits configurable
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 23 Apr 2019 20:15:11 +0000 (20:15 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:59:21 +0000 (17:59 +0900)
commitff245d90ebed8d4da6751dfee1bc76e4a5e94257
tree125adc1f73432b00c57bdfee611e9a7a9e0ba78d
parentc41d62b06cb92289ab5db9d37a0f27fe6271fa34
spi: bcm2835: make the polling duration limits configurable

Under some circumstances the default 30 us polling limit is not optimal
and may lead to long delays because we are waiting on an interrupt.
with this patch we have the possibility to influence this policy.

So make this limit (in us) configurable via a module parameters
(but also modifyable via /sys/modules/...)

This replicates similar code found in spi-bcm2835aux.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Changelog:
  V1 -> V2: applied feedback by Stefan Wahren
            reorganized patchset
    added extra rational, descriptions
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c