Skip to content

Commit 1bb0c66

Browse files
Venkata Lakshmi Narayana Gubbaholtmann
authored andcommitted
Bluetooth: hci_qca: check for SSR triggered flag while suspend
QCA_IBS_DISABLED flag will be set after memorydump started from controller.Currently qca_suspend() is waiting for SSR to complete based on flag QCA_IBS_DISABLED.Added to check for QCA_SSR_TRIGGERED flag too. Fixes: 2be43ab ("Bluetooth: hci_qca: Wait for timeout during suspend") Signed-off-by: Venkata Lakshmi Narayana Gubba <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 8b1c324 commit 1bb0c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,8 @@ static int __maybe_unused qca_suspend(struct device *dev)
21112111
!test_bit(QCA_SSR_TRIGGERED, &qca->flags))
21122112
return 0;
21132113

2114-
if (test_bit(QCA_IBS_DISABLED, &qca->flags)) {
2114+
if (test_bit(QCA_IBS_DISABLED, &qca->flags) ||
2115+
test_bit(QCA_SSR_TRIGGERED, &qca->flags)) {
21152116
wait_timeout = test_bit(QCA_SSR_TRIGGERED, &qca->flags) ?
21162117
IBS_DISABLE_SSR_TIMEOUT_MS :
21172118
FW_DOWNLOAD_TIMEOUT_MS;

0 commit comments

Comments
 (0)