aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorRobert Richter <[email protected]>2023-10-18 19:16:58 +0200
committerDan Williams <[email protected]>2023-10-27 20:13:37 -0700
commit4d758764e7f9db83806135f3bfcff1ab64f16e60 (patch)
treefe3e73cb06fadd8f540a584a13c18c079c51996a /tools/testing/selftests/bpf/progs/test_autoload.c
parentd8add49263a98d766e5758dc2ec9f83c3b685c12 (diff)
cxl/port: Pre-initialize component register mappings
The component registers of a component may not exist and cxl_setup_comp_regs() will fail for that reason. In another case, Software may not use and set those registers up. cxl_setup_comp_regs() is then called with a base address of CXL_RESOURCE_NONE. Both are valid cases, but the function returns without initializing the register map. Now, a missing component register block is not necessarily a reason to fail (feature is optional or its existence checked later). Change cxl_setup_comp_regs() to also use components with the component register block missing. Thus, always initialize struct cxl_register_map with valid values, set @dev and make @resource CXL_RESOURCE_NONE. The change is in preparation of follow-on patches. Signed-off-by: Terry Bowman <[email protected]> Signed-off-by: Robert Richter <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions