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)
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>

No differences found