]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: eqos: Reduce the MDIO wait time
authorYe Li <ye.li@nxp.com>
Mon, 28 Dec 2020 12:15:10 +0000 (20:15 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:15 +0000 (14:01 +0530)
Current MDIO wait time is too long, which introduce long delay when
PHY negotiation register checking. Reduce it to 10us

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Fugang Duan <Fugang.duan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/dwc_eth_qos.c

index 944412958d69961baf4bcd31504aab8b8f6ea7c1..e8242ca4e1b223a7f4de716e9902d449a70e1878 100644 (file)
@@ -2127,7 +2127,7 @@ static struct eqos_ops eqos_imx_ops = {
 
 struct eqos_config __maybe_unused eqos_imx_config = {
        .reg_access_always_ok = false,
-       .mdio_wait = 10000,
+       .mdio_wait = 10,
        .swr_wait = 50,
        .config_mac = EQOS_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB,
        .config_mac_mdio = EQOS_MAC_MDIO_ADDRESS_CR_250_300,