]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/memdev: Introduce cxl_class_memdev_type
authorDan Williams <djbw@kernel.org>
Tue, 19 May 2026 21:01:57 +0000 (14:01 -0700)
committerDave Jiang <dave.jiang@intel.com>
Fri, 12 Jun 2026 20:47:29 +0000 (13:47 -0700)
commit2ed519c21bb4fbac5d544ef4b1f98d515b18036d
tree9d107cd5ed109fb8f25e403f427f49f0e42cb78c
parentbd3a6ff4b84e0fc3fca8556d338270603df13f2e
cxl/memdev: Introduce cxl_class_memdev_type

In preparation for memdev's without mailbox related infrastructure,
introduce cxl_class_memdev_type as a superset of a cxl_memdev_type.
Effectively the only difference is that cxl_class_memdev_type exports
common sysfs attributes where cxl_memdev_type has none.

Related to this is all the cxl_mem_probe() paths that assume the presence
of a class device mailbox are updated to skip that requirement.

Co-developed-by: Alejandro Lucero <alucerop@amd.com>
Signed-off-by: Alejandro Lucero <alucerop@amd.com>
Signed-off-by: Dan Williams <djbw@kernel.org>
Tested-by: ALejandro Lucero <alucerop@amd.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260519210158.1499795-5-djbw@kernel.org
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/memdev.c
drivers/cxl/mem.c