]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/core: Introduce a new helper cxl_resource_contains_addr()
authorLi Ming <ming.li@zohomail.com>
Fri, 11 Jul 2025 03:23:55 +0000 (11:23 +0800)
committerDave Jiang <dave.jiang@intel.com>
Fri, 11 Jul 2025 16:46:53 +0000 (09:46 -0700)
commit5b6031c832c2747d58d3f0130098d965ef050b9a
tree3956e368b1fddce10e5bd35be1745eb9b4486a7c
parentac0fe6a5731700bcea6fecfd5d0b76c0454b3a20
cxl/core: Introduce a new helper cxl_resource_contains_addr()

In CXL subsystem, many functions need to check an address availability
by checking if the resource range contains the address. Providing a new
helper function cxl_resource_contains_addr() to check if the resource
range contains the input address.

Suggested-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Li Ming <ming.li@zohomail.com>
Tested-by: Shiju Jose <shiju.jose@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20250711032357.127355-2-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/core.h
drivers/cxl/core/hdm.c