From: Grygorii Strashko Date: Thu, 19 Sep 2019 08:16:40 +0000 (+0300) Subject: net: ti: cpsw: fix mac tx internal delay for rgmii-rxid mode X-Git-Tag: v2020.01-rc2~20^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3c867a217b021e92f5e3afd2bb1415ffd28d0d7;p=oweals%2Fu-boot.git net: ti: cpsw: fix mac tx internal delay for rgmii-rxid mode Now TI CPSW driver will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by keeping default value (enabled) for MAC TX internal delay when "rgmii-rxid" interface mode is selected. Signed-off-by: Grygorii Strashko --- diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 24265360e6..408983401f 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -1072,10 +1072,10 @@ static void cpsw_gmii_sel_am3352(struct cpsw_priv *priv, break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_RXID: mode = AM33XX_GMII_SEL_MODE_RGMII; break; case PHY_INTERFACE_MODE_RGMII_ID: - case PHY_INTERFACE_MODE_RGMII_RXID: case PHY_INTERFACE_MODE_RGMII_TXID: mode = AM33XX_GMII_SEL_MODE_RGMII; rgmii_id = true;