pci: msm: Enable or disable GDSC PHY regulator only when gdsc_phy exits
In some targets like sdxbaagha only GDSC core exits and no separate GDSC phy is used. So we need to make sure that enabling or disabling the regulator for GDSC phy is only when gdsc-phy node exits in device tree. Change-Id: Ie82a9aa8a952de561c4da1fae8d63d7399fef0bf Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com> Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
This commit is contained in:
parent
f3aa2c3989
commit
ad040b51af
@ -4541,11 +4541,11 @@ static int msm_pcie_get_vreg(struct msm_pcie_dev_t *pcie_dev)
|
||||
PCIE_ERR(pcie_dev, "PCIe: RC%d: Failed to get %s GDSC-PHY:%ld\n",
|
||||
pcie_dev->rc_idx, pdev->name,
|
||||
PTR_ERR(pcie_dev->gdsc_phy));
|
||||
if (PTR_ERR(pcie_dev->gdsc_phy) == -EPROBE_DEFER)
|
||||
if (PTR_ERR(pcie_dev->gdsc_phy) == -EPROBE_DEFER) {
|
||||
PCIE_DBG(pcie_dev, "PCIe: EPROBE_DEFER for %s GDSC-PHY\n",
|
||||
pdev->name);
|
||||
if (!pcie_dev->pcie_sm)
|
||||
return PTR_ERR(pcie_dev->gdsc_phy);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user