summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorRocky Liao <rjliao@codeaurora.org>2019-08-14 03:42:39 -0400
committerMarcel Holtmann <marcel@holtmann.org>2019-08-14 09:50:46 -0400
commit6600c0808e2ea2939009e53983f066fe38bd308a (patch)
treeb23772ae495fc84951d872dac35947aa372fd6ca /drivers/bluetooth
parent12072a68961af20e84ddb4aba2387ba5f70e8c14 (diff)
Bluetooth: hci_qca: Skip 1 error print in device_want_to_sleep()
Don't fall through to print error message when receive sleep indication in HCI_IBS_RX_ASLEEP state, this is allowed behavior. Signed-off-by: Rocky Liao <rjliao@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_qca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 0cfa5b831d39..9a970fd1975a 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -705,7 +705,7 @@ static void device_want_to_sleep(struct hci_uart *hu)
705 unsigned long flags; 705 unsigned long flags;
706 struct qca_data *qca = hu->priv; 706 struct qca_data *qca = hu->priv;
707 707
708 BT_DBG("hu %p want to sleep", hu); 708 BT_DBG("hu %p want to sleep in %d state", hu, qca->rx_ibs_state);
709 709
710 spin_lock_irqsave(&qca->hci_ibs_lock, flags); 710 spin_lock_irqsave(&qca->hci_ibs_lock, flags);
711 711
@@ -720,7 +720,7 @@ static void device_want_to_sleep(struct hci_uart *hu)
720 break; 720 break;
721 721
722 case HCI_IBS_RX_ASLEEP: 722 case HCI_IBS_RX_ASLEEP:
723 /* Fall through */ 723 break;
724 724
725 default: 725 default:
726 /* Any other state is illegal */ 726 /* Any other state is illegal */