mirror of
https://github.com/AuxXxilium/synology-igc.git
synced 2024-11-23 23:11:07 +07:00
igc: Remove phy->type checking
backport from 47bca7de6a
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
3dff3bb13d
commit
16d3d2cf00
15
igc_main.c
15
igc_main.c
@ -4142,17 +4142,10 @@ bool igc_has_link(struct igc_adapter *adapter)
|
||||
* false until the igc_check_for_link establishes link
|
||||
* for copper adapters ONLY
|
||||
*/
|
||||
switch (hw->phy.media_type) {
|
||||
case igc_media_type_copper:
|
||||
if (!hw->mac.get_link_status)
|
||||
return true;
|
||||
hw->mac.ops.check_for_link(hw);
|
||||
link_active = !hw->mac.get_link_status;
|
||||
break;
|
||||
default:
|
||||
case igc_media_type_unknown:
|
||||
break;
|
||||
}
|
||||
if (!hw->mac.get_link_status)
|
||||
return true;
|
||||
hw->mac.ops.check_for_link(hw);
|
||||
link_active = !hw->mac.get_link_status;
|
||||
|
||||
if (hw->mac.type == igc_i225 &&
|
||||
hw->phy.id == I225_I_PHY_ID) {
|
||||
|
Loading…
Reference in New Issue
Block a user