IB/hfi1: Get the hfi1_devdata structure as early as possible
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Thu, 16 Aug 2018 06:03:46 +0000 (23:03 -0700)
committerDoug Ledford <dledford@redhat.com>
Sat, 1 Sep 2018 12:11:34 +0000 (08:11 -0400)
commit57f97e96625fe89246827ebb4d129741a4f83c40
treede7d32e8470e0a72c7f95a8cbf45c66bc264051c
parent6a516bc9d70b291d3271c6c66b89c25e3c2b5795
IB/hfi1: Get the hfi1_devdata structure as early as possible

Currently several things occur before the hfi1_devdata structure is
allocated.  This leads to an inconsistent logging ability and makes
it more difficult to restructure some code paths.

Allocate (and do a minimal init) the structure as soon as possible.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Sadanand Warrier <sadanand.warrier@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/pcie.c