]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/freescale/fec_main.c
net: fec: fix phy-reset-duration limiting
[karo-tx-linux.git] / drivers / net / ethernet / freescale / fec_main.c
index b2793b91cc553e41e80170ac791d10b83f0e776d..dfcbdb7a02f681a91043d3c4e666998f72a70bbe 100644 (file)
@@ -2042,7 +2042,7 @@ static void fec_reset_phy(struct platform_device *pdev)
        of_property_read_u32(np, "phy-reset-duration", &msec);
        /* A sane reset duration should not be longer than 1s */
        if (msec > 1000)
-               msec = 1;
+               msec = 1000;
 
        phy_reset = of_get_named_gpio(np, "phy-reset-gpios", 0);
        if (!gpio_is_valid(phy_reset))