* [REPOST PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
@ 2024-08-21 22:43 Douglas Anderson
2024-08-23 20:10 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Douglas Anderson @ 2024-08-21 22:43 UTC (permalink / raw)
To: Marcel Holtmann, Luiz Augusto von Dentz
Cc: Guenter Roeck, Stephen Boyd, Johan Hovold, Bartosz Golaszewski,
Douglas Anderson, Sai Teja Aluvala, linux-bluetooth, linux-kernel
On systems in the field, we are seeing this sometimes in the kernel logs:
Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
This means that _something_ decided that it wanted to get a memdump
but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
The cleanup code in qca_controller_memdump() when we get back an error
from hci_devcd_init() undoes most things but forgets to clear
QCA_IBS_DISABLED. One side effect of this is that, during the next
suspend, qca_suspend() will always get a timeout.
Let's fix it so that we clear the bit.
Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
drivers/bluetooth/hci_qca.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 45adc1560d94..efce3846d5fc 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1091,6 +1091,7 @@ static void qca_controller_memdump(struct work_struct *work)
qca->memdump_state = QCA_MEMDUMP_COLLECTED;
cancel_delayed_work(&qca->ctrl_memdump_timeout);
clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
+ clear_bit(QCA_IBS_DISABLED, &qca->flags);
mutex_unlock(&qca->hci_memdump_lock);
return;
}
--
2.46.0.184.g6999bdac58-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [REPOST PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-08-21 22:43 [REPOST PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
@ 2024-08-23 20:10 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2024-08-23 20:10 UTC (permalink / raw)
To: Doug Anderson
Cc: marcel, luiz.dentz, groeck, swboyd, johan+linaro,
bartosz.golaszewski, quic_saluvala, linux-bluetooth, linux-kernel
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 21 Aug 2024 15:43:40 -0700 you wrote:
> On systems in the field, we are seeing this sometimes in the kernel logs:
> Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
>
> This means that _something_ decided that it wanted to get a memdump
> but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
>
> The cleanup code in qca_controller_memdump() when we get back an error
> from hci_devcd_init() undoes most things but forgets to clear
> QCA_IBS_DISABLED. One side effect of this is that, during the next
> suspend, qca_suspend() will always get a timeout.
>
> [...]
Here is the summary with links:
- [REPOST] Bluetooth: qca: If memdump doesn't work, re-enable IBS
https://git.kernel.org/bluetooth/bluetooth-next/c/61bea6923172
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-23 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 22:43 [REPOST PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
2024-08-23 20:10 ` patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox