diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-02-19 18:01:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-19 11:09:27 -0800 |
commit | c3331d2fe3fd4d5e321f2467d01f72de7edfb5d0 (patch) | |
tree | 0eb054ba8058ec7d3a910d5b6631bc6bf24ff911 /net/bridge | |
parent | a7a9456e8d28e81030f7cf6f1f59f907089916a9 (diff) | |
download | linux-stable-c3331d2fe3fd4d5e321f2467d01f72de7edfb5d0.tar.gz linux-stable-c3331d2fe3fd4d5e321f2467d01f72de7edfb5d0.tar.bz2 linux-stable-c3331d2fe3fd4d5e321f2467d01f72de7edfb5d0.zip |
nfc: pn544: Fix occasional HW initialization failure
The PN544 driver checks the "enable" polarity during of driver's probe and
it's doing that by turning ON and OFF NFC with different polarities until
enabling succeeds. It takes some time for the hardware to power-down, and
thus, to deassert the IRQ that is raised by turning ON the hardware.
Since the delay after last power-down of the polarity-checking process is
missed in the code, the interrupt may trigger immediately after installing
the IRQ handler (right after the checking is done), which results in IRQ
handler trying to touch the disabled HW and ends with marking NFC as
'DEAD' during of the driver's probe:
pn544_hci_i2c 1-002a: NFC: nfc_en polarity : active high
pn544_hci_i2c 1-002a: NFC: invalid len byte
shdlc: llc_shdlc_recv_frame: NULL Frame -> link is dead
This patch fixes the occasional NFC initialization failure on Nexus 7
device.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions