Skip to contentSkip to conversation

ehca: query_port() returns LINK_UP instead UNKNOWN

PATCH In review Hoang-Nam Nguyen 1 participant 1 message Feb 14, 2007 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 ehca: query_port() returns LINK_UP instead UNKNOWN

Hi,
this patch sets port phys state as a result of ehca_query_port() to LINK_UP. On pSeries ehca actually represents a logical HCA, whose phys/link state always is LINK_UP.
Thanks
Nam

---

 ehca_hca.c |    3 +++
 1 files changed, 3 insertions(+)
drivers/infiniband/hw/ehca/ehca_hca.c 2007-02-14 12:53:52.000000000 +0100 renamed from drivers/infiniband/hw/ehca/ehca_hca.c 2007-02-14 13:11:45.000000000 +0100 +3 -0
diff -Nurp infiniband_orig/drivers/infiniband/hw/ehca/ehca_hca.c infiniband_work/drivers/infiniband/hw/ehca/ehca_hca.c
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ib
        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);