net: macb: ignore tx_clk if MII is used
[linux-2.6-microblaze.git] / drivers / net / ethernet / cadence / macb_main.c
index 814a5b1..472bf8f 100644 (file)
@@ -470,6 +470,10 @@ static void macb_set_tx_clk(struct macb *bp, int speed)
        if (!bp->tx_clk || (bp->caps & MACB_CAPS_CLK_HW_CHG))
                return;
 
+       /* In case of MII the PHY is the clock master */
+       if (bp->phy_interface == PHY_INTERFACE_MODE_MII)
+               return;
+
        switch (speed) {
        case SPEED_10:
                rate = 2500000;