]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/port: Move endpoint component register management to cxl_port
authorDan Williams <dan.j.williams@intel.com>
Sat, 31 Jan 2026 00:04:02 +0000 (16:04 -0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 2 Feb 2026 15:46:17 +0000 (08:46 -0700)
commitdab7162d0ae782295c2c2cff4bb386ee6ae5d566
tree0b452a0f5c3207ef8d2ea60aff505278242f7b1f
parentef1df6cf69785ec6c949ecfa92c49cfc5e237576
cxl/port: Move endpoint component register management to cxl_port

In preparation for generic protocol error handling across CXL endpoints,
whether they be memory expander class devices or accelerators, drop the
endpoint component management from cxl_dev_state.

Organize all CXL port component management through the common cxl_port
driver.

Note that the end game is that drivers/cxl/core/ras.c loses all
dependencies on a 'struct cxl_dev_state' parameter and operates only on
port resources. The removal of component register mapping from cxl_pci is
an incremental step towards that.

Reviewed-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Terry Bowman <terry.bowman@amd.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20260131000403.2135324-9-dan.j.williams@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/ras.c
drivers/cxl/cxlmem.h
drivers/cxl/pci.c
drivers/cxl/port.c