diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:52:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:52:46 -0500 |
commit | 488823f114a3cef58e7eb932cac977440a2a59cb (patch) | |
tree | f6cb0840c927ba0234949b8f8728600a474cb1b2 /drivers/net | |
parent | 827b3f6abc21246928e38480bb308936701a2ad4 (diff) | |
parent | 3c2d774cad5bf4fad576363da77870e9e6530b7a (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
RDMA/nes: Add a driver for NetEffect RNICs
IB/mthca: Return proper error codes from mthca_fmr_alloc()
IB: Avoid marking __devinitdata as const
IB/mlx4: Actually print out the driver version
IB/ib_mthca: Pre-link receive WQEs in Tavor mode
IB/mthca: Remove checks for srq->first_free < 0
IB/fmr_pool: Allocate page list for pool FMRs only when caching enabled
IB/srp: Retry stale connections
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
IB/mthca: Don't read reserved fields in mthca_QUERY_ADAPTER()
IPoIB: Remove a misleading debug print
IPoIB: Handle bonding failover race for connected neighbours too
IB/mthca: Fix and simplify page size calculation in mthca_reg_phys_mr()
IB/ehca: Add PMA support
IB/ehca: Update sma_attr also in case of disruptive config change
IB/ehca: Prevent sending UD packets to QP0
IB/cm: Add interim support for routed paths
mlx4_core: Fix more section mismatches
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mlx4/fw.c | 6 | ||||
-rw-r--r-- | drivers/net/mlx4/fw.h | 3 | ||||
-rw-r--r-- | drivers/net/mlx4/main.c | 11 | ||||
-rw-r--r-- | drivers/net/mlx4/mr.c | 2 |
4 files changed, 6 insertions, 16 deletions
diff --git a/drivers/net/mlx4/fw.c b/drivers/net/mlx4/fw.c index 535a4461d88c..61dc4951d6b0 100644 --- a/drivers/net/mlx4/fw.c +++ b/drivers/net/mlx4/fw.c | |||
@@ -617,9 +617,6 @@ int mlx4_QUERY_ADAPTER(struct mlx4_dev *dev, struct mlx4_adapter *adapter) | |||
617 | int err; | 617 | int err; |
618 | 618 | ||
619 | #define QUERY_ADAPTER_OUT_SIZE 0x100 | 619 | #define QUERY_ADAPTER_OUT_SIZE 0x100 |
620 | #define QUERY_ADAPTER_VENDOR_ID_OFFSET 0x00 | ||
621 | #define QUERY_ADAPTER_DEVICE_ID_OFFSET 0x04 | ||
622 | #define QUERY_ADAPTER_REVISION_ID_OFFSET 0x08 | ||
623 | #define QUERY_ADAPTER_INTA_PIN_OFFSET 0x10 | 620 | #define QUERY_ADAPTER_INTA_PIN_OFFSET 0x10 |
624 | #define QUERY_ADAPTER_VSD_OFFSET 0x20 | 621 | #define QUERY_ADAPTER_VSD_OFFSET 0x20 |
625 | 622 | ||
@@ -633,9 +630,6 @@ int mlx4_QUERY_ADAPTER(struct mlx4_dev *dev, struct mlx4_adapter *adapter) | |||
633 | if (err) | 630 | if (err) |
634 | goto out; | 631 | goto out; |
635 | 632 | ||
636 | MLX4_GET(adapter->vendor_id, outbox, QUERY_ADAPTER_VENDOR_ID_OFFSET); | ||
637 | MLX4_GET(adapter->device_id, outbox, QUERY_ADAPTER_DEVICE_ID_OFFSET); | ||
638 | MLX4_GET(adapter->revision_id, outbox, QUERY_ADAPTER_REVISION_ID_OFFSET); | ||
639 | MLX4_GET(adapter->inta_pin, outbox, QUERY_ADAPTER_INTA_PIN_OFFSET); | 633 | MLX4_GET(adapter->inta_pin, outbox, QUERY_ADAPTER_INTA_PIN_OFFSET); |
640 | 634 | ||
641 | get_board_id(outbox + QUERY_ADAPTER_VSD_OFFSET / 4, | 635 | get_board_id(outbox + QUERY_ADAPTER_VSD_OFFSET / 4, |
diff --git a/drivers/net/mlx4/fw.h b/drivers/net/mlx4/fw.h index 7e1dd9e25cfb..e16dec890413 100644 --- a/drivers/net/mlx4/fw.h +++ b/drivers/net/mlx4/fw.h | |||
@@ -99,9 +99,6 @@ struct mlx4_dev_cap { | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | struct mlx4_adapter { | 101 | struct mlx4_adapter { |
102 | u32 vendor_id; | ||
103 | u32 device_id; | ||
104 | u32 revision_id; | ||
105 | char board_id[MLX4_BOARD_ID_LEN]; | 102 | char board_id[MLX4_BOARD_ID_LEN]; |
106 | u8 inta_pin; | 103 | u8 inta_pin; |
107 | }; | 104 | }; |
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 89b3f0b7cdc0..08bfc130a33e 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -71,7 +71,7 @@ MODULE_PARM_DESC(msi_x, "attempt to use MSI-X if nonzero"); | |||
71 | 71 | ||
72 | #endif /* CONFIG_PCI_MSI */ | 72 | #endif /* CONFIG_PCI_MSI */ |
73 | 73 | ||
74 | static const char mlx4_version[] __devinitdata = | 74 | static char mlx4_version[] __devinitdata = |
75 | DRV_NAME ": Mellanox ConnectX core driver v" | 75 | DRV_NAME ": Mellanox ConnectX core driver v" |
76 | DRV_VERSION " (" DRV_RELDATE ")\n"; | 76 | DRV_VERSION " (" DRV_RELDATE ")\n"; |
77 | 77 | ||
@@ -163,7 +163,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | static int __devinit mlx4_load_fw(struct mlx4_dev *dev) | 166 | static int mlx4_load_fw(struct mlx4_dev *dev) |
167 | { | 167 | { |
168 | struct mlx4_priv *priv = mlx4_priv(dev); | 168 | struct mlx4_priv *priv = mlx4_priv(dev); |
169 | int err; | 169 | int err; |
@@ -197,8 +197,8 @@ err_free: | |||
197 | return err; | 197 | return err; |
198 | } | 198 | } |
199 | 199 | ||
200 | static int __devinit mlx4_init_cmpt_table(struct mlx4_dev *dev, u64 cmpt_base, | 200 | static int mlx4_init_cmpt_table(struct mlx4_dev *dev, u64 cmpt_base, |
201 | int cmpt_entry_sz) | 201 | int cmpt_entry_sz) |
202 | { | 202 | { |
203 | struct mlx4_priv *priv = mlx4_priv(dev); | 203 | struct mlx4_priv *priv = mlx4_priv(dev); |
204 | int err; | 204 | int err; |
@@ -534,7 +534,6 @@ static int mlx4_init_hca(struct mlx4_dev *dev) | |||
534 | } | 534 | } |
535 | 535 | ||
536 | priv->eq_table.inta_pin = adapter.inta_pin; | 536 | priv->eq_table.inta_pin = adapter.inta_pin; |
537 | dev->rev_id = adapter.revision_id; | ||
538 | memcpy(dev->board_id, adapter.board_id, sizeof dev->board_id); | 537 | memcpy(dev->board_id, adapter.board_id, sizeof dev->board_id); |
539 | 538 | ||
540 | return 0; | 539 | return 0; |
@@ -688,7 +687,7 @@ err_uar_table_free: | |||
688 | return err; | 687 | return err; |
689 | } | 688 | } |
690 | 689 | ||
691 | static void __devinit mlx4_enable_msi_x(struct mlx4_dev *dev) | 690 | static void mlx4_enable_msi_x(struct mlx4_dev *dev) |
692 | { | 691 | { |
693 | struct mlx4_priv *priv = mlx4_priv(dev); | 692 | struct mlx4_priv *priv = mlx4_priv(dev); |
694 | struct msix_entry entries[MLX4_NUM_EQ]; | 693 | struct msix_entry entries[MLX4_NUM_EQ]; |
diff --git a/drivers/net/mlx4/mr.c b/drivers/net/mlx4/mr.c index 0c05a10bae3b..9c9e308d0917 100644 --- a/drivers/net/mlx4/mr.c +++ b/drivers/net/mlx4/mr.c | |||
@@ -122,7 +122,7 @@ static void mlx4_buddy_free(struct mlx4_buddy *buddy, u32 seg, int order) | |||
122 | spin_unlock(&buddy->lock); | 122 | spin_unlock(&buddy->lock); |
123 | } | 123 | } |
124 | 124 | ||
125 | static int __devinit mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order) | 125 | static int mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order) |
126 | { | 126 | { |
127 | int i, s; | 127 | int i, s; |
128 | 128 | ||