mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 01:06:46 +09:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user