IB/hfi1: Use the same capability state for all shared contexts
authorDean Luick <dean.luick@intel.com>
Thu, 28 Jul 2016 19:21:13 +0000 (15:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commitbdf7752e072f91fbeb1739da3938d4392ea8a51f
treeab2fe30c51da5f651eae8b45408eed635884667e
parent53445bb32d244b1b32e8d88346a551130fb35544
IB/hfi1: Use the same capability state for all shared contexts

Save the current capability state at user context creation
time.  Report this saved value for all shared contexts.

Also get rid of unnecessary hfi1_get_base_kinfo function.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/hfi.h