IB/hfi1: Load fallback platform configuration per HFI device
authorJakub Byczkowski <jakub.byczkowski@intel.com>
Sun, 13 Aug 2017 15:08:40 +0000 (08:08 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:37 +0000 (14:22 -0400)
commit76ae6222a4a37098610c0601a814c9caba94ba0b
treec1a6318cbc6a7f9db7e423b6284b4cc465588d3d
parent9161860463e38e1046a5fd57130be150cc0cac5d
IB/hfi1: Load fallback platform configuration per HFI device

Currently fallback configuration is loaded once per driver instance.
With multiple HFI devices in the same system the current code may not
load the platform config data for the device. Change fallback platform
config data loading to be per device.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/firmware.c
drivers/infiniband/hw/hfi1/platform.c