staging/rdma/hfi1: Fix QSFP memory read/write across 128 byte boundary
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 3 Feb 2016 22:31:05 +0000 (14:31 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:46 +0000 (20:37 -0500)
commitc7cb7635d91d9126431159ee7f90b7137c908e89
tree183672d5233ea575dc1e019dff40734e9f26b68e
parent76ef8c0798d3377fd58a1ef083d65b4528682db4
staging/rdma/hfi1: Fix QSFP memory read/write across 128 byte boundary

The QSFP memory cache reads both lower and upper page 0H in one shot,
which leads to the address counter wrapping around to the beginning of
lower page 00H at byte 128, as defined by SFF-8636.
This patch fixes this by modifying the underlying QSFP read and writes
to avoid this wrap around.

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