提交 e7acf430 编写于 作者: A Amitkumar Karwar 提交者: Marcel Holtmann

Bluetooth: btmrvl: reset is_suspending flag in failure path

is_suspending flag remains on when host sleep fails to enable. Data
path is unnecessarily blocked after this. This patch ensures to
reset the flag in failure path.
Signed-off-by: NAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 b2999c19
...@@ -1625,6 +1625,7 @@ static int btmrvl_sdio_suspend(struct device *dev) ...@@ -1625,6 +1625,7 @@ static int btmrvl_sdio_suspend(struct device *dev)
if (priv->adapter->hs_state != HS_ACTIVATED) { if (priv->adapter->hs_state != HS_ACTIVATED) {
if (btmrvl_enable_hs(priv)) { if (btmrvl_enable_hs(priv)) {
BT_ERR("HS not actived, suspend failed!"); BT_ERR("HS not actived, suspend failed!");
priv->adapter->is_suspending = false;
return -EBUSY; return -EBUSY;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册