Skip to content

Commit c3a0f38

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. Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent a9ef49a commit c3a0f38

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
@@ -475,12 +475,6 @@ static int apple_pcie_setup_refclk(struct apple_pcie *pcie,
475475
u32 stat;
476476
int res;
477477

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

0 commit comments

Comments
 (0)