u-boot/drivers/net/phy
Wolfgang Denk 0dcfb0fcb8 Revert "phylib: remove a couple of redundant code lines"
This reverts commit 041c542219.

The lines removed by this commit weren't redundant. The logic is (and
probably should be better commented):

Find the intersection of the advertised capabilities of both sides of
the link (lpa).
From that intersection, find the highest capability we can run at
(that will be the negotiated link).

Now imagine that the intersection (lpa) is (LPA_100HALF | LPA_10FULL).

The code will now set phydev->speed to 100, and phydev->duplex to 1,
but this link does not support 100FULL.

Kudos to Andy Fleming <afleming@gmail.com> for binging this to
attention and for the explanation.

Signed-off-by: Wolfgang Denk <wd@denx.de>
2011-09-28 21:02:43 +02:00
..
Makefile phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
atheros.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
broadcom.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
davicom.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
generic_10g.c phylib: Detect link on 10G devices correctly 2011-07-27 23:21:25 +02:00
lxt.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
marvell.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
micrel.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
miiphybb.c Replace CONFIG_RELOC_FIXUP_WORKS by CONFIG_NEEDS_MANUAL_RELOC 2010-10-29 21:32:07 +02:00
mv88e61xx.c miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
mv88e61xx.h net: phy: bugfixes: mv88E61xx multichip addressing support 2009-07-22 22:53:45 -07:00
natsemi.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
phy.c Revert "phylib: remove a couple of redundant code lines" 2011-09-28 21:02:43 +02:00
realtek.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
teranetics.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
vitesse.c phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00