]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6a5ee976ce2fb744d8507d4eef89ffcb73890d5
tree86cd2ef99b4e43c242ca0b84c4ed0efce68fed1c
parent023af65566d3311059bb41cb2ba0f4e108050b08
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