Re: [PATCH] net phy: poll for a link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20:06 Wed 24 Oct     , Sascha Hauer wrote:
> Since we have phylib we have no instance which polls for a link. This
> means that network boot often bails out after a powercycle or phy reset.
> This changes the link status behaviour to:
> 
> - Always check for a link if the last link test was unsuccesful
> - If the last check was succesful, check for a link when the last
>   check is longer than 5 seconds ago
> - Try to get a link for 5 seconds.
5 seconds is too long

and check the link is wrong you need to check the autoneg
the link may be down because no cable

Here we need to check the autoneg is finished
and the phy is up

so use phy_aneg_done and genphy_config_aneg is for this

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux