Skip to content

Commit f19bf96

Browse files
marcanjannau
authored andcommitted
PCI: apple: Drop poll for CORE_RC_PHYIF_STAT_REFCLK
This is checking a core refclk in per-port setup which doesn't make a lot of sense, and the bootloader needs to have gone through this anyway. It doesn't work on T602x, so just drop it across the board.
1 parent e7a0ed3 commit f19bf96

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/pci/controller/pcie-apple.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,6 @@ static int apple_pcie_setup_refclk(struct apple_pcie *pcie,
473473
u32 stat;
474474
int res;
475475

476-
res = readl_relaxed_poll_timeout(pcie->base + CORE_RC_PHYIF_STAT, stat,
477-
stat & CORE_RC_PHYIF_STAT_REFCLK,
478-
100, 50000);
479-
if (res < 0)
480-
return res;
481-
482476
rmw_set(PHY_LANE_CTL_CFGACC, port->phy + PHY_LANE_CTL);
483477
rmw_set(PHY_LANE_CFG_REFCLK0REQ, port->phy + PHY_LANE_CFG);
484478

0 commit comments

Comments
 (0)