diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-03-28 22:43:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-29 16:18:38 -0400 |
commit | 083ba279d52bcad20f1dfa3cefd4255cbe82d521 (patch) | |
tree | f2026c292bacf345792d3a59ff804177eb45534f /drivers/net/netxen | |
parent | e270299a2f7a3040fe598113f74c2a7d5f63b582 (diff) |
netxen: fix interrupt for NX2031
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
For NX2031, msix is supported from fw version > 3.4.336.
This fw version check should take flash fw in consider instead of
running fw or fw from file.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 68903bf06cf6..f1daa9a8be07 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -772,15 +772,22 @@ netxen_check_options(struct netxen_adapter *adapter) | |||
772 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { | 772 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { |
773 | adapter->msix_supported = !!use_msi_x; | 773 | adapter->msix_supported = !!use_msi_x; |
774 | adapter->rss_supported = !!use_msi_x; | 774 | adapter->rss_supported = !!use_msi_x; |
775 | } else if (adapter->fw_version >= NETXEN_VERSION_CODE(3, 4, 336)) { | 775 | } else { |
776 | switch (adapter->ahw.board_type) { | 776 | u32 flashed_ver = 0; |
777 | case NETXEN_BRDTYPE_P2_SB31_10G: | 777 | netxen_rom_fast_read(adapter, |
778 | case NETXEN_BRDTYPE_P2_SB31_10G_CX4: | 778 | NX_FW_VERSION_OFFSET, (int *)&flashed_ver); |
779 | adapter->msix_supported = !!use_msi_x; | 779 | flashed_ver = NETXEN_DECODE_VERSION(flashed_ver); |
780 | adapter->rss_supported = !!use_msi_x; | 780 | |
781 | break; | 781 | if (flashed_ver >= NETXEN_VERSION_CODE(3, 4, 336)) { |
782 | default: | 782 | switch (adapter->ahw.board_type) { |
783 | break; | 783 | case NETXEN_BRDTYPE_P2_SB31_10G: |
784 | case NETXEN_BRDTYPE_P2_SB31_10G_CX4: | ||
785 | adapter->msix_supported = !!use_msi_x; | ||
786 | adapter->rss_supported = !!use_msi_x; | ||
787 | break; | ||
788 | default: | ||
789 | break; | ||
790 | } | ||
784 | } | 791 | } |
785 | } | 792 | } |
786 | 793 | ||