aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_init.c
diff options
context:
space:
mode:
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>2010-04-01 15:01:32 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-03 17:19:14 -0400
commitaa5e18c04af8706251768e6aba83465e31de7810 (patch)
tree8a766de994e5a9313b5019cca67400375a6a7220 /drivers/net/qlcnic/qlcnic_init.c
parent0c39aa4819fab75dcce0b1a9d99dcac0d85274f6 (diff)
qlcnic: use IDC defined timeout value
o USE/Read IDC defined timeout value from ROM. o While resetting chip, don't wait for other pci-func to respond, more than reset_ack_timeo seconds, Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_init.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 0a424e038cff..ccd24f49b6dd 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -529,6 +529,22 @@ int qlcnic_pinit_from_rom(struct qlcnic_adapter *adapter)
529 return 0; 529 return 0;
530} 530}
531 531
532void
533qlcnic_setup_idc_param(struct qlcnic_adapter *adapter) {
534
535 int timeo;
536
537 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DEV_INIT_TIMEOUT, &timeo))
538 timeo = 30;
539
540 adapter->dev_init_timeo = timeo;
541
542 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DRV_RESET_TIMEOUT, &timeo))
543 timeo = 10;
544
545 adapter->reset_ack_timeo = timeo;
546}
547
532static int 548static int
533qlcnic_has_mn(struct qlcnic_adapter *adapter) 549qlcnic_has_mn(struct qlcnic_adapter *adapter)
534{ 550{