cxl/mem: Merge cxl_dvsec_ranges() and cxl_hdm_decode_init()
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2022 23:35:00 +0000 (16:35 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 19 May 2022 15:50:41 +0000 (08:50 -0700)
commita12562bb70776093b270f79a4b6ef18f4bcead2b
treec1a376497302c826d74bbda4d96d617270161928
parentdd2d42ad6f422076d1bd49b132bec74376c26f5c
cxl/mem: Merge cxl_dvsec_ranges() and cxl_hdm_decode_init()

In preparation for changing how the driver handles 'mem_enable' in the CXL
DVSEC control register. Merge the contents of cxl_hdm_decode_init() into
cxl_dvsec_ranges() and rename the combined function cxl_hdm_decode_init().
The possible cleanups and fixes that result from this merge are saved for a
follow-on change.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/165291690027.1426646.10249756632415633752.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/pci.c
drivers/cxl/cxlpci.h
drivers/cxl/mem.c
tools/testing/cxl/Kbuild
tools/testing/cxl/mock_mem.c [deleted file]
tools/testing/cxl/test/mock.c