ath79: ag71xx: don't warn on RGMII_RXID and RGMII_TXID
authorDavid Bauer <mail@david-bauer.net>
Mon, 15 Jun 2020 18:41:06 +0000 (20:41 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 15 Jun 2020 18:41:06 +0000 (20:41 +0200)
Currently, ag71xx will trigger a warning when TX xor RX-Delay modes are
enabled.

Handle them identical to the already implemented RGMII modes, as they
are only different for the attached PHY.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index 2c9777ba536df5ed513d5a61d1781b653890bf15..d611007a86a5d9b1a5f0290174655aaa336b64ae 100644 (file)
@@ -688,6 +688,8 @@ static void ath79_mii0_ctrl_set_if(struct ag71xx *ag)
                break;
        case PHY_INTERFACE_MODE_RGMII:
        case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                mii_if = AR71XX_MII0_CTRL_IF_RGMII;
                break;
        case PHY_INTERFACE_MODE_RMII:
@@ -711,6 +713,8 @@ static void ath79_mii1_ctrl_set_if(struct ag71xx *ag)
                break;
        case PHY_INTERFACE_MODE_RGMII:
        case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                mii_if = AR71XX_MII1_CTRL_IF_RGMII;
                break;
        default: