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)
commitb31d5103c33280738188c51e226224dff4401c7b
treed392fab1f463a7b33bd835d9b1d03791c90d0bf3
parentc952f915ce8567120ffdf12998ad0c945fbc93ac
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