diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-08-17 13:54:13 +0200 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:48:04 +0900 |
commit | 072420e3bf5753d21007760956aa71a6f4c2da78 (patch) | |
tree | ad552b87ec75418a376207bddfedd237b7759990 /net | |
parent | c15d60619840b45e120c2c30fd9a7eefc4fb2853 (diff) |
NFC: nci: Add post_setup handler
Some drivers require non-standard configuration after NCI_CORE_INIT
request, because they need to know ndev->manufact_specific_info or
ndev->manufact_id. This patch adds post_setup handler allowing to do
such custom configuration.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/nfc/nci/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index 80661ba29bb4..d848694a3cec 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c @@ -381,6 +381,10 @@ static int nci_open_device(struct nci_dev *ndev) msecs_to_jiffies(NCI_INIT_TIMEOUT)); } + if (ndev->ops->post_setup) { + rc = ndev->ops->post_setup(ndev); + } + if (!rc) { rc = __nci_request(ndev, nci_init_complete_req, 0, msecs_to_jiffies(NCI_INIT_TIMEOUT)); |