bnxt_en: Ignore 0 value in autoneg supported speed from firmware.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 8 Mar 2017 23:44:35 +0000 (18:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 01:38:31 +0000 (17:38 -0800)
commit520ad89a54edea84496695d528f73ddcf4a52ea4
tree7d32ed82e14f6a7539f18e9229a843cf686d9820
parentbc39f885a9c3bdbff0a96ecaf07b162a78eff6e4
bnxt_en: Ignore 0 value in autoneg supported speed from firmware.

In some situations, the firmware will return 0 for autoneg supported
speed.  This may happen if the firmware detects no SFP module, for
example.  The driver should ignore this so that we don't end up with
an invalid autoneg setting with nothing advertised.  When SFP module
is inserted, we'll get the updated settings from firmware at that time.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c