IB/hfi1: Fix double QSFP resource acquire on cache refresh
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 18:28:36 +0000 (11:28 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:28 +0000 (16:32 -0400)
commite4e0e39c8d41d5f6cb664a34ac7b2c6388b1b523
tree4224c649e706e201f769907bd6a8dce6f31ddf4e
parent90315ad86abfe2fe43a564d705a342d823c1589c
IB/hfi1: Fix double QSFP resource acquire on cache refresh

The function refresh_qsfp_cache() acquires the i2c chain resource,
but one caller already holds the resource.  Change the acquire so
all calls to refresh_qsfp_cache() are covered by the acquire and
remove the acquire within refresh_qsfp_cache().

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