From: Daniel Gimpelevich Date: Wed, 26 Jun 2019 19:39:37 +0000 (-0700) Subject: ath79: support "rgmii-id" PHY mode in ag71xx X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=abf09cfddb12cca0597dad08e6f3ac745e16ef1d;p=openwrt%2Fstaging%2Fsvanheule.git ath79: support "rgmii-id" PHY mode in ag71xx The ag71xx code did not include a case for the "rgmii-id" PHY mode in the code. There are devices that need this mode, so I'm adding it. Signed-off-by: Daniel Gimpelevich --- 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 bcc9e22713..5847a6bf5c 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 @@ -581,6 +581,7 @@ static void ath79_mii0_ctrl_set_if(struct ag71xx *ag) mii_if = AR71XX_MII0_CTRL_IF_GMII; break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_ID: mii_if = AR71XX_MII0_CTRL_IF_RGMII; break; case PHY_INTERFACE_MODE_RMII: @@ -603,6 +604,7 @@ static void ath79_mii1_ctrl_set_if(struct ag71xx *ag) mii_if = AR71XX_MII1_CTRL_IF_RMII; break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_ID: mii_if = AR71XX_MII1_CTRL_IF_RGMII; break; default: