Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a59329d5 authored by Dean Luick's avatar Dean Luick Committed by Doug Ledford
Browse files

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: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDean Luick <dean.luick@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent dcc68e52
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 */