cxl/hdm: Initialize decoder type for memory expander devices
authorDan Williams <dan.j.williams@intel.com>
Tue, 7 Jun 2022 18:21:40 +0000 (11:21 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 10 Jul 2022 20:41:49 +0000 (13:41 -0700)
commit9e9e44017db33a74177ffe91307b4c922fe2f094
treee597a87f389a00d5c1d761047c233437f8e08f53
parentee800010835db23c70acc01000f182955cab27a5
cxl/hdm: Initialize decoder type for memory expander devices

Unless and until accelerator (type-2) drivers start registering for
CXL.mem mapping services from the CXL subsystem core, initialize idle
HDM decoders to the "expander" type. I.e. the only CXL devices using the
CXL core presently are those implementing the CXL 2.0 Type-3 memory
expander device class code that the cxl_pci driver claims.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20220624041950.559155-6-dan.j.williams@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c