Bluetooth: btmtksdio: Do close if SDIO card removed without close
authorChris Lu <chris.lu@mediatek.com>
Tue, 22 Apr 2025 01:21:56 +0000 (09:21 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 25 Apr 2025 19:03:19 +0000 (15:03 -0400)
commit0b6d58bc6ea85e57de25c828444928e4a0aa79cb
treebeda240d31ac4753f21af60cc809610562d4dfd1
parent07e90048e356a29079fbc011cfc2e1fa1d1c5ac9
Bluetooth: btmtksdio: Do close if SDIO card removed without close

To prevent Bluetooth SDIO card from be physically removed suddenly,
driver needs to ensure btmtksdio_close is called before
btmtksdio_remove to disable interrupts and txrx workqueue.

Fixes: 6ac4233afb9a ("Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal")
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtksdio.c