Commit 5e859dd5 authored by Bernard Blackham's avatar Bernard Blackham Committed by Kevin Hilman

ARM: DaVinci: fix EMAC PHY link detection

Thanks to Andrew's detective work, the issue became rather obvious.
The PHY detection code looked at the LINK register instead of the
ALIVE register for detecting the presence of a PHY. Andrew confirmed
that this patch fixed his issue.
Signed-off-by: default avatarBernard Blackham <bernard@largestprime.net>
Signed-off-by: default avatarAndrew Armstrong <andrewa@ovation.co.uk>
Signed-off-by: default avatarKevin Hilman <khilman@mvista.com>
parent 78ed3204
...@@ -347,7 +347,7 @@ void emac_mdio_finding_state(void) ...@@ -347,7 +347,7 @@ void emac_mdio_finding_state(void)
--emac_phy->timeout; --emac_phy->timeout;
} else { } else {
phy_alive_status = MDIO_REG_LINK; phy_alive_status = MDIO_REG_ALIVE;
/* Check phys based upon user mask */ /* Check phys based upon user mask */
phy_alive_status &= emac_phy->phy_mask; phy_alive_status &= emac_phy->phy_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment