ethernet: stmmac: Reduce resume time

Beofre this patch:
rk_gmac-dwmac fe1b0000.ethernet: rk_gmac_resume+0x0/0x54 returned 0 after 12842 usecs
After this patch:
rk_gmac-dwmac fe1b0000.ethernet: rk_gmac_resume+0x0/0x54 returned 0 after 1494 usecs

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I269d6d7d1898b72f3995e58fb48b963b92ac2dab
This commit is contained in:
David Wu
2021-12-27 12:06:21 +08:00
committed by Tao Huang
parent 9d91ed824a
commit 6bb6bc2dd0
2 changed files with 2 additions and 2 deletions

View File

@@ -1878,7 +1878,7 @@ static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable)
* if (!IS_ERR(bsp_priv->clk_mac))
* clk_prepare_enable(bsp_priv->clk_mac);
*/
mdelay(5);
usleep_range(100, 200);
bsp_priv->clk_enabled = true;
}
} else {

View File

@@ -22,7 +22,7 @@ int dwmac4_dma_reset(void __iomem *ioaddr)
return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
!(value & DMA_BUS_MODE_SFT_RESET),
10000, 1000000);
500, 1000000);
}
void dwmac4_set_rx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan)