NFC: port100: Don't send a new command if one is still pending
authorThierry Escande <thierry.escande@collabora.com>
Thu, 16 Jun 2016 18:25:20 +0000 (20:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:02:07 +0000 (10:02 +0200)
commite3e0258839a01f793a8a0c0885e8ad387681cdc6
treec4f6ae156e587151679ee6cab49da4a8d0c09f3b
parent256f3ee3d1468660ca3b10ad3beab7e8f6cbd969
NFC: port100: Don't send a new command if one is still pending

This patch ensures that a command is not still in process before sending
a new one to the device. This can happen when neard is in constant
polling mode: the configure_hw command can be sent when neard restarts
polling after a LLCP SYMM timeout but before the device has returned in
timeout from the last DEP frame sent.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/port100.c