Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1444182 > unrolled thread
| Started by | Amitkumar Karwar <akarwar@marvell.com> |
|---|---|
| First post | 2016-07-15 13:00 +0200 |
| Last post | 2016-07-18 10:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] Bluetooth: btmrvl: reset is_suspending flag in failure path Amitkumar Karwar <akarwar@marvell.com> - 2016-07-15 13:00 +0200
Re: [PATCH] Bluetooth: btmrvl: reset is_suspending flag in failure path Marcel Holtmann <marcel@holtmann.org> - 2016-07-18 10:20 +0200
| From | Amitkumar Karwar <akarwar@marvell.com> |
|---|---|
| Date | 2016-07-15 13:00 +0200 |
| Subject | [PATCH] Bluetooth: btmrvl: reset is_suspending flag in failure path |
| Message-ID | <rV90B-5RX-15@gated-at.bofh.it> |
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>
---
drivers/bluetooth/btmrvl_sdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index b7c3928..d02f2c1 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)
if (priv->adapter->hs_state != HS_ACTIVATED) {
if (btmrvl_enable_hs(priv)) {
BT_ERR("HS not actived, suspend failed!");
+ priv->adapter->is_suspending = false;
return -EBUSY;
}
}
--
1.8.1.4
[toc] | [next] | [standalone]
| From | Marcel Holtmann <marcel@holtmann.org> |
|---|---|
| Date | 2016-07-18 10:20 +0200 |
| Message-ID | <rWbWq-3H7-5@gated-at.bofh.it> |
| In reply to | #1444182 |
Hi Amitkumar, > 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> > --- > drivers/bluetooth/btmrvl_sdio.c | 1 + > 1 file changed, 1 insertion(+) patch has been applied to bluetooth-next tree. Regards Marcel
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web