Skip to content

Commit ca0c753

Browse files
Vasundhara Volamdavem330
authored andcommitted
bnxt_en: Init ethtool link settings after reading updated PHY configuration.
In a shared port PHY configuration, async event is received when any of the port modifies the configuration. Ethtool link settings should be initialised after updated PHY configuration from firmware. Fixes: b1613e7 ("bnxt_en: Add async. event logic for PHY configuration changes.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 163e9ef commit ca0c753

File tree

1 file changed

+5
-5
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+5
-5
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10385,15 +10385,15 @@ static void bnxt_sp_task(struct work_struct *work)
1038510385
&bp->sp_event))
1038610386
bnxt_hwrm_phy_qcaps(bp);
1038710387

10388-
if (test_and_clear_bit(BNXT_LINK_CFG_CHANGE_SP_EVENT,
10389-
&bp->sp_event))
10390-
bnxt_init_ethtool_link_settings(bp);
10391-
1039210388
rc = bnxt_update_link(bp, true);
10393-
mutex_unlock(&bp->link_lock);
1039410389
if (rc)
1039510390
netdev_err(bp->dev, "SP task can't update link (rc: %x)\n",
1039610391
rc);
10392+
10393+
if (test_and_clear_bit(BNXT_LINK_CFG_CHANGE_SP_EVENT,
10394+
&bp->sp_event))
10395+
bnxt_init_ethtool_link_settings(bp);
10396+
mutex_unlock(&bp->link_lock);
1039710397
}
1039810398
if (test_and_clear_bit(BNXT_UPDATE_PHY_SP_EVENT, &bp->sp_event)) {
1039910399
int rc;

0 commit comments

Comments
 (0)