diff options
author | Dean Luick <dean.luick@intel.com> | 2016-03-05 16:50:06 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-17 19:55:15 (GMT) |
commit | 765a6fac9132da203347525032bb40b1e9055104 (patch) | |
tree | 176a656b727b0b78aa3a0376653ded3fb28b1804 /drivers/staging/rdma/hfi1/chip.h | |
parent | 576531fde8473333322905ea09fd5cfd14ce91ef (diff) | |
download | linux-765a6fac9132da203347525032bb40b1e9055104.tar.xz |
IB/hfi1: Change QSFP functions to use resource reservation
Remove the mutex guarding each operation in favor the ASIC
resource acquire/release. Push the resource acquire/release,
above each operation call to allow exclusive access across
multiple operations.
Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.h')
-rw-r--r-- | drivers/staging/rdma/hfi1/chip.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.h b/drivers/staging/rdma/hfi1/chip.h index 311e6e8..9313963 100644 --- a/drivers/staging/rdma/hfi1/chip.h +++ b/drivers/staging/rdma/hfi1/chip.h @@ -672,6 +672,9 @@ void finish_chip_resources(struct hfi1_devdata *dd); /* ms wait time for access to an SBus resoure */ #define SBUS_TIMEOUT 4000 /* long enough for a FW download and SBR */ +/* ms wait time for a qsfp (i2c) chain to become available */ +#define QSFP_WAIT 20000 /* long enough for FW update to the F4 uc */ + void fabric_serdes_reset(struct hfi1_devdata *dd); int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result); |