cxl/mem: Move register locator logic into reg setup
authorBen Widawsky <ben.widawsky@intel.com>
Wed, 7 Apr 2021 22:26:21 +0000 (15:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 26 May 2021 18:20:18 +0000 (11:20 -0700)
commit1d5a4159074bde1b2d5e4a6f5ed34de70a83a39f
tree771394c75ec187dd72e9dca4908979ffb6e6a3d8
parent1b0a1a2a193400d305931a40ac68e89bcfdad9c5
cxl/mem: Move register locator logic into reg setup

Start moving code around to ultimately get rid of @cxlm.base. The
@cxlm.base member serves no purpose other than intermediate storage of
the offset found in cxl_mem_map_regblock() later used by
cxl_mem_setup_regs(). Aside from wanting to get rid of this useless
member, it will help later when adding new register block identifiers.

While @cxlm.base still exists, it will become trivial to remove it in a
future patch.

No functional change is meant to be introduced in this patch.

Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20210407222625.320177-4-ben.widawsky@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/pci.c