netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device
@ 2025-02-06 15:19 Piotr Kwapulinski
  2025-02-07 10:25 ` Simon Horman
  2025-02-12  8:09 ` [Intel-wired-lan] " R, Bharath
  0 siblings, 2 replies; 3+ messages in thread
From: Piotr Kwapulinski @ 2025-02-06 15:19 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, Piotr Kwapulinski, Dan Carpenter, Michal Swiatkowski,
	Przemek Kitszel

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")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/e7d73b32-f12a-49d1-8b60-1ef83359ec13@stanley.mountain/
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
index 683c668..cb07ecd 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
@@ -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);
 }
 
 /**
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device
  2025-02-06 15:19 [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device Piotr Kwapulinski
@ 2025-02-07 10:25 ` Simon Horman
  2025-02-12  8:09 ` [Intel-wired-lan] " R, Bharath
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-02-07 10:25 UTC (permalink / raw)
  To: Piotr Kwapulinski
  Cc: intel-wired-lan, netdev, Dan Carpenter, Michal Swiatkowski,
	Przemek Kitszel

On Thu, Feb 06, 2025 at 04:19:20PM +0100, Piotr Kwapulinski wrote:
> 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")
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes: https://lore.kernel.org/all/e7d73b32-f12a-49d1-8b60-1ef83359ec13@stanley.mountain/
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>

Reviewed-by: Simon Horman <horms@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [Intel-wired-lan] [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device
  2025-02-06 15:19 [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device Piotr Kwapulinski
  2025-02-07 10:25 ` Simon Horman
@ 2025-02-12  8:09 ` R, Bharath
  1 sibling, 0 replies; 3+ messages in thread
From: R, Bharath @ 2025-02-12  8:09 UTC (permalink / raw)
  To: Kwapulinski, Piotr, intel-wired-lan@lists.osuosl.org
  Cc: netdev@vger.kernel.org, Kwapulinski, Piotr, Dan Carpenter,
	Michal Swiatkowski, Kitszel, Przemyslaw

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Piotr Kwapulinski
> Sent: Thursday, February 6, 2025 8:49 PM
> To: intel-wired-lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; Kwapulinski, Piotr
> <piotr.kwapulinski@intel.com>; Dan Carpenter <dan.carpenter@linaro.org>;
> Michal Swiatkowski <michal.swiatkowski@linux.intel.com>; Kitszel,
> Przemyslaw <przemyslaw.kitszel@intel.com>
> 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")
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes: https://lore.kernel.org/all/e7d73b32-f12a-49d1-8b60-
> 1ef83359ec13@stanley.mountain/
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Tested-by: Bharath R <bharath.r@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-12  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 15:19 [PATCH iwl-net] ixgbe: fix media cage present detection for E610 device Piotr Kwapulinski
2025-02-07 10:25 ` Simon Horman
2025-02-12  8:09 ` [Intel-wired-lan] " R, Bharath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).