bnx2x: fix unload previous driver flow when flr-capable
authorYuval Mintz <yuvalmin@broadcom.com>
Thu, 9 Aug 2012 04:37:25 +0000 (04:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2012 23:19:33 +0000 (16:19 -0700)
commit8eee694c3e667e6f0856d9c8525208058f9d42bf
tree76fa8941849402cb94764ca885c0933420d39861
parent66d1b9263a371abd15806c53f486f0645ef31a8f
bnx2x: fix unload previous driver flow when flr-capable

The existing previous driver unload flow is flawed, causing the probe of
functions reaching the 'uncommon fork' in flr-capable devices to fail.

This patch resolves this, as well as fixing the flow for hypervisors which
disable flr capabilities from functions as they pass them as PDA to VMs,
as we cannot base the flow on the pci configuration space.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c