From: David Bauer Date: Mon, 15 Jun 2020 18:41:06 +0000 (+0200) Subject: ath79: ag71xx: don't warn on RGMII_RXID and RGMII_TXID X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fa412c9354de243e928812cc0b6dcaa0d5213ea5;p=openwrt%2Fstaging%2Fzorun.git ath79: ag71xx: don't warn on RGMII_RXID and RGMII_TXID 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 --- diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 2c9777ba53..d611007a86 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -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: