Skip to content

Commit

Permalink
IB/ehca: Change query_port() to return LINK_UP instead UNKNOWN
Browse files Browse the repository at this point in the history
Set the port phys state as returned from ehca_query_port() to LINK_UP.
ehca actually represents a logical HCA, whose phys/link state always
is LINK_UP.

Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Hoang-Nam Nguyen authored and Roland Dreier committed Feb 16, 2007
1 parent 4fd3006 commit 6bbcea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/infiniband/hw/ehca/ehca_hca.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ibdev,
props->active_width = IB_WIDTH_12X;
props->active_speed = 0x1;

/* at the moment (logical) link state is always LINK_UP */
props->phys_state = 0x5;

query_port1:
ehca_free_fw_ctrlblock(rblock);

Expand Down

0 comments on commit 6bbcea0

Please sign in to comment.