]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc350b6513a68251e0c1f7f40b9ce7e7624f81505
tree76fa8941849402cb94764ca885c0933420d39861
parente603f5e44bb54aa0342ee4a12d3799105761d201
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