mirror of https://gitee.com/openkylin/linux.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 <dennis.dalessandro@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
dcc68e5282
commit
a59329d5e8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue