]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: fec: fix phy-reset-duration limiting
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 14:31:30 +0000 (16:31 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 25 Oct 2013 10:24:07 +0000 (12:24 +0200)
one second are 1000 milliseconds, not just '1'

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))