|
@@ -258,7 +258,8 @@ static int e1000_set_settings(struct net_device *netdev,
|
|
|
* When SoL/IDER sessions are active, autoneg/speed/duplex
|
|
|
* cannot be changed
|
|
|
*/
|
|
|
- if (hw->phy.ops.check_reset_block(hw)) {
|
|
|
+ if (hw->phy.ops.check_reset_block &&
|
|
|
+ hw->phy.ops.check_reset_block(hw)) {
|
|
|
e_err("Cannot change link characteristics when SoL/IDER is active.\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -1615,7 +1616,8 @@ static int e1000_loopback_test(struct e1000_adapter *adapter, u64 *data)
|
|
|
* PHY loopback cannot be performed if SoL/IDER
|
|
|
* sessions are active
|
|
|
*/
|
|
|
- if (hw->phy.ops.check_reset_block(hw)) {
|
|
|
+ if (hw->phy.ops.check_reset_block &&
|
|
|
+ hw->phy.ops.check_reset_block(hw)) {
|
|
|
e_err("Cannot do PHY loopback test when SoL/IDER is active.\n");
|
|
|
*data = 0;
|
|
|
goto out;
|