]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net, phy, cpsw: fix gigabit register access
authorHeiko Schocher <hs@denx.de>
Tue, 23 Jul 2013 13:32:36 +0000 (15:32 +0200)
committerTom Rini <trini@ti.com>
Tue, 30 Jul 2013 13:21:42 +0000 (09:21 -0400)
commitf6d1f6e4a58edae4776937647381a43fea5e83a5
treee9c2f7d57da0fb9740a105357f136cc25b12d706
parent486da22967474f3f72717883a4315fda46346897
net, phy, cpsw: fix gigabit register access

accessing a lan9303 switch with the cpsw driver results in wrong
speed detection, as the switch sets the BMSR_ERCAP in BMSR
register, and follow read of the MII_STAT1000 register fails, as
the switch does not support it. Current code did not check,
if a phy_read() fails ... fix this.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
boards.cfg
drivers/net/cpsw.c
drivers/net/phy/phy.c