PCI: dw: rockchip: Fix s2r failure

Before commit 7f84caccd0 ("PCI: dw: rockchip: Define IO and Host
initialization interfaces"), ret is getting from rk_pcie_disable_power()
which should never fail actually. Now the final ret is getting from
phy_validate() which could return -EOPNOTSUPP. But we didn't care about
it if phy_validate() isn't implemented. So we see:

[   13.573777] rk-pcie fe150000.pcie: PM: dpm_run_callback(): genpd_suspend_noirq+0x0/0x60 returns -95
[   13.573800] rk-pcie fe150000.pcie: PM: failed to suspend async: error -95

Fix it by return zero to restore the previous behaviour.

Fixes: 7f84caccd0 ("PCI: dw: rockchip: Define IO and Host initialization interfaces")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0c7c858937272f2b09ba4ae79c0a68c7a633ced0
This commit is contained in:
Shawn Lin
2024-12-09 16:50:29 +08:00
committed by Tao Huang
parent 38c677dda2
commit bd84eb0c8d

View File

@@ -1975,7 +1975,7 @@ no_l2:
rk_pcie->in_suspend = true;
return ret;
return 0;
}
static int __maybe_unused rockchip_dw_pcie_resume(struct device *dev)