File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -178,18 +178,15 @@ static int lan87xx_config_aneg(struct phy_device *phydev)
178
178
179
179
static int lan95xx_config_aneg_ext (struct phy_device * phydev )
180
180
{
181
- int rc ;
182
-
183
- if ( phydev -> phy_id != 0x0007c0f0 ) /* not (LAN9500A or LAN9505A) */
184
- return lan87xx_config_aneg ( phydev );
181
+ if ( phydev -> phy_id == 0x0007c0f0 ) { /* LAN9500A or LAN9505A */
182
+ /* Extend Manual AutoMDIX timer */
183
+ int rc = phy_set_bits ( phydev , PHY_EDPD_CONFIG ,
184
+ PHY_EDPD_CONFIG_EXT_CROSSOVER_ );
185
185
186
- /* Extend Manual AutoMDIX timer */
187
- rc = phy_read (phydev , PHY_EDPD_CONFIG );
188
- if (rc < 0 )
189
- return rc ;
186
+ if (rc < 0 )
187
+ return rc ;
188
+ }
190
189
191
- rc |= PHY_EDPD_CONFIG_EXT_CROSSOVER_ ;
192
- phy_write (phydev , PHY_EDPD_CONFIG , rc );
193
190
return lan87xx_config_aneg (phydev );
194
191
}
195
192
You can’t perform that action at this time.
0 commit comments