Skip to content

Bluetooth: Miscellaneous fixes and cleanups

Zijun Hu linux-bluetooth lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20260724-generic_fix-6f13710b92ea

Versions newest first

  1. v3 Latest7 patches 1 replyIn review
  2. v23 patches 1 replySuperseded
  3. v111 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Append 4 more simple commits.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Bluetooth: btintel: Fix diagnostics event detectiondrivers/bluetooth/btintel.c+1 -11 reply
2/7Bluetooth: btintel: Remove redundant (hdr->plen > 0) in btintel_recv_event()drivers/bluetooth/btintel.c+1 -20 replies
3/7Bluetooth: coredump: Expose header size and end marker to driversinclude/net/bluetooth/coredump.h net/bluetooth/coredump.c+9 -50 replies
4/7Bluetooth: hci_core: Introduce __hci_reset_dev() with a hardware error codeinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c+10 -40 replies
5/7Bluetooth: btnxpuart: Simplify nxp_set_ind_reset() by __hci_reset_dev()drivers/bluetooth/btnxpuart.c+1 -130 replies
6/7Bluetooth: hci_event: Introduce handle_ev_vendor() for HCI_EV_VENDORinclude/net/bluetooth/hci_core.h net/bluetooth/hci_event.c+11 -10 replies
7/7Bluetooth: hci_event: Use 255 as max event payload length in hci_ev_table[]include/net/bluetooth/hci.h net/bluetooth/hci_event.c+8 -70 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/7] Bluetooth: Miscellaneous fixes and cleanups

This series has bug fixes, cleanups, a new helper, and a new hook for transport drivers — all simple.

---
Changes in v3:
- Append 4 more simple commits.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Rework patch 1: guard with (@len + 1) against skb->len, per Luiz.
- Add two more btintel/coredump cleanups.
- Drop "hci_core: Don't treat HCI_DRV_PKT/HCI_DIAG_PKT as unknown type".
- Link to v1: https://patch.msgid.link/[email protected]

---
Zijun Hu (7):
Bluetooth: btintel: Fix diagnostics event detection
Bluetooth: btintel: Remove redundant (hdr->plen > 0) in btintel_recv_event()
Bluetooth: coredump: Expose header size and end marker to drivers
Bluetooth: hci_core: Introduce __hci_reset_dev() with a hardware error code
Bluetooth: btnxpuart: Simplify nxp_set_ind_reset() by __hci_reset_dev()
Bluetooth: hci_event: Introduce handle_ev_vendor() for HCI_EV_VENDOR
Bluetooth: hci_event: Use 255 as max event payload length in hci_ev_table[]

 drivers/bluetooth/btintel.c      |  5 ++---
 drivers/bluetooth/btnxpuart.c    | 14 +-------------
 include/net/bluetooth/coredump.h |  7 +++++++
 include/net/bluetooth/hci.h      |  1 +
 include/net/bluetooth/hci_core.h | 10 +++++++++-
 net/bluetooth/coredump.c         |  7 ++-----
 net/bluetooth/hci_core.c         |  6 +++---
 net/bluetooth/hci_event.c        | 22 +++++++++++++++-------
 8 files changed, 40 insertions(+), 32 deletions(-)

---
base-commit: d264c90ca22e2034ef46b1831d38b1f47af44380
change-id: 20260724-generic_fix-6f13710b92ea

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>