]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/infiniband/hw/ehca/ehca_hca.c
IB/ehca: Change query_port() to return LINK_UP instead UNKNOWN
[mv-sheeva.git] / drivers / infiniband / hw / ehca / ehca_hca.c
index b7be950ab47c3a700737feae370d8bd09a2d2b69..30eb45df9f0b8d8207173c0023b481af89e6a95f 100644 (file)
@@ -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);