Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c623305b authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1d532d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -730,7 +730,8 @@ static void rtl_tx_performance_tweak(struct rtl8169_private *tp, u16 force)
static bool rtl_is_8168evl_up(struct rtl8169_private *tp)
static bool rtl_is_8168evl_up(struct rtl8169_private *tp)
{
{
	return tp->mac_version >= RTL_GIGA_MAC_VER_34 &&
	return tp->mac_version >= RTL_GIGA_MAC_VER_34 &&
	       tp->mac_version != RTL_GIGA_MAC_VER_39;
	       tp->mac_version != RTL_GIGA_MAC_VER_39 &&
	       tp->mac_version <= RTL_GIGA_MAC_VER_51;
}
}


static bool rtl_supports_eee(struct rtl8169_private *tp)
static bool rtl_supports_eee(struct rtl8169_private *tp)