Skip to content

Commit

Permalink
net: stmmac: increase delay of SWR for specific PHY with lots of latency
Browse files Browse the repository at this point in the history
During suspend/resume sequence, in resume we performed software reset (SWR).
Just before SWR we performed phy_start, and sometimes phy is not completely
start when we perform it.
Need to increase delay of SWR sequence to be sure that phy start is complete.

Signed-off-by: Christophe Roullier <[email protected]>
Change-Id: I756065bc875bacc7e3900e218b6deacc5c3448da
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/142222
Reviewed-by: CITOOLS <[email protected]>
Reviewed-by: CIBUILD <[email protected]>
Reviewed-by: Alexandre TORGUE <[email protected]>
  • Loading branch information
Christophe Roullier authored and ADESTM committed Sep 6, 2019
1 parent ee1da69 commit 1f974c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int dwmac4_dma_reset(void __iomem *ioaddr)
/* DMA SW reset */
value |= DMA_BUS_MODE_SFT_RESET;
writel(value, ioaddr + DMA_BUS_MODE);
limit = 10;
limit = 100;
while (limit--) {
if (!(readl(ioaddr + DMA_BUS_MODE) & DMA_BUS_MODE_SFT_RESET))
break;
Expand Down

0 comments on commit 1f974c5

Please sign in to comment.