mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
msm: pcie: check return value when enabling PCIe GDSC
When enabling GDSC, it is required to check the return value of the API. Add a proper check and print for the return value. Change-Id: I4d5a1a660bed6a7f6d72a5d728c36fc54fec7c68 Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
24d13e9751
commit
01363fc77e
1 changed files with 5 additions and 1 deletions
|
|
@ -6640,7 +6640,11 @@ static int msm_pcie_drv_resume(struct msm_pcie_dev_t *pcie_dev)
|
|||
|
||||
msm_pcie_vreg_init(pcie_dev);
|
||||
|
||||
regulator_enable(pcie_dev->gdsc);
|
||||
ret = regulator_enable(pcie_dev->gdsc);
|
||||
if (ret)
|
||||
PCIE_ERR(pcie_dev,
|
||||
"PCIe: RC%d: failed to enable GDSC: ret %d\n",
|
||||
pcie_dev->rc_idx, ret);
|
||||
|
||||
if (pcie_dev->icc_path) {
|
||||
ret = icc_set_bw(pcie_dev->icc_path, ICC_AVG_BW, ICC_PEAK_BW);
|
||||
|
|
|
|||
Loading…
Reference in a new issue