Skip to content

Commit c623305

Browse files
hkallweitdavem330
authored andcommitted
r8169: restrict rtl_is_8168evl_up to RTL8168 chip versions
Extend helper rtl_is_8168evl_up to properly work once we add mac version numbers >51 for RTL8125. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c1d532d commit c623305

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ static void rtl_tx_performance_tweak(struct rtl8169_private *tp, u16 force)
730730
static bool rtl_is_8168evl_up(struct rtl8169_private *tp)
731731
{
732732
return tp->mac_version >= RTL_GIGA_MAC_VER_34 &&
733-
tp->mac_version != RTL_GIGA_MAC_VER_39;
733+
tp->mac_version != RTL_GIGA_MAC_VER_39 &&
734+
tp->mac_version <= RTL_GIGA_MAC_VER_51;
734735
}
735736

736737
static bool rtl_supports_eee(struct rtl8169_private *tp)

0 commit comments

Comments
 (0)