]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/rdma/hfi1: Skip lcb init for simulation
authorDean Luick <dean.luick@intel.com>
Wed, 3 Feb 2016 22:32:31 +0000 (14:32 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:49 +0000 (20:37 -0500)
The simulator does not correctly handle LCB cclk loopback.
Skip that step for simulation - it is not needed.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c

index 81b48d600cf82049220b9c2c98210a31cbc1f48d..d45e27105d506658210b6407db3f0e9e91adade6 100644 (file)
@@ -9315,6 +9315,10 @@ static void init_qsfp_int(struct hfi1_devdata *dd)
  */
 static void init_lcb(struct hfi1_devdata *dd)
 {
+       /* simulator does not correctly handle LCB cclk loopback, skip */
+       if (dd->icode == ICODE_FUNCTIONAL_SIMULATOR)
+               return;
+
        /* the DC has been reset earlier in the driver load */
 
        /* set LCB for cclk loopback on the port */