]> git.dujemihanovic.xyz Git - linux.git/commit
IB/hfi1: Do not override given pcie_pset value
authorBartlomiej Dudek <bartlomiej.dudek@intel.com>
Thu, 1 Feb 2018 18:52:20 +0000 (10:52 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 1 Feb 2018 22:43:30 +0000 (15:43 -0700)
commit6391214f4d80e32caf622bacab64ed99ed43e1eb
tree15f30d65646aa9ccfe380219f72229ddfd6bc700
parentaca7f4fc320b5a507da4a41454582440f65cde4c
IB/hfi1: Do not override given pcie_pset value

During PCIe Gen 3 transistion, pcie_pset is read and might be overridden
to a default value(i.e. 255) in do_pcie_gen3_transition() routine.

If the pcie_pset value is overridden then this new value will be used
during initialization of next adapter on a different card.

Introducing a new local variable to avoid modification of pcie_pset

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Bartlomiej Dudek <bartlomiej.dudek@intel.com>
Signed-off-by: Patel Jay P <jay.p.patel@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/pcie.c