]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1067e4fa77b5ae3eeebf24f4abc1258d8fec0ee
tree771394c75ec187dd72e9dca4908979ffb6e6a3d8
parent82e48dfb65d57ccebded3dd4ff5597d0c176f4cf
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