Skip to content

Commit b1e44b4

Browse files
pkwapulikuba-moo
authored andcommitted
ixgbe: fix media cage present detection for E610 device
The commit 23c0e5a ("ixgbe: Add link management support for E610 device") introduced incorrect checking of media cage presence for E610 device. Fix it. Fixes: 23c0e5a ("ixgbe: Add link management support for E610 device") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Reviewed-by: Michal Swiatkowski <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Signed-off-by: Piotr Kwapulinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Bharath R <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c6124f6 commit b1e44b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
11221122
* returns error (ENOENT), then no cage present. If no cage present then
11231123
* connection type is backplane or BASE-T.
11241124
*/
1125-
return ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL);
1125+
return !ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL);
11261126
}
11271127

11281128
/**

0 commit comments

Comments
 (0)