mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 23:51:02 +02:00
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.
Fixes: c2b636b3f7 ("Bluetooth: btintel_pcie: Add support for PCIe transport")
Signed-off-by: Sai Teja Aluvala <aluvala.sai.teja@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
ac022970e9
commit
1465494e8d
|
|
@ -1877,6 +1877,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user