]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Improve bnxt_probe_phy().
authorMichael Chan <michael.chan@broadcom.com>
Mon, 27 Jan 2020 09:56:14 +0000 (04:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:33:28 +0000 (11:33 +0100)
commitd01d35a493eaab2afa661d0b7d81772b822e00be
tree08237d70620b7787c3594a3c728b85f655f6e27f
parent4b0f4372159a8c2b8f294d3a364a232eab17cf2f
bnxt_en: Improve bnxt_probe_phy().

If the 2nd parameter fw_dflt is not set, we are calling bnxt_probe_phy()
after the firmware has reset.  There is no need to query the current
PHY settings from firmware as these settings may be different from
the ethtool settings that the driver will re-establish later.  So
return earlier in bnxt_probe_phy() to save one firmware call.

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