summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-08-19 15:19:40 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:48:04 +0900
commita4afcfec2a5603d8712f14231b12dc8a0e85cb6f (patch)
tree391a6f653797cd80cef1f6aa165087bebb98f53a /net
parent072420e3bf5753d21007760956aa71a6f4c2da78 (diff)
NFC: nci: export nci_core_reset and nci_core_init
Some drivers needs to have ability to reinit NCI core, for example after updating firmware in setup() of post_setup() callback. This patch makes nci_core_reset() and nci_core_init() functions public, to make it possible. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Diffstat (limited to 'net')
-rw-r--r--net/nfc/nci/core.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index d848694a3cec..d5ea7496f802 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -350,6 +350,20 @@ int nci_prop_cmd(struct nci_dev *ndev, __u8 oid, size_t len, __u8 *payload)
}
EXPORT_SYMBOL(nci_prop_cmd);
+int nci_core_reset(struct nci_dev *ndev)
+{
+ return __nci_request(ndev, nci_reset_req, 0,
+ msecs_to_jiffies(NCI_RESET_TIMEOUT));
+}
+EXPORT_SYMBOL(nci_core_reset);
+
+int nci_core_init(struct nci_dev *ndev)
+{
+ return __nci_request(ndev, nci_init_req, 0,
+ msecs_to_jiffies(NCI_INIT_TIMEOUT));
+}
+EXPORT_SYMBOL(nci_core_init);
+
static int nci_open_device(struct nci_dev *ndev)
{
int rc = 0;