mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
sungem: Fix Serdes detection.
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>
This commit is contained in:
parent
f99b4a0284
commit
e54d5512b6
1 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue