From: Magnus Damm <[email protected]>

According to the data sheet the Ethernet-AVB hardware in R-Car Gen3
and R-Car Gen2 SoCs do not support half duplex operation. So update
the driver to mark 100Mbit and 1Gbps HDX as unsupported.

Not-Yet-Signed-off-by: Magnus Damm <[email protected]>
Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper")
Reviewed-by: Sergei Shtylyov <[email protected]>
---

 Written on top of next-20180820

 drivers/net/ethernet/renesas/ravb_main.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- 0001/drivers/net/ethernet/renesas/ravb_main.c
+++ work/drivers/net/ethernet/renesas/ravb_main.c       2018-08-20 
23:42:46.670859449 +0900
@@ -1076,8 +1076,9 @@ static int ravb_phy_init(struct net_devi
                netdev_info(ndev, "limited PHY to 100Mbit/s\n");
        }
 
-       /* 10BASE is not supported */
-       phydev->supported &= ~PHY_10BT_FEATURES;
+       /* Neither 10BASE nor half duplex are supported */
+       phydev->supported &= ~(PHY_10BT_FEATURES | SUPPORTED_100baseT_Half |
+                              SUPPORTED_1000baseT_Half);
 
        phy_attached_info(phydev);
 

Reply via email to