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)
commit06fd9ab12b804451b14d538adbf98a57c2d6846b
tree47834839ee73b176855ea883e1b586aa61372fb2
parent2595646791c319cadfdbf271563aac97d0843dc7
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: d2efbbd18b1e ("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