2023-06-07 06:29:53

by Sai Teja Aluvala

[permalink] [raw]
Subject: [PATCH v3 1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support

This patch implements the hci_qca driver side .coredump() callback to
trigger a devcoredump via sysfs.

Signed-off-by: Sai Teja Aluvala <[email protected]>

v2 -> V3:
--------
Updated commit text

v1 -> V2:
--------
Updated to work with the updated HCI devcoredump API.
---
drivers/bluetooth/hci_qca.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index e30c979..1ee5323 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -2384,6 +2384,18 @@ static const struct acpi_device_id qca_bluetooth_acpi_match[] = {
MODULE_DEVICE_TABLE(acpi, qca_bluetooth_acpi_match);
#endif

+#ifdef CONFIG_DEV_COREDUMP
+static void hciqca_coredump(struct device *dev)
+{
+ struct serdev_device *serdev = to_serdev_device(dev);
+ struct qca_serdev *qcadev = serdev_device_get_drvdata(serdev);
+ struct hci_uart *hu = &qcadev->serdev_hu;
+ struct hci_dev *hdev = hu->hdev;
+
+ if (hdev->dump.coredump)
+ hdev->dump.coredump(hdev);
+}
+#endif

static struct serdev_device_driver qca_serdev_driver = {
.probe = qca_serdev_probe,
@@ -2394,6 +2406,9 @@ static struct serdev_device_driver qca_serdev_driver = {
.acpi_match_table = ACPI_PTR(qca_bluetooth_acpi_match),
.shutdown = qca_serdev_shutdown,
.pm = &qca_pm_ops,
+#ifdef CONFIG_DEV_COREDUMP
+ .coredump = hciqca_coredump,
+#endif
},
};

--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc.



2023-06-07 07:08:27

by bluez.test.bot

[permalink] [raw]
Subject: RE: [v3,1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support

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=754732

---Test result---

Test Summary:
CheckPatch PASS 1.52 seconds
GitLint PASS 0.70 seconds
SubjectPrefix PASS 0.25 seconds
BuildKernel PASS 33.83 seconds
CheckAllWarning PASS 37.45 seconds
CheckSparse PASS 42.66 seconds
CheckSmatch PASS 115.22 seconds
BuildKernel32 PASS 33.10 seconds
TestRunnerSetup PASS 469.77 seconds
TestRunner_l2cap-tester PASS 17.95 seconds
TestRunner_iso-tester PASS 24.89 seconds
TestRunner_bnep-tester PASS 6.01 seconds
TestRunner_mgmt-tester PASS 120.00 seconds
TestRunner_rfcomm-tester PASS 9.43 seconds
TestRunner_sco-tester PASS 8.73 seconds
TestRunner_ioctl-tester PASS 10.22 seconds
TestRunner_mesh-tester PASS 7.54 seconds
TestRunner_smp-tester PASS 8.63 seconds
TestRunner_userchan-tester PASS 6.28 seconds
IncrementalBuild PASS 36.46 seconds



---
Regards,
Linux Bluetooth