NFC: port100: Fix the command cancellation process
authorThierry Escande <thierry.escande@collabora.com>
Thu, 16 Jun 2016 18:25:21 +0000 (20:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:02:07 +0000 (10:02 +0200)
commitb74584c1a6d68110d135a6ce0336aab0055f4341
tree86cd2ef99b4e43c242ca0b84c4ed0efce68fed1c
parente3e0258839a01f793a8a0c0885e8ad387681cdc6
NFC: port100: Fix the command cancellation process

The USB out_urb used to send commands to the device can be submitted
through the standard command processing queue coming from the Digital
Protocol layer but it can also be submitted from port100_abort_cmd().

To not submit the URB while already active, a mutex is now used to
protect it and a cmd_cancel flag is used to not send command while
canceling the previous one.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/port100.c
This page took 0.025172 seconds and 5 git commands to generate.