Bluetooth: btintel_pcie: Add shared HW reset for clean start
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.
Signed-off-by Sai Teja Aluvala <[email protected]>
--- drivers/bluetooth/btintel_pcie.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/bluetooth/btintel_pcie.c +7 -0
@@ -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
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