From: Michael Chan <michael.chan@broadcom.com> Date: 2016-02-20 00:43:24
3 small patches to fix PHY related code.
Michael Chan (3):
bnxt_en: Poll link at the end of __bnxt_open_nic().
bnxt_en: Remove unnecessary call to update PHY settings.
bnxt_en: Failure to update PHY is not fatal condition.
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--
1.8.3.1
From: Michael Chan <michael.chan@broadcom.com> Date: 2016-02-20 00:43:24
From: Michael Chan <mchan@broadcom.com>
If we fail to update the PHY, we should print a warning and continue.
The current code to exit is buggy as it has not freed up the NIC
resources yet.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Michael Chan <michael.chan@broadcom.com> Date: 2016-02-20 00:43:24
From: Michael Chan <mchan@broadcom.com>
Fix bnxt_update_phy_setting() to check the correct parameters when
determining whether to update the PHY. Requested line speed/duplex should
only be checked for forced speed mode. This avoids unnecessary link
interruptions when loading the driver.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
From: Michael Chan <michael.chan@broadcom.com> Date: 2016-02-20 00:43:24
From: Michael Chan <mchan@broadcom.com>
When shutting down the NIC, we shutdown async event processing before
freeing all the rings. If there is a link change event during reset, the
driver may miss it and the link state may be incorrect after the NIC is
re-opened. Poll the link at the end of __bnxt_open_nic() to get the
correct link status.
Signed-off-by Michael Chan [off-list ref]
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 +
1 file changed, 1 insertion(+)
From: Michael Chan <michael.chan@broadcom.com> Date: 2016-02-20 06:08:33
On Fri, Feb 19, 2016 at 8:40 PM, David Miller [off-list ref] wrote:
From: Michael Chan <michael.chan@broadcom.com>
Date: Fri, 19 Feb 2016 19:43:18 -0500
quoted
3 small patches to fix PHY related code.
Series applied, thanks Michael.
Although I'm not so sure how wise it is to not fail an ->open()
if the PHY settings fail.....
The firmware will still have default settings for the PHY. More importantly,
for the VF, the call doesn't do anything real and we should allow the VF to
proceed if the call fails. Thanks.