android_kernel_samsung_a7y1.../drivers/nfc
Dmitry Osipenko c50103df72 nfc: pn544: Fix occasional HW initialization failure
[ Upstream commit c3331d2fe3fd4d5e321f2467d01f72de7edfb5d0 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:04:37 +02:00
..
fdp NFC: fdp: fix incorrect free object 2020-04-07 11:48:17 +02:00
microread A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfc_logger A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfcmrvl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nxp-nci NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2020-04-07 12:44:04 +02:00
pn544 nfc: pn544: Fix occasional HW initialization failure 2020-04-07 14:04:37 +02:00
s3fwrn5 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
st-nci st_nci_hci_connectivity_event_received: null check the allocation 2020-04-06 20:52:53 +02:00
st21nfca NFC: st21nfca: fix double free 2020-04-07 11:48:19 +02:00
ese_p3.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ese_p3.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mei_phy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mei_phy.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfcsim.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfcwilink.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pn533.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pn547.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pn547.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
port100.c NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). 2020-04-07 13:56:07 +02:00
sec_nfc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sec_nfc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trf7970a.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30