* [PATCH v1 1/1] net/e1000/base: fix link power down
@ 2024-05-14 15:17 Anatoly Burakov
2024-05-29 13:34 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Anatoly Burakov @ 2024-05-14 15:17 UTC (permalink / raw)
To: dev, Sasha Neftin, Jeff Kirsher, Guinan Sun, Wei Zhao; +Cc: stable
Current code is a result of work to reduce duplication between various
device models. However, the logic that was replaced did not exactly
match the new logic, and as a result the link power down was not
working correctly for some NICs, and the link remained up even when
the interface is down.
Fix it to correctly power down the link under all circumstances that
were supported by old logic.
Fixes: 44dddd14059f ("net/e1000/base: remove duplicated codes")
Cc: guinanx.sun@intel.com
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
drivers/net/e1000/base/e1000_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/e1000/base/e1000_base.c b/drivers/net/e1000/base/e1000_base.c
index ab73e1e59e..3ec32e7240 100644
--- a/drivers/net/e1000/base/e1000_base.c
+++ b/drivers/net/e1000/base/e1000_base.c
@@ -107,7 +107,7 @@ void e1000_power_down_phy_copper_base(struct e1000_hw *hw)
return;
/* If the management interface is not enabled, then power down */
- if (phy->ops.check_reset_block(hw))
+ if (!(e1000_enable_mng_pass_thru(hw) || phy->ops.check_reset_block(hw)))
e1000_power_down_phy_copper(hw);
}
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] net/e1000/base: fix link power down
2024-05-14 15:17 [PATCH v1 1/1] net/e1000/base: fix link power down Anatoly Burakov
@ 2024-05-29 13:34 ` Bruce Richardson
2024-05-29 13:35 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2024-05-29 13:34 UTC (permalink / raw)
To: Anatoly Burakov
Cc: dev, Sasha Neftin, Jeff Kirsher, Guinan Sun, Wei Zhao, stable
On Tue, May 14, 2024 at 04:17:16PM +0100, Anatoly Burakov wrote:
> Current code is a result of work to reduce duplication between various
> device models. However, the logic that was replaced did not exactly
> match the new logic, and as a result the link power down was not
> working correctly for some NICs, and the link remained up even when
> the interface is down.
>
> Fix it to correctly power down the link under all circumstances that
> were supported by old logic.
>
> Fixes: 44dddd14059f ("net/e1000/base: remove duplicated codes")
> Cc: guinanx.sun@intel.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] net/e1000/base: fix link power down
2024-05-29 13:34 ` Bruce Richardson
@ 2024-05-29 13:35 ` Bruce Richardson
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2024-05-29 13:35 UTC (permalink / raw)
To: Anatoly Burakov
Cc: dev, Sasha Neftin, Jeff Kirsher, Guinan Sun, Wei Zhao, stable
On Wed, May 29, 2024 at 02:34:16PM +0100, Bruce Richardson wrote:
> On Tue, May 14, 2024 at 04:17:16PM +0100, Anatoly Burakov wrote:
> > Current code is a result of work to reduce duplication between various
> > device models. However, the logic that was replaced did not exactly
> > match the new logic, and as a result the link power down was not
> > working correctly for some NICs, and the link remained up even when
> > the interface is down.
> >
> > Fix it to correctly power down the link under all circumstances that
> > were supported by old logic.
> >
> > Fixes: 44dddd14059f ("net/e1000/base: remove duplicated codes")
> > Cc: guinanx.sun@intel.com
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Applied to dpdk-next-net-intel
Thanks,
/Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-29 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-14 15:17 [PATCH v1 1/1] net/e1000/base: fix link power down Anatoly Burakov
2024-05-29 13:34 ` Bruce Richardson
2024-05-29 13:35 ` Bruce Richardson
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).