summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/chip.c
diff options
context:
space:
mode:
authorSebastian Sanchez2016-02-09 23:29:40 +0100
committerDoug Ledford2016-03-11 02:38:06 +0100
commit773d0451685b96f157ccd617a5e9cd9d3fa7d986 (patch)
treebfd5ce63cb1e98a7e1dcca567b408fe36283c471 /drivers/staging/rdma/hfi1/chip.c
parentstaging/rdma/hfi1: actually use new RNR timer API in loopback path (diff)
downloadkernel-qcow2-linux-773d0451685b96f157ccd617a5e9cd9d3fa7d986.tar.gz
kernel-qcow2-linux-773d0451685b96f157ccd617a5e9cd9d3fa7d986.tar.xz
kernel-qcow2-linux-773d0451685b96f157ccd617a5e9cd9d3fa7d986.zip
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>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.c')
-rw-r--r--drivers/staging/rdma/hfi1/chip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c
index 4750e3c2db3e..129461770186 100644
--- a/drivers/staging/rdma/hfi1/chip.c
+++ b/drivers/staging/rdma/hfi1/chip.c
@@ -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