summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-imx6.c
diff options
context:
space:
mode:
authorRichard Zhu <hongxing.zhu@nxp.com>2020-04-08 14:39:11 +0800
committerRichard Zhu <hongxing.zhu@nxp.com>2020-04-08 16:16:02 +0800
commitfb8a27da453c53baa87e46afd10a76df6902d912 (patch)
tree8b468118dfa050341b5f96bf275d25e522aa8696 /drivers/pci/controller/dwc/pci-imx6.c
parent639f4b020f43a6e852a28803a8cd252e78d2d822 (diff)
MLK-23757 PCI: imx: remove the pd link automatically
Replace DL_FLAG_STATELESS by DL_FLAG_AUTOREMOVE_CONSUMER. Thus, the link can be removed automatically on PCIe driver unbind, and the PDs of PCIe can be turned off accordingly. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Acked-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-imx6.c')
-rw-r--r--drivers/pci/controller/dwc/pci-imx6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 1e5ee18a3bc0..8a23e7e1c7be 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -618,7 +618,7 @@ static int imx6_pcie_attach_pd(struct device *dev)
if (!imx6_pcie->pd_pcie)
return 0;
link = device_link_add(dev, imx6_pcie->pd_pcie,
- DL_FLAG_STATELESS |
+ DL_FLAG_AUTOREMOVE_CONSUMER |
DL_FLAG_PM_RUNTIME |
DL_FLAG_RPM_ACTIVE);
if (!link) {
@@ -631,7 +631,7 @@ static int imx6_pcie_attach_pd(struct device *dev)
return PTR_ERR(imx6_pcie->pd_pcie_phy);
link = device_link_add(dev, imx6_pcie->pd_pcie_phy,
- DL_FLAG_STATELESS |
+ DL_FLAG_AUTOREMOVE_CONSUMER |
DL_FLAG_PM_RUNTIME |
DL_FLAG_RPM_ACTIVE);
if (!link) {
@@ -658,7 +658,7 @@ static int imx6_pcie_attach_pd(struct device *dev)
return PTR_ERR(imx6_pcie->pd_hsio_gpio);
link = device_link_add(dev, imx6_pcie->pd_hsio_gpio,
- DL_FLAG_STATELESS |
+ DL_FLAG_AUTOREMOVE_CONSUMER |
DL_FLAG_PM_RUNTIME |
DL_FLAG_RPM_ACTIVE);
if (!link) {