]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: reset poll modulation list before calling targets_found
authorMichael Thalmeier <michael.thalmeier@hale.at>
Thu, 21 Apr 2016 14:43:52 +0000 (16:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 9 May 2016 22:01:16 +0000 (00:01 +0200)
commit37245c99abfebeb8f81e5f0688be42fa1b0055c4
tree6519e34422b2ad22b7e562f487c3f0c696ee3c70
parent04bb40cfc2b9e1bc20645c2be3e6ede9576c427a
NFC: pn533: reset poll modulation list before calling targets_found

We need to reset the poll modulation list before calling
nfc_targets_found because otherwise userspace could run
before the modulation list is cleared and then get a "Cannot
activate target while polling" error upon calling activate_target.

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533/pn533.c