]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:52:35 +0000 (14:52 -0400)
commit2a5bedfa674cf81d60a20a76f456778834bd2123
treee5c5413dfe462067a9da1737839674c56eeea892
parenta58a3e68037647de78e3461194239a1104f76003
bnxt_en: Do function reset on the 1st PF open only.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h