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> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:

committed by
Samuel Ortiz

parent
aaee24accb
commit
fdf79bd488
@@ -388,6 +388,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));
|
||||
|
Reference in New Issue
Block a user