diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2008-01-27 11:13:25 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-02-04 23:20:43 -0500 |
commit | 893da75956ab48545e8732b46e1cf4350bd25f9c (patch) | |
tree | fe5125ffd8ec7d84f3b4937f6ade9ee65f7a4913 /drivers/infiniband/hw | |
parent | 6ccef1de2c1718729dd1c7ee8bd98473519eb3b3 (diff) |
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
The firmware QUERY_ADAPTER command does not return vendor_id,
device_id, and revision_id; eliminate these fields from the query.
Initialize the rev_id field of the mlx4 device via init_node_data (MAD
IFC query), as is done in the query_device verb implementation.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index d8287d9db41e..d2f50b62fcb6 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -468,6 +468,7 @@ static int init_node_data(struct mlx4_ib_dev *dev) | |||
468 | if (err) | 468 | if (err) |
469 | goto out; | 469 | goto out; |
470 | 470 | ||
471 | dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); | ||
471 | memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); | 472 | memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); |
472 | 473 | ||
473 | out: | 474 | out: |