Skip to content

Commit efe4466

Browse files
committed
Merge branch 'pci/controller/imx6'
- Enable the 3.3V Vaux supply if available so devices can request wakeup with either Beacon or WAKE# (Richard Zhu) * pci/controller/imx6: PCI: imx6: Enable the Vaux supply if available
2 parents 5611712 + c221cbf commit efe4466

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pci/controller/dwc/pci-imx6.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,10 @@ static int imx_pcie_probe(struct platform_device *pdev)
17411741
pci->max_link_speed = 1;
17421742
of_property_read_u32(node, "fsl,max-link-speed", &pci->max_link_speed);
17431743

1744+
ret = devm_regulator_get_enable_optional(&pdev->dev, "vpcie3v3aux");
1745+
if (ret < 0 && ret != -ENODEV)
1746+
return dev_err_probe(dev, ret, "failed to enable Vaux supply\n");
1747+
17441748
imx_pcie->vpcie = devm_regulator_get_optional(&pdev->dev, "vpcie");
17451749
if (IS_ERR(imx_pcie->vpcie)) {
17461750
if (PTR_ERR(imx_pcie->vpcie) != -ENODEV)

0 commit comments

Comments
 (0)