* [RESEND v3 1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support
@ 2023-06-14 4:58 Sai Teja Aluvala
2023-06-20 18:30 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Sai Teja Aluvala @ 2023-06-14 4:58 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.
Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com>
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.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [RESEND v3 1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support
2023-06-14 4:58 [RESEND v3 1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support Sai Teja Aluvala
@ 2023-06-20 18:30 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2023-06-20 18:30 UTC (permalink / raw)
To: Sai Teja Aluvala
Cc: marcel, johan.hedberg, luiz.dentz, linux-kernel, linux-bluetooth,
quic_hemantg, quic_bgodavar, jiangzp, mmandlik
Hello:
This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 14 Jun 2023 10:28:15 +0530 you wrote:
> This patch implements the hci_qca driver side .coredump() callback to
> trigger a devcoredump via sysfs.
>
> Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com>
>
> v2 -> V3:
>
> [...]
Here is the summary with links:
- [RESEND,v3,1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support
https://git.kernel.org/bluetooth/bluetooth-next/c/79e5531b19fa
- [RESEND,v3,2/2] Bluetooth: hci_qca: Add qcom devcoredump support
https://git.kernel.org/bluetooth/bluetooth-next/c/97604e9492ce
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:[~2023-06-20 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14 4:58 [RESEND v3 1/2] Bluetooth: hci_qca: Add qcom devcoredump sysfs support Sai Teja Aluvala
2023-06-20 18:30 ` 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
Powered by JetHome