* [PATCH v2 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support
@ 2023-05-02 4:22 Sai Teja Aluvala
2023-05-02 4:57 ` [v2,1/2] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Sai Teja Aluvala @ 2023-05-02 4:22 UTC (permalink / raw)
To: marcel, johan.hedberg, luiz.dentz
Cc: linux-kernel, linux-bluetooth, quic_hemantg, quic_bgodavar,
jiangzp, mmandlik, Sai Teja Aluvala
This patch implements the hci_qca driver side .coredump() callback to
trigger a devcoredump via sysfs and .enable_coredump() callback to
check if the devcoredump functionality is enabled for a device.
Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com>
Reviewed-by: Manish Mandlik <mmandlik@google.com>
V2:
--
Updated to work with the updated HCI devcoredump API.
V1:
--
Initial Patch
---
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 1b06450..ca98f6d 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -2380,6 +2380,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,
@@ -2390,6 +2402,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.
^ permalink raw reply related [flat|nested] 2+ messages in thread* RE: [v2,1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support
2023-05-02 4:22 [PATCH v2 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support Sai Teja Aluvala
@ 2023-05-02 4:57 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2023-05-02 4:57 UTC (permalink / raw)
To: linux-bluetooth, quic_saluvala
[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]
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=744296
---Test result---
Test Summary:
CheckPatch PASS 1.61 seconds
GitLint FAIL 1.14 seconds
SubjectPrefix PASS 0.25 seconds
BuildKernel PASS 31.93 seconds
CheckAllWarning PASS 35.03 seconds
CheckSparse PASS 40.17 seconds
CheckSmatch PASS 110.23 seconds
BuildKernel32 PASS 31.28 seconds
TestRunnerSetup PASS 445.42 seconds
TestRunner_l2cap-tester PASS 17.21 seconds
TestRunner_iso-tester PASS 21.38 seconds
TestRunner_bnep-tester PASS 5.60 seconds
TestRunner_mgmt-tester PASS 116.37 seconds
TestRunner_rfcomm-tester PASS 9.00 seconds
TestRunner_sco-tester PASS 8.37 seconds
TestRunner_ioctl-tester PASS 9.83 seconds
TestRunner_mesh-tester PASS 7.18 seconds
TestRunner_smp-tester PASS 8.19 seconds
TestRunner_userchan-tester PASS 5.97 seconds
IncrementalBuild PASS 34.72 seconds
Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[v2,1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support
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
12: B2 Line has trailing whitespace: "Updated to work with the updated HCI devcoredump API. "
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-02 4:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-02 4:22 [PATCH v2 1/2] Bluetooth: hci_qca: Add qcomm devcoredump sysfs support Sai Teja Aluvala
2023-05-02 4:57 ` [v2,1/2] " bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.