Skip to content

Commit 9123157

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
PCI: qcom-ep: Disable resources unconditionally during PERST# assert
All EP specific resources are enabled during PERST# deassert. As a counter operation, all resources should be disabled during PERST# assert. There is no point in skipping that if the link was not enabled. This will also result in enablement of the resources twice if PERST# got deasserted again. So remove the check from qcom_pcie_perst_assert() and disable all the resources unconditionally. Fixes: f55fee5 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Link: https://lore.kernel.org/linux-pci/[email protected] Tested-by: Niklas Cassel <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Niklas Cassel <[email protected]>
1 parent c71b5eb commit 9123157

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/pci/controller/dwc/pcie-qcom-ep.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,6 @@ static int qcom_pcie_perst_deassert(struct dw_pcie *pci)
521521
static void qcom_pcie_perst_assert(struct dw_pcie *pci)
522522
{
523523
struct qcom_pcie_ep *pcie_ep = to_pcie_ep(pci);
524-
struct device *dev = pci->dev;
525-
526-
if (pcie_ep->link_status == QCOM_PCIE_EP_LINK_DISABLED) {
527-
dev_dbg(dev, "Link is already disabled\n");
528-
return;
529-
}
530524

531525
dw_pcie_ep_cleanup(&pci->ep);
532526
qcom_pcie_disable_resources(pcie_ep);

0 commit comments

Comments
 (0)