On Sun, Oct 14, 2012 at 04:23:18PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> Applied, thanks Sascha > --- > drivers/net/designware.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/net/designware.c b/drivers/net/designware.c > index 63b199f..7eadd92 100644 > --- a/drivers/net/designware.c > +++ b/drivers/net/designware.c > @@ -244,6 +244,16 @@ static void dwc_update_linkspeed(struct eth_device *edev) > conf &= ~MII_PORTSELECT; > else > conf |= MII_PORTSELECT; > + > + if ((edev->phydev->interface != PHY_INTERFACE_MODE_MII) && > + (edev->phydev->interface != PHY_INTERFACE_MODE_GMII)) { > + > + if (edev->phydev->speed == 100) > + conf |= FES_100; > + else > + conf &= ~FES_100; > + } > + > writel(conf, &mac_p->conf); > } > > -- > 1.7.10.4 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- 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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox