/* Figure out if BCM5482 is in serdes or copper mode and determine link configuration accordingly  */
static int bcm5482_startup(struct phy_device *phydev)
/* Figure out if BCM5482 is in serdes or copper mode and determine link configuration accordingly  */
static int bcm5482_startup(struct phy_device *phydev)
{
	int ret;
	if (bcm5482_is_serdes(phydev)) {
		bcm5482_parse_serdes_sr(phydev);
		phydev->port = PORT_FIBRE;
		return 0;
	}
	ret = genphy_update_link(phydev);
	if (ret)
		return ret;
	return bcm54xx_parse_status(phydev);
}