diff options
| author | Neil Armstrong <[email protected]> | 2021-09-08 14:32:12 +0200 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2021-10-07 10:14:50 +0200 |
| commit | d6c10360dcb4c64ba0877f07bd860dc70db86ee8 (patch) | |
| tree | 9543bf6404b50e04250a5770c66948f785da560e /drivers | |
| parent | ea36f110f72bc7557ff8935799f35a48f5c928d0 (diff) | |
pci: pcie_dw_meson: fix usb fail when pci link fails to go up
On Amlogic A311D, when the PCIe link fails disabling the related clocks
makes USB fail. For an unknown reason, this doesn happen on the S905D3 SoC.
Mimic the Linux behavior by not considering a link failure a probe failure,
and continue even if the PCIe link is down.
Reported-by: Art Nikpal <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/pci/pcie_dw_meson.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/pci/pcie_dw_meson.c b/drivers/pci/pcie_dw_meson.c index 0525ecbea64..07da9fa5332 100644 --- a/drivers/pci/pcie_dw_meson.c +++ b/drivers/pci/pcie_dw_meson.c @@ -319,15 +319,9 @@ static int meson_pcie_init_port(struct udevice *dev) pcie_dw_setup_host(&priv->dw); - ret = meson_pcie_link_up(priv, LINK_SPEED_GEN_2); - if (ret < 0) - goto err_link_up; + meson_pcie_link_up(priv, LINK_SPEED_GEN_2); return 0; -err_link_up: - clk_disable(&priv->clk_port); - clk_disable(&priv->clk_general); - clk_disable(&priv->clk_pclk); err_deassert_bulk: reset_assert_bulk(&priv->rsts); err_power_off_phy: |
