[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>
Showing
- drivers/infiniband/hw/mthca/mthca_cmd.c 2 additions, 5 deletionsdrivers/infiniband/hw/mthca/mthca_cmd.c
- drivers/infiniband/hw/mthca/mthca_cmd.h 1 addition, 2 deletionsdrivers/infiniband/hw/mthca/mthca_cmd.h
- drivers/infiniband/hw/mthca/mthca_dev.h 1 addition, 0 deletionsdrivers/infiniband/hw/mthca/mthca_dev.h
- drivers/infiniband/hw/mthca/mthca_main.c 1 addition, 0 deletionsdrivers/infiniband/hw/mthca/mthca_main.c
- drivers/infiniband/hw/mthca/mthca_qp.c 5 additions, 6 deletionsdrivers/infiniband/hw/mthca/mthca_qp.c
Loading
Please register or sign in to comment