cnss2: Suspend PCIe link and power off device after PCIe probe
After finishing initialization during PCIe probe, there is no need to keep PCIe link up. Hence suspend PCIe link and power off device after PCIe probe for QCA6290 chipset. Change-Id: I1b07d7c9ef4c3a15ba1eb409a4c64f905e83dae4 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
58274ed8f1
commit
0c23ebd17e
1 changed files with 5 additions and 0 deletions
|
@ -1463,6 +1463,11 @@ static int cnss_pci_probe(struct pci_dev *pci_dev,
|
|||
cnss_pci_disable_msi(pci_priv);
|
||||
goto disable_bus;
|
||||
}
|
||||
ret = cnss_suspend_pci_link(pci_priv);
|
||||
if (ret)
|
||||
cnss_pr_err("Failed to suspend PCI link, err = %d\n",
|
||||
ret);
|
||||
cnss_power_off_device(plat_priv);
|
||||
break;
|
||||
default:
|
||||
cnss_pr_err("Unknown PCI device found: 0x%x\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue