diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2016-07-15 06:50:52 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-07-18 04:13:02 -0400 |
commit | e7acf43024e95faa7460e77fe7e0fec2a3de582a (patch) | |
tree | 94dafa4824d87cf559031583ec626da7a5b4cee8 | |
parent | b2999c195bb5cec1a1c713f17c7f382bbcdb8b39 (diff) |
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>
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index b7c3928cf494..d02f2c14df32 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c | |||
@@ -1625,6 +1625,7 @@ static int btmrvl_sdio_suspend(struct device *dev) | |||
1625 | if (priv->adapter->hs_state != HS_ACTIVATED) { | 1625 | if (priv->adapter->hs_state != HS_ACTIVATED) { |
1626 | if (btmrvl_enable_hs(priv)) { | 1626 | if (btmrvl_enable_hs(priv)) { |
1627 | BT_ERR("HS not actived, suspend failed!"); | 1627 | BT_ERR("HS not actived, suspend failed!"); |
1628 | priv->adapter->is_suspending = false; | ||
1628 | return -EBUSY; | 1629 | return -EBUSY; |
1629 | } | 1630 | } |
1630 | } | 1631 | } |