Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hongxing.zhu@nxp.com>
[mani: reworded the subject, description and error message]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250820022328.2143374-1-hongxing.zhu@nxp.com

authored by

Richard Zhu and committed by
Manivannan Sadhasivam
c221cbf8 8f5ae30d

+4
+4
drivers/pci/controller/dwc/pci-imx6.c
··· 1745 1745 pci->max_link_speed = 1; 1746 1746 of_property_read_u32(node, "fsl,max-link-speed", &pci->max_link_speed); 1747 1747 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 + 1748 1752 imx_pcie->vpcie = devm_regulator_get_optional(&pdev->dev, "vpcie"); 1749 1753 if (IS_ERR(imx_pcie->vpcie)) { 1750 1754 if (PTR_ERR(imx_pcie->vpcie) != -ENODEV)