NCI_HCI_LINK_MGMT_PIPE was never open in st_nci_hci_load_session.

Signed-off-by: Christophe Ricard <christophe-h.ric...@st.com>
---
 drivers/nfc/st-nci/st-nci_se.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/nfc/st-nci/st-nci_se.c b/drivers/nfc/st-nci/st-nci_se.c
index 15fb0bb..3ea5384 100644
--- a/drivers/nfc/st-nci/st-nci_se.c
+++ b/drivers/nfc/st-nci/st-nci_se.c
@@ -245,6 +245,14 @@ int st_nci_hci_load_session(struct nci_dev *ndev)
                kfree_skb(skb_pipe_info);
        }
 
+       /*
+        * 3 gates have a well known pipe ID. Only NCI_HCI_LINK_MGMT_GATE
+        * is not yet open at this stage.
+        */
+       r = nci_hci_connect_gate(ndev, ST_NCI_HOST_CONTROLLER_ID,
+                                NCI_HCI_LINK_MGMT_GATE,
+                                NCI_HCI_LINK_MGMT_PIPE);
+
        kfree_skb(skb_pipe_list);
        return r;
 }
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to