IB/hfi1: Hold i2c resource across debugfs open/close
authorDean Luick <dean.luick@intel.com>
Sat, 5 Mar 2016 16:50:27 +0000 (08:50 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Mar 2016 19:55:16 +0000 (15:55 -0400)
commitae993e7fba05c6159e1af1dc504bade46a94eb47
treee3a356a1d0e63cb70e1d8e17ef953723e4fc9bf9
parentb0506f4c56d66f4a8413eaeb57212cf8166e30e9
IB/hfi1: Hold i2c resource across debugfs open/close

External i2c firmware updates are done in multiple steps and
cannot have other things done in between.  For debugfs files,
acquire the resource on open and release it on close.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
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/debugfs.c