[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120626121334.GF8858@S2101-09.ap.freescale.net>
Date: Tue, 26 Jun 2012 20:13:36 +0800
From: Shawn Guo <shawn.guo@...aro.org>
To: Florian Fainelli <florian@...nwrt.org>
CC: "David S. Miller" <davem@...emloft.net>, <netdev@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 3/3] net: fec: add phy-reset-interval for device tree
probe
On Tue, Jun 26, 2012 at 01:55:05PM +0200, Florian Fainelli wrote:
> > + of_property_read_u32(np, "phy-reset-interval", &msec);
> > phy_reset = of_get_named_gpio(np, "phy-reset-gpios", 0);
> > err = gpio_request_one(phy_reset, GPIOF_OUT_INIT_LOW, "phy-reset");
> > if (err) {
> > pr_debug("FEC: failed to get gpio phy-reset: %d\n", err);
> > return;
> > }
> > - msleep(1);
> > + msleep(msec);
>
> You might want to check the value of the property here to make sure it is in
> the msleep() acceptable range.
>
Sounds good. I think a sensible reset duration should be less one
second, so let's force 1000 ms to be the possible max one?
--
Regards,
Shawn
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists