]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btmtksdio: handle runtime pm only when sdio_func is available
authorSean Wang <sean.wang@mediatek.com>
Wed, 1 Dec 2021 18:02:46 +0000 (02:02 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 3 Dec 2021 21:09:59 +0000 (22:09 +0100)
commit85d4b1c605db25937dc73aab9107c12d6db0c17d
treedcfbadfb7cd4cd519ecb21174ed362fc232e3f93
parent8f327324eda7cba2353fb755a39b0014a92ee63b
Bluetooth: btmtksdio: handle runtime pm only when sdio_func is available

Runtime pm ops is not aware the sdio_func status that is probably
being disabled by btmtksdio_close. Thus, we are only able to access the
sdio_func for the runtime pm operations only when the sdio_func is
available.

Fixes: a5fa86aa7837c ("Bluetooth: btmtksdio: Add runtime PM support to SDIO based Bluetooth")
Co-developed-by: Mark-yw Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Mark-yw Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c