[PATCH] IB/mthca: Use correct port width capability value
authorRoland Dreier <roland@eddore.topspincom.com>
Wed, 17 Aug 2005 14:39:10 +0000 (07:39 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 27 Aug 2005 03:37:36 +0000 (20:37 -0700)
commitda6561c285a6e28a075b97fd5a1560a2b0ce843e
treef39c9f1529e3c8aede42490d67a75321a8d8a25e
parent2aeba9a03b0d249fc710b9939fc089ce53d8cd30
[PATCH] IB/mthca: Use correct port width capability value

When we call the INIT_IB firmware command to bring up a port, use
the actual port width capability returned by the QUERY_DEV_LIM
command instead of always trying to enable both 1X and 4X.  This
fixes breakage seen when the firmware is build to allow 4X only.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_cmd.h
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_qp.c