]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: handle interrupted commands in pn533_recv_frame
authorMichael Thalmeier <michael.thalmeier@hale.at>
Thu, 21 Apr 2016 14:43:53 +0000 (16:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 9 May 2016 22:01:47 +0000 (00:01 +0200)
commit5fe872a0c74fae481c40d9f930408ee2dbe9f830
treed392fab1f463a7b33bd835d9b1d03791c90d0bf3
parent37245c99abfebeb8f81e5f0688be42fa1b0055c4
NFC: pn533: handle interrupted commands in pn533_recv_frame

When pn533_recv_frame is called from within abort_command
context the current  dev->cmd is not guaranteed to be set.

Additionally on receiving an error status we can omit frame
checking and simply schedule the workqueue.

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