]> git.ipfire.org Git - thirdparty/linux.git/commit
cxl/pci: Rename cxl_setup_parent_dport() and cxl_dport_map_regs()
authorLi Ming <ming4.li@intel.com>
Fri, 30 Aug 2024 06:13:06 +0000 (06:13 +0000)
committerDave Jiang <dave.jiang@intel.com>
Tue, 3 Sep 2024 22:29:33 +0000 (15:29 -0700)
commit577a67662ff529f617981fe9692ff277b5756402
tree2a5cc91adbd3db325112246053a52050c6901a5f
parent91c0e9d6a205ab0e318dc0dc6e72cbbdb21f8094
cxl/pci: Rename cxl_setup_parent_dport() and cxl_dport_map_regs()

The name of cxl_setup_parent_dport() function is not clear, the function
is used to initialize AER and RAS capabilities on a dport, therefore,
rename the function to cxl_dport_init_ras_reporting(), it is easier for
user to understand what the function does. Besides, adjust the order of
the function parameters, the subject of cxl_dport_init_ras_reporting()
is a cxl dport, so a struct cxl_dport as the first parameter of the
function should be better.

cxl_dport_map_regs() is used to map CXL RAS capability on a cxl dport,
using cxl_dport_map_ras() as the function name.

Signed-off-by: Li Ming <ming4.li@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240830061308.2327065-1-ming4.li@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/pci.c
drivers/cxl/cxl.h
drivers/cxl/mem.c
tools/testing/cxl/Kbuild
tools/testing/cxl/test/mock.c