]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Do not setup PHY unless driving a single PF.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Feb 2017 00:18:15 +0000 (19:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2017 03:18:49 +0000 (22:18 -0500)
commit18b851d44275e6b87d5d32a843c9a2e4c3b16a02
tree14ba60af62784512b09923cc271a74026d113a91
parent5ae83821c5f0215392fa4fe868b2745e38aaaf8b
bnxt_en: Do not setup PHY unless driving a single PF.

If it is a VF or an NPAR function, the firmware call to setup the PHY
will fail.  Adding this check will prevent unnecessary firmware calls
to setup the PHY unless calling from the PF.  This will also eliminate
many unnecessary warning messages when the call from a VF or NPAR fails.

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