diff options
author | Ben Widawsky <[email protected]> | 2022-01-23 16:29:10 -0800 |
---|---|---|
committer | Dan Williams <[email protected]> | 2022-02-08 22:57:28 -0800 |
commit | 303ebc1b1741b6a18349d8e5753c2d25fdb41a21 (patch) | |
tree | 25c8a89c652a2fef648efc8fbfddb2d20ccbd291 /lib/mpi/mpi-div.c | |
parent | 8baa787b93dbda6b24081297b934e8edd886d4bb (diff) |
cxl/acpi: Map component registers for Root Ports
This implements the TODO in cxl_acpi for mapping component registers.
cxl_acpi becomes the second consumer of CXL register block enumeration
(cxl_pci being the first). Moving the functionality to cxl_core allows
both of these drivers to use the functionality. Equally importantly it
allows cxl_core to use the functionality in the future.
CXL 2.0 root ports are similar to CXL 2.0 Downstream Ports with the main
distinction being they're a part of the CXL 2.0 host bridge. While
mapping their component registers is not immediately useful for the CXL
drivers, the movement of register block enumeration into core is a vital
step towards HDM decoder programming.
Signed-off-by: Ben Widawsky <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
[djbw: fix cxl_regmap_to_base() failure cases]
Link: https://lore.kernel.org/r/164298415080.3018233.14694957480228676592.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions