[PATCH 5/7] net mii: Add mii_open/mii_close functions

Sascha Hauer s.hauer at pengutronix.de
Sun Apr 15 06:01:39 EDT 2012


On Sun, Apr 15, 2012 at 06:12:23AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:27 Sat 14 Apr     , Sascha Hauer wrote:
> > On Sat, Apr 14, 2012 at 12:46:58PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > On 15:54 Fri 13 Apr     , Sascha Hauer wrote:
> > > > Some phys need board specific fixups. To be able to do this
> > > > from board code add mii_open/mii_close functions so that the
> > > > board can use the regular mii_read/mii_write functions.
> > > I don't like this
> > > 
> > > we can import the phylib from the kernel
> > 
> > I'm afraid what I want to do here is a board specific hack to a generic
> > phy. Unfortunately this is a top secret product without datasheet
> > available :(
> so how are you going to describe this with DT boot?

Don't know. The kernel does not seem to have this special handling
currently, I suspect that the ethernet driver won't work if the
bootloader skips this setup, but I would have to test it.

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 |



More information about the barebox mailing list