Skip to content

Bluetooth: Clean up hci_cb usage

Johan Hedberg linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Bluetooth: Add new hci_cb entries to the tail rather than the headnet/bluetooth/hci_core.c+1 -10 replies
2/5Bluetooth: Convert hci_cb_list_lock to a mutexinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c+14 -140 replies
3/5Bluetooth: Convert L2CAP security callback to use hci_cbinclude/net/bluetooth/hci_core.h net/bluetooth/l2cap_core.c+16 -380 replies
4/5Bluetooth: Convert connect_cfm to be triggered through hci_cbinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c +2 more+55 -460 replies
5/5Bluetooth: Convert disconn_cfm to be triggered through hci_cbinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c +2 more+28 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Bluetooth: Clean up hci_cb usage

Hi,

This set of patches cleans up the usage of the hci_cb list as well as the couple of unnecesasry layers of abstraction with hci_*_cb() calling hci_proto_*_cb() functions. These patches also pave the way for other modules, such as 6lowpan, to easily track the coming and going of connections, now that connect_cfm & disconn_cfm are accessible through the hci_cb list.

Johan

----------------------------------------------------------------
Johan Hedberg (5):
Bluetooth: Add new hci_cb entries to the tail rather than the head
Bluetooth: Convert hci_cb_list_lock to a mutex
Bluetooth: Convert L2CAP security callback to use hci_cb
Bluetooth: Convert connect_cfm to be triggered through hci_cb
Bluetooth: Convert disconn_cfm to be triggered through hci_cb

 include/net/bluetooth/hci_core.h | 140 ++++++++++++------------------------
 net/bluetooth/hci_conn.c         |   6 +-
 net/bluetooth/hci_core.c         |  12 ++--
 net/bluetooth/hci_event.c        |  38 +++++-----
 net/bluetooth/l2cap_core.c       |  26 +++++--
 net/bluetooth/sco.c              |  21 +++++-
 6 files changed, 113 insertions(+), 130 deletions(-)