[PATCH 0/1 v7] net: introduce phylib

Renaud Barbier renaud.barbier at ge.com
Tue Oct 2 10:44:59 EDT 2012


On 24/09/12 10:31, Jean-Christophe PLAGNIOL-VILLARD wrote:

> 
> Adapt phylib from linux
> 
> This will allow to have
>  - phy drivers
>  - to only connect the phy at then opening of the device
>  - if the phy is not ready or down fail on open
> 
> Same behaviour as in linux and will allow to share code and simplify porting.
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> 
> ----------------------------------------------------------------
> Jean-Christophe PLAGNIOL-VILLARD (1):
>       net: introduce phylib
> 
>  arch/arm/boards/freescale-mx6-arm2/board.c      |   43 ++---
>  arch/arm/boards/freescale-mx6-sabrelite/board.c |   40 ++--
>  arch/arm/configs/phycard_a_l1_defconfig         |    2 +-
>  arch/arm/configs/tx51stk5_defconfig             |    2 +-
>  arch/ppc/boards/pcm030/pcm030.c                 |    4 +-
>  arch/ppc/mach-mpc5xxx/include/mach/fec.h        |   14 --
>  drivers/net/Kconfig                             |   30 +--
>  drivers/net/Makefile                            |    2 +-
>  drivers/net/altera_tse.c                        |   48 +++--
>  drivers/net/altera_tse.h                        |    3 +-
>  drivers/net/at91_ether.c                        |   49 ++---
>  drivers/net/designware.c                        |   62 ++++---
>  drivers/net/dm9k.c                              |   50 +++--
>  drivers/net/ep93xx.c                            |   35 ++--
>  drivers/net/ep93xx.h                            |    2 +-
>  drivers/net/fec_imx.c                           |   89 +++++----
>  drivers/net/fec_imx.h                           |    6 +-
>  drivers/net/fec_mpc5200.c                       |   58 +++---
>  drivers/net/fec_mpc5200.h                       |    4 +-
>  drivers/net/gianfar.c                           |   61 +++---
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.





More information about the barebox mailing list