Skip to contentSkip to conversation

ixgbe: fix media cage present detection for E610 device

PATCH In review Piotr Kwapulinski 3 participants 3 messages Feb 6, 2025 – Feb 12, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: fix media cage present detection for E610 device

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect checking of media cage presence for E610 device. Fix it.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +1 -1
index 683c668..cb07ecd 100644
@@ -1122,7 +1122,7 @@ static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
 	 * returns error (ENOENT), then no cage present. If no cage present then
 	 * connection type is backplane or BASE-T.
 	 */
-	return ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL);
+	return !ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL);
 }
 
 /**
Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Piotr Kwapulinski

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect checking of media cage presence for E610 device. Fix it.

Tested-by on v1 1/1
#2 lore raw
In reply to Piotr Kwapulinski
Quoted 19 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Thursday, February 6, 2025 8:49 PM
To: [email protected]
Cc: [email protected]; Kwapulinski, Piotr <[email protected]>; Dan Carpenter <[email protected]>; Michal Swiatkowski <[email protected]>; Kitszel, Przemyslaw <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect checking of media cage presence for E610 device. Fix it.

Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")
Quoted 8 lines

[email protected]/

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)