mbox series

[v2,0/2] Bluetooth: btmtksdio: ensure btmtksdio_close is executed before btmtksdio_remove

Message ID 20250422012156.586600-1-chris.lu@mediatek.com
Headers show
Series Bluetooth: btmtksdio: ensure btmtksdio_close is executed before btmtksdio_remove | expand

Message

Chris Lu April 22, 2025, 1:21 a.m. UTC
If Bluetooth SDIO card is unexpectedly removed due to hardware removal
or SDIO issue, it is possible for remove to be called before close.
If an interrupt occurs during this process, it may cause kernel panic.
Therefore, it is necessary to ensure that close is executed before
remove to stop interrupts and cancel txrx workqueue.

Chris Lu (2):
  Bluetooth: btmtksdio: Check function enabled before doing close
  Bluetooth: btmtksdio: Do close if SDIO card removed without close

 drivers/bluetooth/btmtksdio.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)