]> git.baikalelectronics.ru Git - kernel.git/commit
gnss: sirf: fix activation retry handling
authorJohan Hovold <johan@kernel.org>
Wed, 5 Dec 2018 10:21:49 +0000 (11:21 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 6 Dec 2018 16:22:23 +0000 (17:22 +0100)
commitef6da8b3916d05a2faa65285b3ba16a3d4e4ae98
tree47834839ee73b176855ea883e1b586aa61372fb2
parent63142541117bc9e194b2892788b5be93202860bf
gnss: sirf: fix activation retry handling

Fix activation helper which would return -ETIMEDOUT even if the last
retry attempt was successful.

Also change the semantics of the retries variable so that it actually
holds the number of retries (rather than tries).

Fixes: 596642077ac7 ("gnss: add driver for sirfstar-based receivers")
Cc: stable <stable@vger.kernel.org> # 4.19
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/sirf.c