diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_init.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_init.c | 16 |
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 | ||
532 | void | ||
533 | qlcnic_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 | |||
532 | static int | 548 | static int |
533 | qlcnic_has_mn(struct qlcnic_adapter *adapter) | 549 | qlcnic_has_mn(struct qlcnic_adapter *adapter) |
534 | { | 550 | { |