]> git.baikalelectronics.ru Git - kernel.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)
commit355043894d48d12b76b8b72b193cb029d7f21bc2
treeced7b7d4d06ab51fa3bcdfe19a5191e380e85e52
parentcbbbb13479b044ade32722f8391967afe3f50992
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