cxl/core: Define a 'struct cxl_switch_decoder'
authorDan Williams <dan.j.williams@intel.com>
Thu, 19 May 2022 00:52:23 +0000 (17:52 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 21 Jul 2022 15:34:16 +0000 (08:34 -0700)
commite636479e2f1b611892783405a302221e4f069e4f
tree6203f9e3dcc9e425428d1c0946d709ab74f6f7cc
parent6b625b2bb8ffc6e903a7891008bf423858bbffe6
cxl/core: Define a 'struct cxl_switch_decoder'

Currently 'struct cxl_decoder' contains the superset of attributes
needed for all decoder types. Before more type-specific attributes are
added to the common definition, reorganize 'struct cxl_decoder' into type
specific objects.

This patch, the first of three, factors out a cxl_switch_decoder type.
See the new kdoc for what a 'struct cxl_switch_decoder' represents in a
CXL topology.

Co-developed-by: Ben Widawsky <bwidawsk@kernel.org>
Signed-off-by: Ben Widawsky <bwidawsk@kernel.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/165784325340.1758207.5064717153608954960.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c
drivers/cxl/core/hdm.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h
tools/testing/cxl/test/cxl.c