]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Do function reset on the 1st PF open only.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 1 Jul 2016 22:46:21 +0000 (18:46 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 17:57:33 +0000 (12:57 -0500)
commit43dd810ebab521f95db319d422f2fe2d8f178b38
tree680664c8fa638641136bc65e442a1a76d4981383
parent52f57622d2a6e3ec288fca1234dfb5c3e02ae28c
bnxt_en: Do function reset on the 1st PF open only.

Orabug: 24567991

Calling the firmware to do function reset on the PF will kill all the VFs.
To prevent that, we call function reset on the 1st PF open before any VF
can be activated.  On subsequent PF opens (with possibly some active VFs),
a bit has been set and we'll skip the function reset.  VF driver will
always do function reset on every open.  If there is an AER event, we will
always do function reset.

Signed-off-by: Michael Chan <michael.chan@broadocm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2a5bedfa674cf81d60a20a76f456778834bd2123)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h