Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e54d5512 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent f99b4a02
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2062,6 +2062,14 @@ static int gem_check_invariants(struct gem *gp)
		mif_cfg &= ~MIF_CFG_PSELECT;
		writel(mif_cfg, gp->regs + MIF_CFG);
	} else {
#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 ||