staging/rdma/hfi1: Turning off LED without checking if stepping is Ax
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Tue, 9 Feb 2016 22:29:40 +0000 (14:29 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:06 +0000 (20:38 -0500)
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>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/pcie.c

index 4750e3c..1294617 100644 (file)
@@ -13418,8 +13418,8 @@ static void init_chip(struct hfi1_devdata *dd)
        write_csr(dd, CCE_DC_CTRL, 0);
 
        /* Set the LED off */
-       if (is_ax(dd))
-               setextled(dd, 0);
+       setextled(dd, 0);
+
        /*
         * Clear the QSFP reset.
         * An FLR enforces a 0 on all out pins. The driver does not touch
index 5642d85..04f2d8a 100644 (file)
@@ -1261,8 +1261,7 @@ retry:
        write_csr(dd, CCE_DC_CTRL, 0);
 
        /* Set the LED off */
-       if (is_ax(dd))
-               setextled(dd, 0);
+       setextled(dd, 0);
 
        /* check for any per-lane errors */
        pci_read_config_dword(dd->pcidev, PCIE_CFG_SPCIE2, &reg32);