Make sure *some* edc is setup even for an unknown transceiver (assume
it is optical).
This commit is contained in:
parent
7ead19d4a8
commit
1fa10c920e
@ -1270,7 +1270,7 @@ static int ael2005_reset(struct cphy *phy, int wait)
|
||||
return err;
|
||||
phy->modtype = (u8)err;
|
||||
|
||||
if (err == phy_modtype_none || err == phy_modtype_unknown)
|
||||
if (err == phy_modtype_none)
|
||||
err = 0;
|
||||
else if (err == phy_modtype_twinax || err == phy_modtype_twinax_long)
|
||||
err = ael2005_setup_twinax_edc(phy, err);
|
||||
@ -1981,7 +1981,7 @@ static int ael2020_reset(struct cphy *phy, int wait)
|
||||
if (err < 0)
|
||||
return err;
|
||||
phy->modtype = (u8)err;
|
||||
if (err == phy_modtype_none || err == phy_modtype_unknown)
|
||||
if (err == phy_modtype_none)
|
||||
err = 0;
|
||||
else if (err == phy_modtype_twinax || err == phy_modtype_twinax_long)
|
||||
err = ael2020_setup_twinax_edc(phy, err);
|
||||
|
Loading…
Reference in New Issue
Block a user