From: Dean Luick Date: Wed, 3 Feb 2016 22:32:31 +0000 (-0800) Subject: staging/rdma/hfi1: Skip lcb init for simulation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a59329d5e8977fb4b6d7535bdf14b0fe7ece5559;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging/rdma/hfi1: Skip lcb init for simulation The simulator does not correctly handle LCB cclk loopback. Skip that step for simulation - it is not needed. Reviewed-by: Dennis Dalessandro Signed-off-by: Dean Luick Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 81b48d600cf8..d45e27105d50 100644 --- a/drivers/staging/rdma/hfi1/chip.c +++ b/drivers/staging/rdma/hfi1/chip.c @@ -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 */