Skip to content

Commit c221cbf

Browse files
Richard ZhuMani-Sadhasivam
authored andcommitted
PCI: imx6: Enable the Vaux supply if available
When the 3.3Vaux supply is present, fetch it at the probe time and keep it enabled for the entire PCIe controller lifecycle so that the link can enter L2 state and the devices can signal wakeup using either Beacon or WAKE# mechanisms. Signed-off-by: Richard Zhu <[email protected]> [mani: reworded the subject, description and error message] Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8f5ae30 commit c221cbf

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
@@ -1745,6 +1745,10 @@ static int imx_pcie_probe(struct platform_device *pdev)
17451745
pci->max_link_speed = 1;
17461746
of_property_read_u32(node, "fsl,max-link-speed", &pci->max_link_speed);
17471747

1748+
ret = devm_regulator_get_enable_optional(&pdev->dev, "vpcie3v3aux");
1749+
if (ret < 0 && ret != -ENODEV)
1750+
return dev_err_probe(dev, ret, "failed to enable Vaux supply\n");
1751+
17481752
imx_pcie->vpcie = devm_regulator_get_optional(&pdev->dev, "vpcie");
17491753
if (IS_ERR(imx_pcie->vpcie)) {
17501754
if (PTR_ERR(imx_pcie->vpcie) != -ENODEV)

0 commit comments

Comments
 (0)