2023-03-07 21:57:13

by Brown, Len

[permalink] [raw]
Subject: [PATCH 1/1] hci_qca: do not interfere with system suspend

When hci_qca returns an error to its pm_ops.suspend routine,
the PM subsystem will terminate the system wide suspend.

It is extremely unlikely that there will ever be a justification
for hci_qca, no matter what its internal malfunction, should
cause system-wide suspend to terminate.

Doing so, could result in the scenario where a laptop lid is closed,
suspend termnates, the user places the running laptop into a breifcase,
not expecting it to be overheating or draining its battery...

This is not a theoretical issue.
The 6.3-rc1 currently fails this way on the Dell XPS-13-9310:

Bluetooth: hci0: SSR or FW download time out
hci_uart_qca serial0-0: PM: dpm_run_callback(): acpi_subsys_suspend+0x0/0x70 returns -110
hci_uart_qca serial0-0: PM: failed to suspend: error -110
PM: suspend of devices aborted after 3218.724 msecs
PM: start suspend of devices aborted after 3246.859 msecs
PM: Some devices failed to suspend, or early wake event detected
PM: resume of devices complete after 84.988 msecs

Signed-off-by: Len Brown <[email protected]>
Cc: Marcel Holtmann <[email protected]>
Cc: Johan Hedberg <[email protected]>
Cc: Luiz Augusto von Dentz <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
drivers/bluetooth/hci_qca.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 3df8c3606e93..1795cc527b88 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -2309,7 +2309,7 @@ static int __maybe_unused qca_suspend(struct device *dev)
error:
clear_bit(QCA_SUSPENDING, &qca->flags);

- return ret;
+ return 0;
}

static int __maybe_unused qca_resume(struct device *dev)
--
2.37.2



2023-03-07 22:40:27

by bluez.test.bot

[permalink] [raw]
Subject: RE: [1/1] hci_qca: do not interfere with system suspend

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=727635

---Test result---

Test Summary:
CheckPatch FAIL 1.03 seconds
GitLint FAIL 0.69 seconds
SubjectPrefix FAIL 0.52 seconds
BuildKernel PASS 43.24 seconds
CheckAllWarning PASS 46.75 seconds
CheckSparse PASS 52.71 seconds
CheckSmatch PASS 138.45 seconds
BuildKernel32 PASS 41.14 seconds
TestRunnerSetup PASS 584.50 seconds
TestRunner_l2cap-tester PASS 20.02 seconds
TestRunner_iso-tester PASS 22.58 seconds
TestRunner_bnep-tester PASS 7.54 seconds
TestRunner_mgmt-tester PASS 142.44 seconds
TestRunner_rfcomm-tester PASS 11.71 seconds
TestRunner_sco-tester PASS 10.70 seconds
TestRunner_ioctl-tester PASS 12.86 seconds
TestRunner_mesh-tester PASS 9.27 seconds
TestRunner_smp-tester PASS 10.25 seconds
TestRunner_userchan-tester PASS 7.73 seconds
IncrementalBuild PASS 38.11 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[1/1] hci_qca: do not interfere with system suspend
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#87:
hci_uart_qca serial0-0: PM: dpm_run_callback(): acpi_subsys_suspend+0x0/0x70 returns -110

total: 0 errors, 1 warnings, 8 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/src/13164790.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.


##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[1/1] hci_qca: do not interfere with system suspend

WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
18: B1 Line exceeds max length (89>80): "hci_uart_qca serial0-0: PM: dpm_run_callback(): acpi_subsys_suspend+0x0/0x70 returns -110"
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix
Output:
"Bluetooth: " prefix is not specified in the subject


---
Regards,
Linux Bluetooth