mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Sun, 27 Jan 2008 16:13:25 +0000 (18:13 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 5 Feb 2008 04:20:43 +0000 (20:20 -0800)
commit893da75956ab48545e8732b46e1cf4350bd25f9c
treefe5125ffd8ec7d84f3b4937f6ade9ee65f7a4913
parent6ccef1de2c1718729dd1c7ee8bd98473519eb3b3
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>
drivers/infiniband/hw/mlx4/main.c
drivers/net/mlx4/fw.c
drivers/net/mlx4/fw.h
drivers/net/mlx4/main.c