Thread (5 messages) 5 messages, 2 authors, 2025-08-04
STALE336d

[PATCH v1 2/2] Bluetooth: btnxpuart: Call hci_devcd_unregister() in driver exit

From: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Date: 2025-07-03 13:18:06
Also in: linux-bluetooth, lkml
Subsystem: bluetooth drivers, nxp bluetooth wireless drivers, the rest · Maintainers: Marcel Holtmann, Luiz Augusto von Dentz, Amitkumar Karwar, Neeraj Kale, Linus Torvalds

This adds a call to the new hci_devcd_unregister() API during driver
exit to cleanup devcoredump data and cancel delayed work, allowing hci
interface to be unregistered properly.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
---
 drivers/bluetooth/btnxpuart.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index c56b52bd8d98..91bf9812c8df 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1866,6 +1866,7 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
 	}
 
 	ps_cleanup(nxpdev);
+	hci_devcd_unregister(hdev);
 	hci_unregister_dev(hdev);
 	hci_free_dev(hdev);
 }
-- 
2.34.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help