mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
b2999c195b
commit
e7acf43024
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue