Revert "net: ti cpsw ethernet: allow reading phy interface mode from DT"
[deliverable/linux.git] / drivers / net / ethernet / ti / cpsw.c
index 0cbc0e59252c52ebdc00daeec1ca7e97cd539492..df55e240374646e2f076d9b4764fab6dc0a07bab 100644 (file)
@@ -386,6 +386,11 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave,
                        mac_control |= BIT(7);  /* GIGABITEN    */
                if (phy->duplex)
                        mac_control |= BIT(0);  /* FULLDUPLEXEN */
+
+               /* set speed_in input in case RMII mode is used in 100Mbps */
+               if (phy->speed == 100)
+                       mac_control |= BIT(15);
+
                *link = true;
        } else {
                mac_control = 0;
This page took 0.030398 seconds and 5 git commands to generate.