IB/hfi1: Guard against concurrent I2C access across all chains
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 18:26:21 +0000 (11:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:28 +0000 (16:32 -0400)
commit90315ad86abfe2fe43a564d705a342d823c1589c
treef6c53c2fdda8cde824ce13f92339699f872eb187
parent623bba2d92a32572e21758a17718eeec65594f7d
IB/hfi1: Guard against concurrent I2C access across all chains

The discrete ASIC board design makes the two I2C chains not
independent of each other.  That is, only one chain can safely
be accessed at a time.  For discrete ASIC devices, adjust the
resource locking so that access to one I2C chain will lock both
of the chains.

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/firmware.c