Skip to contentSkip to conversation

Bluetooth: btintel_pcie: Add shared HW reset for clean start

PATCH Superseded Sai Teja Aluvala 2 participants 2 messages Sep 29 Bluetooth drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: btintel_pcie: Add shared HW reset for clean start

Reset shared Bluetooth hardware after mapping the BAR and before setting up MSI-X interrupts, so stale device state is cleared before IRQ handlers and interrupt masks are configured.

Propagate reset errors so probe aborts rather than continuing when the reset fails.

---
 drivers/bluetooth/btintel_pcie.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/bluetooth/btintel_pcie.c +7 -0
index 84a6cf2f4920..6cde68ce0304 100644
@@ -2876,6 +2876,13 @@ static int btintel_pcie_config_pcie(struct pci_dev *pdev,
 	if (IS_ERR(data->base_addr))
 		return PTR_ERR(data->base_addr);
 
+	/* Do shared hardware reset to ensure a clean start before
+	 * configuring interrupts.
+	 */
+	err = btintel_pcie_reset_bt(data);
+	if (err)
+		return err;
+
 	err = btintel_pcie_setup_irq(data);
 	if (err)
 		return err;
Signature · 1 line
2.53.0
#1 lore raw

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/series/1175765/

---Test result---

Test Summary:

CheckPatch                    PASS      0.58 seconds
VerifyFixes                   PASS      0.11 seconds
VerifySignedoff               PASS      0.11 seconds
GitLint                       PASS      0.29 seconds
SubjectPrefix                 PASS      0.11 seconds
BuildKernel                   PASS      23.73 seconds
CheckAllWarning               PASS      27.24 seconds
CheckSparse                   PASS      29.37 seconds
BuildKernel32                 PASS      23.83 seconds
CheckKernelLLVM               PASS      24.90 seconds
TestRunnerSetup               PASS      596.05 seconds
IncrementalBuild              PASS      24.51 seconds

https://github.com/bluez/bluetooth-next/pull/836

---
Regards,
Linux Bluetooth