linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFCv2 01/20] Bluetooth: General HCI callback implementation
Date: Tue, 24 Jul 2012 16:44:17 -0300	[thread overview]
Message-ID: <20120724194417.GA20029@joana> (raw)
In-Reply-To: <1343136121-22476-2-git-send-email-Andrei.Emeltchenko.news@gmail.com>

Hi Andrei,

* Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com> [2012-07-24 16:21:42 +0300]:

> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> Add general HCI callback implementation. Can be used for executing
> HCI commands from A2MP protocol.
> 
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
>  include/net/bluetooth/hci_core.h |   21 +++++++++
>  net/bluetooth/hci_core.c         |   88 ++++++++++++++++++++++++++++++++++++++
>  2 files changed, 109 insertions(+)
> 
> diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
> index 41d9439..479e4d1 100644
> --- a/include/net/bluetooth/hci_core.h
> +++ b/include/net/bluetooth/hci_core.h
> @@ -124,6 +124,17 @@ struct le_scan_params {
>  
>  #define HCI_MAX_SHORT_NAME_LENGTH	10
>  
> +struct hci_dev;
> +
> +struct hci_cb_cmd {
> +	struct list_head list;
> +	u16 opcode;
> +	u8 status;
> +	void *opt;
> +	void (*cb)(struct hci_dev *hdev, struct hci_cb_cmd *cmd);
> +	void (*destructor)(struct hci_dev *hdev, struct hci_cb_cmd *cmd);
> +};
> +
>  #define NUM_REASSEMBLY 4
>  struct hci_dev {
>  	struct list_head list;
> @@ -236,6 +247,9 @@ struct hci_dev {
>  
>  	struct list_head	mgmt_pending;
>  
> +	struct mutex		cb_list_lock;
> +	struct list_head	cb_list;
> +
>  	struct discovery_state	discovery;
>  	struct hci_conn_hash	conn_hash;
>  	struct list_head	blacklist;
> @@ -1092,5 +1106,12 @@ int hci_le_scan(struct hci_dev *hdev, u8 type, u16 interval, u16 window,
>  int hci_cancel_le_scan(struct hci_dev *hdev);
>  
>  u8 bdaddr_to_le(u8 bdaddr_type);
> +struct hci_cb_cmd *hci_find_cb(struct hci_dev *hdev, __u16 opcode);
> +int hci_cmd_cb(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param,
> +	       void (*cb)(struct hci_dev *hdev, struct hci_cb_cmd *cmd),
> +	       void *opt,
> +	       void (*destructor)(struct hci_dev *hdev, struct hci_cb_cmd *cmd),
> +	       gfp_t flags);
> +void hci_remove_cb(struct hci_dev *hdev, struct hci_cb_cmd *cmd);

_cb usually meant that the function itself is a callback, we should put better
names here, maybe:

hci_callback_find()
hci_callback_send_cmd()
hci_callback_remove()

>  
>  #endif /* __HCI_CORE_H */
> diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
> index 28bab9d..165c235 100644
> --- a/net/bluetooth/hci_core.c
> +++ b/net/bluetooth/hci_core.c
> @@ -36,6 +36,7 @@
>  static void hci_rx_work(struct work_struct *work);
>  static void hci_cmd_work(struct work_struct *work);
>  static void hci_tx_work(struct work_struct *work);
> +static void hci_cb_clear(struct hci_dev *hdev);
>  
>  /* HCI device list */
>  LIST_HEAD(hci_dev_list);
> @@ -1645,6 +1646,7 @@ struct hci_dev *hci_alloc_dev(void)
>  
>  	mutex_init(&hdev->lock);
>  	mutex_init(&hdev->req_lock);
> +	mutex_init(&hdev->cb_list_lock);
>  
>  	INIT_LIST_HEAD(&hdev->mgmt_pending);
>  	INIT_LIST_HEAD(&hdev->blacklist);
> @@ -1652,6 +1654,7 @@ struct hci_dev *hci_alloc_dev(void)
>  	INIT_LIST_HEAD(&hdev->link_keys);
>  	INIT_LIST_HEAD(&hdev->long_term_keys);
>  	INIT_LIST_HEAD(&hdev->remote_oob_data);
> +	INIT_LIST_HEAD(&hdev->cb_list);
>  
>  	INIT_WORK(&hdev->rx_work, hci_rx_work);
>  	INIT_WORK(&hdev->cmd_work, hci_cmd_work);
> @@ -1817,6 +1820,7 @@ void hci_unregister_dev(struct hci_dev *hdev)
>  	hci_link_keys_clear(hdev);
>  	hci_smp_ltks_clear(hdev);
>  	hci_remote_oob_data_clear(hdev);
> +	hci_cb_clear(hdev);
>  	hci_dev_unlock(hdev);
>  
>  	hci_dev_put(hdev);
> @@ -2118,6 +2122,90 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param)
>  	return 0;
>  }
>  
> +static int hci_add_cb(struct hci_dev *hdev, __u16 opcode,
> +		      void (*cb)(struct hci_dev *hdev, struct hci_cb_cmd *cmd),
> +		      void *opt,
> +		      void (*destructor)(struct hci_dev *hdev,
> +					 struct hci_cb_cmd *cmd),
> +		      gfp_t flags)

Then this on could be named hci_callback_add

> +{
> +	struct hci_cb_cmd *cmd;
> +
> +	cmd = kmalloc(sizeof(*cmd), flags);
> +	if (!cmd)
> +		return -ENOMEM;
> +
> +	cmd->cb = cb;
> +	cmd->opcode = opcode;
> +	cmd->opt = opt;
> +	cmd->status = 0;
> +	cmd->destructor = destructor;
> +
> +	mutex_lock(&hdev->cb_list_lock);
> +	list_add(&cmd->list, &hdev->cb_list);
> +	mutex_unlock(&hdev->cb_list_lock);

can't we do RCU here, of it is not possible spinlocks? Transverse a list is a
kind fast operation, we don't wanna pay two context switches here. It is
expensive I think.

> +
> +	return 0;
> +}
> +
> +struct hci_cb_cmd *hci_find_cb(struct hci_dev *hdev, __u16 opcode)
> +{
> +	struct hci_cb_cmd *cmd;
> +
> +	mutex_lock(&hdev->cb_list_lock);
> +	list_for_each_entry(cmd, &hdev->cb_list, list)
> +		if (cmd->opcode == opcode) {
> +			mutex_unlock(&hdev->cb_list_lock);
> +			return cmd;
> +		}
> +	mutex_unlock(&hdev->cb_list_lock);
> +
> +	return NULL;
> +}
> +
> +void hci_remove_cb(struct hci_dev *hdev, struct hci_cb_cmd *cmd)
> +{
> +	BT_DBG("%s remove cmd %p", hdev->name, cmd);
> +
> +	mutex_lock(&hdev->cb_list_lock);
> +	list_del(&cmd->list);
> +	mutex_unlock(&hdev->cb_list_lock);
> +
> +	if (cmd->destructor) {
> +		cmd->destructor(hdev, cmd);

So what is the purpose of the destructor_cb? A2MP calls hci_cmd_cb and
register it, then for some reason A2MP end up calling hci_remove_cb() later,
and then cmd->destructor_cb() calls a function that actually belongs to A2MP.
What is the advantage here?
Or is this meant to be static and only called from hci_cb_clear()?

> +	} else {
> +		kfree(cmd->opt);
> +		kfree(cmd);
> +	}
> +}
> +
> +static void hci_cb_clear(struct hci_dev *hdev)
> +{
> +	struct hci_cb_cmd *cmd, *tmp;
> +
> +	list_for_each_entry_safe(cmd, tmp, &hdev->cb_list, list)
> +		hci_remove_cb(hdev, cmd);
> +}
> +
> +/* Send HCI command with callback */
> +int hci_cmd_cb(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param,
> +	       void (*cb)(struct hci_dev *hdev, struct hci_cb_cmd *cmd),
> +	       void *opt,
> +	       void (*destructor)(struct hci_dev *hdev, struct hci_cb_cmd *cmd),
> +	       gfp_t flags)
> +{
> +	int ret;
> +
> +	if (!cb)
> +		return -EINVAL;
> +
> +	ret = hci_add_cb(hdev, opcode, cb, opt, destructor, flags);

Why do you need hci_add_cb()? just put all it code here, it is used only once.

	Gustavo

  reply	other threads:[~2012-07-24 19:44 UTC|newest]

Thread overview: 267+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29 14:46 [RFCv0 00/19] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 01/19] Bluetooth: Define AMP controller statuses Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 02/19] Bluetooth: Do not shadow hdr variable Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 03/19] Bluetooth: Fix processing A2MP chan in security_cfm Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 04/19] Bluetooth: General HCI callback implementation Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 05/19] Bluetooth: Process HCI callbacks in a workqueue Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 06/19] Bluetooth: Add callback clear to ops->teardown Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 07/19] Bluetooth: AMP: Use HCI callback for Read AMP Info Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 08/19] Bluetooth: AMP: Use HCI callback to Read Loc AMP Assoc Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 09/19] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 10/19] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 11/19] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 12/19] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 13/19] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 14/19] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 15/19] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 16/19] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-07-12 14:30   ` Andrei Emeltchenko
2012-07-12 23:55     ` Mat Martineau
2012-07-13  7:11       ` Andrei Emeltchenko
2012-07-16 20:46         ` Mat Martineau
2012-06-29 14:46 ` [RFCv0 17/19] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 18/19] Bluetooth: AMP: Create phy link after A2MP Assoc rsp Andrei Emeltchenko
2012-06-29 14:46 ` [RFCv0 19/19] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-07-13 13:39 ` [RFCv1 00/20] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 01/20] Bluetooth: Define AMP controller statuses Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 02/20] Bluetooth: Do not shadow hdr variable Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 03/20] Bluetooth: Fix processing A2MP chan in security_cfm Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 04/20] Bluetooth: General HCI callback implementation Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 05/20] Bluetooth: Process HCI callbacks in a workqueue Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 06/20] Bluetooth: Add callback clear to ops->teardown Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 07/20] Bluetooth: AMP: Use HCI callback for Read AMP Info Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 08/20] Bluetooth: AMP: Use HCI callback to Read Loc AMP Assoc Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 09/20] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 10/20] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 11/20] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 12/20] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 13/20] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 14/20] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 15/20] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 16/20] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 17/20] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 18/20] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 19/20] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-07-13 13:39   ` [RFCv1 20/20] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-07-24 13:21 ` [RFCv2 00/20] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 01/20] Bluetooth: General HCI callback implementation Andrei Emeltchenko
2012-07-24 19:44     ` Gustavo Padovan [this message]
2012-07-24 13:21   ` [RFCv2 02/20] Bluetooth: Process HCI callbacks in a workqueue Andrei Emeltchenko
2012-07-24 13:31     ` Oliver Neukum
2012-07-24 13:46       ` Andrei Emeltchenko
2012-07-24 14:15         ` Oliver Neukum
2012-07-24 14:25           ` Andrei Emeltchenko
2012-07-24 20:36     ` Gustavo Padovan
2012-08-13 13:51       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 03/20] Bluetooth: Add callback clear to ops->teardown Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 04/20] Bluetooth: AMP: Use HCI callback for Read AMP Info Andrei Emeltchenko
2012-07-24 20:46     ` Gustavo Padovan
2012-07-25  9:16       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 05/20] Bluetooth: AMP: Use HCI callback to Read Loc AMP Assoc Andrei Emeltchenko
2012-07-24 20:55     ` Gustavo Padovan
2012-07-25  8:49       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 06/20] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 07/20] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 08/20] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-07-24 21:13     ` Gustavo Padovan
2012-07-25 11:26       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 09/20] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 10/20] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 11/20] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 12/20] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-07-24 21:10     ` Gustavo Padovan
2012-08-10 12:50       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 13/20] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-07-24 21:16     ` Gustavo Padovan
2012-07-24 13:21   ` [RFCv2 14/20] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-07-24 21:29     ` Gustavo Padovan
2012-07-25  9:12       ` Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 15/20] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 16/20] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 17/20] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-07-24 13:21   ` [RFCv2 18/20] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-07-24 13:22   ` [RFCv2 19/20] Bluetooth: AMP: Process physical link complete event Andrei Emeltchenko
2012-07-24 13:22   ` [RFCv2 20/20] Bluetooth: AMP: Send Create Chan Req Andrei Emeltchenko
2012-08-13 13:50 ` [RFCv3 00/20] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 01/20] Bluetooth: General HCI callback implementation Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 02/20] Bluetooth: Add callback clear to ops->teardown Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 03/20] Bluetooth: AMP: Use HCI callback for Read AMP Info Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 04/20] Bluetooth: AMP: Use HCI callback to Read Loc AMP Assoc Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 05/20] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 06/20] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 07/20] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 08/20] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 09/20] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 10/20] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 11/20] Bluetooth: A2MP: Create A2MP workqueue Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 12/20] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 13/20] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 14/20] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 15/20] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 16/20] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 17/20] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 18/20] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 19/20] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-08-13 13:50   ` [RFCv3 20/20] Bluetooth: AMP: Process physical link complete event Andrei Emeltchenko
2012-08-17 14:32 ` [PATCHv1 00/26] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-08-17 14:32   ` [PATCHv1 01/26] Bluetooth: debug: Print refcnt for hci_dev Andrei Emeltchenko
2012-08-17 14:32   ` [PATCHv1 02/26] Bluetooth: trivial: Remove empty line Andrei Emeltchenko
2012-08-17 14:32   ` [PATCHv1 03/26] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-08-17 14:32   ` [PATCHv1 04/26] Bluetooth: General HCI callback implementation Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 05/26] Bluetooth: Add callback clear to ops->teardown Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 06/26] Bluetooth: AMP: Use HCI callback for Read AMP Info Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 07/26] Bluetooth: AMP: Use HCI callback to Read Loc AMP Assoc Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 08/26] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 09/26] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 10/26] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 11/26] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 12/26] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 13/26] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 14/26] Bluetooth: A2MP: Create A2MP workqueue Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 15/26] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 16/26] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 17/26] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 18/26] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 19/26] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 20/26] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 21/26] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 22/26] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 23/26] Bluetooth: AMP: Process physical link complete event Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 24/26] Bluetooth: AMP: Send Create Chan Req Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 25/26] Bluetooth: Set Exended Flowspec flag for HS chan Andrei Emeltchenko
2012-08-17 14:33   ` [PATCHv1 26/26] Bluetooth: Add logical link create function Andrei Emeltchenko
2012-08-24 13:59 ` [PATCHv2 00/22] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 01/22] Bluetooth: debug: Print refcnt for hci_dev Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 02/22] Bluetooth: trivial: Remove empty line Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 03/22] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 04/22] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 05/22] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 06/22] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 07/22] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 08/22] Bluetooth: AMP: Physical link struct definitions Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 09/22] Bluetooth: Add phylink lookup helper function Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 10/22] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 11/22] Bluetooth: AMP: Use phylink in create/disc phylink req Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 12/22] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 13/22] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 14/22] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 15/22] Bluetooth: Close A2MP chan when deleting corr L2CAP chan Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 16/22] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 17/22] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 18/22] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 19/22] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 20/22] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 21/22] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-08-24 14:00   ` [PATCHv2 22/22] Bluetooth: AMP: Process physical link complete event Andrei Emeltchenko
2012-09-06 12:19 ` [PATCHv3 00/19] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 01/19] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 02/19] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 03/19] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 04/19] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 05/19] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 06/19] Bluetooth: AMP: Physical link struct and heplers Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 07/19] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 08/19] Bluetooth: AMP: Handle create / disc phylink req Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 09/19] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 10/19] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 11/19] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 12/19] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 13/19] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 14/19] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 15/19] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 16/19] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 17/19] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 18/19] Bluetooth: AMP: Send Create Chan Req Andrei Emeltchenko
2012-09-06 12:19   ` [PATCHv3 19/19] Bluetooth: AMP: Process physical link complete event Andrei Emeltchenko
2012-09-11 18:23   ` [PATCHv3 00/19] Bluetooth: Create AMP physical link Mat Martineau
2012-09-12  8:06     ` [PATCHv4 00/17] " Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 01/17] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 02/17] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-09-13 15:02         ` Mat Martineau
2012-09-14  6:40           ` Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 03/17] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 04/17] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-09-13 15:28         ` Mat Martineau
2012-09-14  6:58           ` Andrei Emeltchenko
2012-09-14 15:42             ` Mat Martineau
2012-09-12  8:06       ` [PATCHv4 05/17] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 06/17] Bluetooth: AMP: Physical link struct and heplers Andrei Emeltchenko
2012-09-13 15:40         ` Mat Martineau
2012-09-14  7:50           ` Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 07/17] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-09-13 15:50         ` Mat Martineau
2012-09-14  9:56           ` Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 08/17] Bluetooth: AMP: Handle create / disc phylink req Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 09/17] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 10/17] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 11/17] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-09-13 16:26         ` Mat Martineau
2012-09-14  9:57           ` Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 12/17] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 13/17] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 14/17] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 15/17] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 16/17] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-09-13 16:39         ` Mat Martineau
2012-09-14 10:29           ` Andrei Emeltchenko
2012-09-12  8:06       ` [PATCHv4 17/17] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-09-17 13:24       ` [PATCHv5 00/17] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 01/17] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 02/17] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-09-18  7:43           ` Marcel Holtmann
2012-09-18  8:45             ` Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 03/17] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 04/17] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 05/17] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 06/17] Bluetooth: AMP: Physical link struct and heplers Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 07/17] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 08/17] Bluetooth: AMP: Handle create / disc phylink req Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 09/17] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 10/17] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 11/17] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 12/17] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 13/17] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 14/17] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 15/17] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 16/17] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-09-17 13:24         ` [PATCHv5 17/17] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-09-18 14:28       ` [PATCHv6 00/17] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 01/17] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 02/17] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 03/17] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 04/17] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 05/17] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 06/17] Bluetooth: AMP: Physical link struct and heplers Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 07/17] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 08/17] Bluetooth: AMP: Handle create / disc phylink req Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 09/17] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 10/17] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 11/17] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 12/17] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 13/17] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 14/17] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 15/17] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 16/17] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-09-18 14:28         ` [PATCHv6 17/17] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-09-20 11:01         ` [PATCHv6 00/17] Bluetooth: Create AMP physical link Andrei Emeltchenko
2012-09-27 14:26       ` [PATCHv7 00/19] " Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 01/19] Bluetooth: Add HCI logical link cmds definitions Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 02/19] Bluetooth: A2MP: Create amp_mgr global list Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 03/19] Bluetooth: AMP: Use HCI cmd to Read AMP Info Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 04/19] Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 05/19] Bluetooth: A2MP: Process Discover Response Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 06/19] Bluetooth: AMP: Physical link struct and heplers Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 07/19] Bluetooth: AMP: Remote AMP ctrl definitions Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 08/19] Bluetooth: AMP: Handle create / disc phylink req Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 09/19] Bluetooth: A2MP: Process A2MP Getinfo Rsp Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 10/19] Bluetooth: A2MP: Process A2MP Get AMP Assoc Rsp Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 11/19] Bluetooth: Choose connection based on capabilities Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 12/19] Bluetooth: Add function to derive AMP key using hmac Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 13/19] Bluetooth: AMP: Add AMP key calculation Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 14/19] Bluetooth: AMP: Create Physical Link Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 15/19] Bluetooth: AMP: Write remote AMP Assoc Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 16/19] Bluetooth: A2MP: Add fallback to normal l2cap init sequence Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 17/19] Bluetooth: AMP: Process Chan Selected event Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 18/19] Bluetooth: AMP: Accept Physical Link Andrei Emeltchenko
2012-09-27 14:26         ` [PATCHv7 19/19] Bluetooth: AMP: Handle Accept phylink command status evt Andrei Emeltchenko
2012-09-27 20:44         ` [PATCHv7 00/19] Bluetooth: Create AMP physical link Gustavo Padovan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120724194417.GA20029@joana \
    --to=gustavo@padovan.org \
    --cc=Andrei.Emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).