IB/hfi1: Remove no-op QSFP reset code
authorDean Luick <dean.luick@intel.com>
Thu, 12 May 2016 17:22:51 +0000 (10:22 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:15 +0000 (19:39 -0400)
The RESET_N bit of the ASIC_QSFPn_OE register is not used by
the hardware.  Remove code that tries to use it - it does
nothing.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c

index ce4c275b60f28882ee077c80e0fe2eb391655b90..ec0953ec7ee34e0b12cd2e6008002cadf8082ec1 100644 (file)
@@ -9212,9 +9212,6 @@ void reset_qsfp(struct hfi1_pportdata *ppd)
 
        /* Reset the QSFP */
        mask = (u64)QSFP_HFI0_RESET_N;
-       qsfp_mask = read_csr(dd, dd->hfi1_id ? ASIC_QSFP2_OE : ASIC_QSFP1_OE);
-       qsfp_mask |= mask;
-       write_csr(dd, dd->hfi1_id ? ASIC_QSFP2_OE : ASIC_QSFP1_OE, qsfp_mask);
 
        qsfp_mask = read_csr(dd,
                             dd->hfi1_id ? ASIC_QSFP2_OUT : ASIC_QSFP1_OUT);