projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3651626
)
NFC: update PN544 HCI driver state when opened/closed
author
Eric Lapuyade
<eric.lapuyade@intel.com>
Wed, 30 May 2012 16:13:06 +0000
(18:13 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:12 +0000
(16:42 -0400)
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn544_hci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/pn544_hci.c
b/drivers/nfc/pn544_hci.c
index 457eac35dc7486dd8fcfe48195585316081d72ce..69df6fecb84759bb5f5eb72840a41c2087127f30 100644
(file)
--- a/
drivers/nfc/pn544_hci.c
+++ b/
drivers/nfc/pn544_hci.c
@@
-377,6
+377,9
@@
static int pn544_hci_open(struct nfc_shdlc *shdlc)
r = pn544_hci_enable(info, HCI_MODE);
+ if (r == 0)
+ info->state = PN544_ST_READY;
+
out:
mutex_unlock(&info->info_lock);
return r;
@@
-393,6
+396,8
@@
static void pn544_hci_close(struct nfc_shdlc *shdlc)
pn544_hci_disable(info);
+ info->state = PN544_ST_COLD;
+
out:
mutex_unlock(&info->info_lock);
}