[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250703125941.1659700-2-neeraj.sanjaykale@nxp.com>
Date: Thu, 3 Jul 2025 18:29:41 +0530
From: Neeraj Sanjay Kale <neeraj.sanjaykale@....com>
To: marcel@...tmann.org,
luiz.dentz@...il.com,
johan.hedberg@...il.com,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
horms@...nel.org
Cc: linux-bluetooth@...r.kernel.org,
linux-kernel@...r.kernel.org,
netdev@...r.kernel.org,
amitkumar.karwar@....com,
neeraj.sanjaykale@....com,
sherry.sun@....com,
manjeet.gupta@....com
Subject: [PATCH v1 2/2] Bluetooth: btnxpuart: Call hci_devcd_unregister() in driver exit
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@....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
Powered by blists - more mailing lists