Skip to content

Commit 042d765

Browse files
Yaniv Rosnerdavem330
authored andcommitted
bnx2x: fix set_setting for some PHYs
Allow set_settings() to complete succesfully even if link is not estabilished and port type isn't known yet. Signed-off-by: Yaniv Rosner <[email protected]> Signed-off-by: Dmitry Kravkov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 29be618 commit 042d765

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ static int bnx2x_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
379379
break;
380380
case PORT_FIBRE:
381381
case PORT_DA:
382+
case PORT_NONE:
382383
if (!(bp->port.supported[0] & SUPPORTED_FIBRE ||
383384
bp->port.supported[1] & SUPPORTED_FIBRE)) {
384385
DP(BNX2X_MSG_ETHTOOL,

0 commit comments

Comments
 (0)