]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:39 +0000 (13:35 -0800)
commit0a464b201d90b59d82e2cdb7cc0168c65a2d5d0b
tree1a496f704a0b487b40835fc979060e62547cdc2f
parentc88b74df884b9734ee642926033a18728fec59d8
bnxt_en: Do not setup PHY unless driving a single PF.

Orabug: 25645429

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>
(cherry picked from commit 33dac24abbd5a77eefca18fb7ebbd01a3cf1b343)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c