diff options
author | Hoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com> | 2007-02-15 11:10:06 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-02-16 16:57:34 -0500 |
commit | 6bbcea0d42209ab5f0fae213050ad042c499ad8b (patch) | |
tree | 5c1d42e45323a48c8c55f17430d1ab0f223e6043 /drivers/infiniband | |
parent | 4fd3006032446be2b331dd482e34c6a9e644a5b8 (diff) |
IB/ehca: Change query_port() to return LINK_UP instead UNKNOWN
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_hca.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_hca.c b/drivers/infiniband/hw/ehca/ehca_hca.c index b7be950ab47c..30eb45df9f0b 100644 --- a/drivers/infiniband/hw/ehca/ehca_hca.c +++ b/drivers/infiniband/hw/ehca/ehca_hca.c | |||
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ibdev, | |||
162 | props->active_width = IB_WIDTH_12X; | 162 | props->active_width = IB_WIDTH_12X; |
163 | props->active_speed = 0x1; | 163 | props->active_speed = 0x1; |
164 | 164 | ||
165 | /* at the moment (logical) link state is always LINK_UP */ | ||
166 | props->phys_state = 0x5; | ||
167 | |||
165 | query_port1: | 168 | query_port1: |
166 | ehca_free_fw_ctrlblock(rblock); | 169 | ehca_free_fw_ctrlblock(rblock); |
167 | 170 | ||