gnss: sirf: add support for configurations without wakeup signal
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 24 Jan 2019 06:34:36 +0000 (07:34 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 25 Jan 2019 11:07:42 +0000 (12:07 +0100)
commitccd0e4963f552213bc977be31158a153992558af
tree89373805e844bb80aa4d46839b94c97821ab1683
parent196d91846099fb49b45fb14b0f47b9af3b721b94
gnss: sirf: add support for configurations without wakeup signal

Some Wi2Wi devices do not have a wakeup output, so device state can
only be indirectly detected by looking whether there is communication
over the serial lines.
This approach requires a report cycle set to a value less than 2 seconds
to be reliable.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
[ johan: simplify sirf_set_active(), style changes ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/sirf.c