spi: bcm2835aux: make the polling duration limits configurable
authorMartin Sperl <kernel@martin.sperl.org>
Sat, 30 Mar 2019 09:31:06 +0000 (09:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 04:32:17 +0000 (11:32 +0700)
commit5fd917afc4bfe77686a29a7923c301b6f55b2377
tree8987b498b87f263d31a23d13a5abd2f355524b6b
parentccd978b708b03b18196205b3baee83b5047ee453
spi: bcm2835aux: 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/...)

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835aux.c