staging/rdma/hfi1: Turning off LED without checking if stepping is Ax

It prevents the LED from staying on when the QSFP module is
not present.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Sebastian Sanchez 2016-02-09 14:29:40 -08:00 committed by Doug Ledford
parent 34cee28f0b
commit 773d045168
2 changed files with 3 additions and 4 deletions

View File

@ -13418,8 +13418,8 @@ static void init_chip(struct hfi1_devdata *dd)
write_csr(dd, CCE_DC_CTRL, 0); write_csr(dd, CCE_DC_CTRL, 0);
/* Set the LED off */ /* Set the LED off */
if (is_ax(dd))
setextled(dd, 0); setextled(dd, 0);
/* /*
* Clear the QSFP reset. * Clear the QSFP reset.
* An FLR enforces a 0 on all out pins. The driver does not touch * An FLR enforces a 0 on all out pins. The driver does not touch

View File

@ -1261,7 +1261,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd)
write_csr(dd, CCE_DC_CTRL, 0); write_csr(dd, CCE_DC_CTRL, 0);
/* Set the LED off */ /* Set the LED off */
if (is_ax(dd))
setextled(dd, 0); setextled(dd, 0);
/* check for any per-lane errors */ /* check for any per-lane errors */