Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amitkumar Karwar and committed by
Marcel Holtmann
e7acf430 b2999c19

+1
+1
drivers/bluetooth/btmrvl_sdio.c
··· 1625 1625 if (priv->adapter->hs_state != HS_ACTIVATED) { 1626 1626 if (btmrvl_enable_hs(priv)) { 1627 1627 BT_ERR("HS not actived, suspend failed!"); 1628 + priv->adapter->is_suspending = false; 1628 1629 return -EBUSY; 1629 1630 } 1630 1631 }