IB/hfi1: Fix i2c resource reservation checks
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 17:50:04 +0000 (10:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:27 +0000 (16:32 -0400)
commitf9c82a0b75a120ca3e9542a7a6e60244d04c915a
tree8e657de1527ea5b7b0d68fb792f8d26bd37b0518
parent4ee1585972c0772a5126d7242a906b18acee7b0f
IB/hfi1: Fix i2c resource reservation checks

The i2c and qsfp read/write routines should check for the resource
reservation of the incoming argument target rather than the implicit
target of the hardware HFI.

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>
drivers/staging/rdma/hfi1/qsfp.c