Skip to content

Commit

Permalink
NFC: digital: Abort last command when dep link goes down
Browse files Browse the repository at this point in the history
With this patch, the Digital Protocol layer abort the last issued
command when the dep link goes down. That way it does not have to wait
for the driver to reply with a timeout error before sending a new
command (i.e. a start poll command if constant polling is on).

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Thierry Escande authored and Samuel Ortiz committed Jul 6, 2016
1 parent af66df0 commit 3cc952d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/nfc/digital_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ static int digital_dep_link_down(struct nfc_dev *nfc_dev)
{
struct nfc_digital_dev *ddev = nfc_get_drvdata(nfc_dev);

digital_abort_cmd(ddev);

ddev->curr_protocol = 0;

return 0;
Expand Down

0 comments on commit 3cc952d

Please sign in to comment.