]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gnss: sirf: fix premature wakeup interrupt enable
authorJohan Hovold <johan@kernel.org>
Tue, 22 Jan 2019 17:22:53 +0000 (18:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:10:15 +0000 (07:10 +0100)
commit87ceb4b5a4cf4d16f4994eb6ca79f773d7e33d3c
tree4fabe62bfd36705922a1223ec256e83d23f97512
parentd483d0c1a21ecd138a9c57d709349ae7bc7f2c54
gnss: sirf: fix premature wakeup interrupt enable

commit 82f844c22588bf47132c82faeda50b6db473162c upstream.

Make sure the receiver is powered (and booted) before enabling the
wakeup interrupt to avoid spurious interrupts due to a floating input.

Similarly, disable the interrupt before powering off on probe errors and
on unbind.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gnss/sirf.c