net: ti: cpsw: fix mac tx internal delay for rgmii-rxid mode
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 19 Sep 2019 08:16:40 +0000 (11:16 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 3 Nov 2019 14:36:06 +0000 (09:36 -0500)
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 <grygorii.strashko@ti.com>
drivers/net/ti/cpsw.c

index 24265360e643d4a428f3f7ebf9c84c33243c5266..408983401f451efdb40e6c693682753f348371e5 100644 (file)
@@ -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;