]> git.ipfire.org Git - people/ms/linux.git/commit
IB/hfi1: Move chip specific functions to chip.c
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 6 Jan 2020 13:41:44 +0000 (08:41 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 10 Jan 2020 14:57:16 +0000 (10:57 -0400)
commitde730f71919b1ade900a6c8a91a9fe7011b1b53b
tree3215168e7e0dd87bc12236f66be62884692fe331
parent14e23bd6d22123f6f3b2747701fa6cd4c6d05873
IB/hfi1: Move chip specific functions to chip.c

Move routines and defines associated with hdrq size validation to a chip
specific routine since the limits are specific to the device.

Fix incorrect value for min size 2 -> 32

CSR writes should also be in chip.c.

Create a chip routine to write the hdrq specific CSRs and call as
appropriate.

Link: https://lore.kernel.org/r/20200106134144.119356.74312.stgit@awfm-01.aw.intel.com
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/init.c