]> 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)
commit18c41174d6d982079d79376b4f4fe60031ee4532
tree47834839ee73b176855ea883e1b586aa61372fb2
parent8281968f24866ad2a69e5bec140b16e994837c14
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: 1583198d0544 ("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