diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-05-11 19:53:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-13 02:02:29 -0400 |
commit | f8e21f8fe2253e2ed5b9189b9dd5ff7e51af307c (patch) | |
tree | 225ff000ad8c99b5c0661f530517b421421c263c /drivers/net/netxen/netxen_nic_init.c | |
parent | 23461e835b3537dd395828b090fb1cb64a198f85 (diff) |
netxen: fix register usage
o For NX3031, MSI_MODE, CAPABILITIES_FW and SCRATCHPAD registers
are obsolete. These register addresses can be used for different
purpose.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index 388feaf60ee7..4a2bbeb1dceb 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c | |||
@@ -1361,10 +1361,12 @@ int netxen_init_firmware(struct netxen_adapter *adapter) | |||
1361 | return err; | 1361 | return err; |
1362 | 1362 | ||
1363 | NXWR32(adapter, CRB_NIC_CAPABILITIES_HOST, INTR_SCHEME_PERPORT); | 1363 | NXWR32(adapter, CRB_NIC_CAPABILITIES_HOST, INTR_SCHEME_PERPORT); |
1364 | NXWR32(adapter, CRB_NIC_MSI_MODE_HOST, MSI_MODE_MULTIFUNC); | ||
1365 | NXWR32(adapter, CRB_MPORT_MODE, MPORT_MULTI_FUNCTION_MODE); | 1364 | NXWR32(adapter, CRB_MPORT_MODE, MPORT_MULTI_FUNCTION_MODE); |
1366 | NXWR32(adapter, CRB_CMDPEG_STATE, PHAN_INITIALIZE_ACK); | 1365 | NXWR32(adapter, CRB_CMDPEG_STATE, PHAN_INITIALIZE_ACK); |
1367 | 1366 | ||
1367 | if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) | ||
1368 | NXWR32(adapter, CRB_NIC_MSI_MODE_HOST, MSI_MODE_MULTIFUNC); | ||
1369 | |||
1368 | return err; | 1370 | return err; |
1369 | } | 1371 | } |
1370 | 1372 | ||