NFC: digital: Abort cmd when deactivating target

When deactivating an active target, the outstanding command should
be aborted.

Signed-off-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Mark Greer 2017-06-15 20:34:21 -07:00 committed by Samuel Ortiz
parent 4b519bb493
commit 72ad533acc
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ static void digital_deactivate_target(struct nfc_dev *nfc_dev,
return;
}
digital_abort_cmd(ddev);
ddev->curr_protocol = 0;
}