]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dax/hmem: Factor HMEM registration into __hmem_register_device()
authorSmita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Sun, 22 Mar 2026 19:53:35 +0000 (19:53 +0000)
committerDave Jiang <dave.jiang@intel.com>
Fri, 27 Mar 2026 17:15:28 +0000 (10:15 -0700)
commit116be1e112cbcb664887e44b74f27316a5fef861
tree4b31a69131a823b83aa015065ebe16a075d9735d
parent14f2e2ebf31157a873536a7212502bd955b69647
dax/hmem: Factor HMEM registration into __hmem_register_device()

Separate the CXL overlap check from the HMEM registration path and keep
the platform-device setup in a dedicated __hmem_register_device().

This makes hmem_register_device() the policy entry point for deciding
whether a range should be deferred to CXL, while __hmem_register_device()
handles the HMEM registration flow.

No functional changes.

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260322195343.206900-3-Smita.KoralahalliChannabasappa@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/dax/hmem/hmem.c