]> rtime.felk.cvut.cz Git - linux-imx.git/commit
qlcnic: avoid using reset_devices as it may become obsolete.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Tue, 23 Nov 2010 01:25:21 +0000 (01:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 18:47:16 +0000 (10:47 -0800)
commitb0044bcfa95ddf2e317863fb29121c284b6725ca
treeced7b7d4d06ab51fa3bcdfe19a5191e380e85e52
parent5584b8078a60e34ec7d37c9b67a0f3d389a1a2f6
qlcnic: avoid using reset_devices as it may become obsolete.

In kdump environment do not depend upon reset_devices parameter
to reset the pci function as this parameter may become obsolete.
Instead use an adapter specific mechanism to determine if the pci
function needs to be reset.

Per function refcount is maintained in driver, which is set in probe
and reset in remove handler of adapter. If the probe detects the count
as non zero then reset the function.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_ctx.c
drivers/net/qlcnic/qlcnic_hdr.h
drivers/net/qlcnic/qlcnic_main.c