]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe988e79ab87b43786f04ee434582d61aaf8ea4b
treef6c53c2fdda8cde824ce13f92339699f872eb187
parent7759f8ef6575bcd0ce89e676345c13c1ee2dd90d
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