Re: [PATCH v1 27/34] NFC: st21nfcb: Add HCI protocol over NCI protocol support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Christophe,

On Mon, Dec 08, 2014 at 10:08:32PM +0100, Christophe Ricard wrote:
> Some st21nfcb features are only available through HCI commands. Those
> HCI commands can be address over NCI by sending data using a dynamic
> conn_id. This is useful for example for Secure Element communication.
> 
> The HCI core brings the minimal HCI functions required to communicate with
> a secure element.
> 
> Signed-off-by: Christophe Ricard <christophe-h.ricard@xxxxxx>
> ---
>  drivers/nfc/st21nfcb/Makefile            |   2 +-
>  drivers/nfc/st21nfcb/st21nfcb_hci_core.c | 783 +++++++++++++++++++++++++++++++
>  drivers/nfc/st21nfcb/st21nfcb_hci_core.h | 134 ++++++
>  3 files changed, 918 insertions(+), 1 deletion(-)
>  create mode 100644 drivers/nfc/st21nfcb/st21nfcb_hci_core.c
>  create mode 100644 drivers/nfc/st21nfcb/st21nfcb_hci_core.h
I may be missing some details, but I believe most of this code could be
made part of the core NCI implementation. I don't mind creating an
hci_dev from there and exporting the relevant API for drivers to send
HCI commands/events through their NCI connections.
You would not need to bring chunks of the HCI core into a driver, and
as a side effect, patch #21 would no longer be needed.

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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux