]> git.karo-electronics.de Git - linux-beck.git/commit
spi: bcm2835: change timeout of polling driver to 1s
authorMartin Sperl <kernel@martin.sperl.org>
Thu, 16 Apr 2015 07:51:26 +0000 (07:51 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 14:45:49 +0000 (15:45 +0100)
commit76ee0235be5a24b34a63961189c8bafa9bcf2da3
treea9cccc9572b3a895e11379a05bc0c35ed45704c4
parentb787f68c36d49bb1d9236f403813641efa74a031
spi: bcm2835: change timeout of polling driver to 1s

The way that the timeout code is written in the polling function
the timeout does also trigger when interrupted or rescheduled while
in the polling loop.

This patch changes the timeout from effectively 20ms (=2 jiffies) to
1 second and removes the time that the transfer really takes out of
the computation, as - per design - this is <30us and the jiffie resolution
is 10ms so that does not make any difference what so ever.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c