linux-stable/drivers/cxl
Robert Richter 573408049b cxl/core/regs: Add @dev to cxl_register_map
The corresponding device of a register mapping is used for devm
operations and logging. For operations with struct cxl_register_map
the device needs to be kept track separately. To simpify the involved
function interfaces, add @dev to cxl_register_map.

While at it also reorder function arguments of cxl_map_device_regs()
and cxl_map_component_regs() to have the object @cxl_register_map
first.

As a result a bunch of functions are available to be used with a
@cxl_register_map object.

This patch is in preparation of reworking the component register setup
code.

Signed-off-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230622205523.85375-7-terry.bowman@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2023-06-25 11:37:58 -07:00
..
core cxl/core/regs: Add @dev to cxl_register_map 2023-06-25 11:37:58 -07:00
Kconfig Merge branch 'for-6.3/cxl-ram-region' into cxl/next 2023-02-10 18:11:01 -08:00
Makefile cxl/pmem: Introduce nvdimm_security_ops with ->get_flags() operation 2022-11-30 16:30:47 -08:00
acpi.c cxl/acpi: Probe RCRB later during RCH downstream port creation 2023-06-25 11:35:20 -07:00
cxl.h cxl/core/regs: Add @dev to cxl_register_map 2023-06-25 11:37:58 -07:00
cxlmem.h cxl: Rename 'uport' to 'uport_dev' 2023-06-25 11:37:54 -07:00
cxlpci.h cxl: Wait Memory_Info_Valid before access memory related info 2023-05-18 16:42:41 -07:00
mem.c cxl: Rename 'uport' to 'uport_dev' 2023-06-25 11:37:54 -07:00
pci.c cxl/core/regs: Add @dev to cxl_register_map 2023-06-25 11:37:58 -07:00
pmem.c cxl/pmem: Fix nvdimm registration races 2023-02-13 17:01:05 -08:00
port.c cxl: Rename 'uport' to 'uport_dev' 2023-06-25 11:37:54 -07:00
security.c cxl/mbox: Enable cxl_mbox_send_cmd() users to validate output size 2022-12-06 14:36:02 -08:00