Skip to content

Commit

Permalink
sungem: Fix Serdes detection.
Browse files Browse the repository at this point in the history
We need to look for the 'shared-pins' property to get
this right.

Based upon a patch by Hermann Lauer.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 17, 2009
1 parent f99b4a0 commit e54d551
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/net/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,15 @@ static int gem_check_invariants(struct gem *gp)
mif_cfg &= ~MIF_CFG_PSELECT;
writel(mif_cfg, gp->regs + MIF_CFG);
} else {
gp->phy_type = phy_serialink;
#ifdef CONFIG_SPARC
const char *p;

p = of_get_property(gp->of_node, "shared-pins", NULL);
if (p && !strcmp(p, "serdes"))
gp->phy_type = phy_serdes;
else
#endif
gp->phy_type = phy_serialink;
}
if (gp->phy_type == phy_mii_mdio1 ||
gp->phy_type == phy_mii_mdio0) {
Expand Down

0 comments on commit e54d551

Please sign in to comment.