From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TJ5o1-0004CX-GC for barebox@lists.infradead.org; Tue, 02 Oct 2012 16:58:50 +0000 Date: Tue, 2 Oct 2012 18:58:47 +0200 From: Sascha Hauer Message-ID: <20121002165847.GA1322@pengutronix.de> References: <20120924093122.GD26553@game.jcrosoft.org> <506AFDEB.4010805@ge.com> <20121002160421.GA26553@game.jcrosoft.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20121002160421.GA26553@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 0/1 v7] net: introduce phylib To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org On Tue, Oct 02, 2012 at 06:04:21PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > The mdiobus_scan performed when registering the mdio bus at probe time > > has an impact on boot time. I have a 85xx board whose PHY needs 450ms to > > be ready for access. > > > > I will send a patch for the gianfar driver to register the mdio bus only > > when the device is open. > That why I did at the first open before > > and I guess your case is not the only one > > I do not like the idea to register the bus later > > we need to have defer probe Yes, that's probably the best. Normally, when a phy address is given, we do not have to scan the bus at all, we only have to do it when -1 is given as phy address. Another idea would be to pass a bitmask for valid phy addresses rather than a number. Maybe some board has a phy at a known address and another one at some to be detected address. Then for one phy the mask would be 0x00010000 and for the other 0xfffeffff. Given that this would be more effort to change all the platform data we can do this should the need arise. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox