]> 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)
commit6655d8a08e78db081fb7a9125f74f16d5842648a
tree76fa8941849402cb94764ca885c0933420d39861
parent4ea8084b754bd15738b16883636b0f951829d497
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