mirror of https://github.com/torvalds/linux.git
Testing revealed the following error message for a CXL memdev that has
Feature support:
[ 56.690430] cxl mem0: Resources present before probing
Attach the allocation of cxl_fwctl to the parent device of cxl_memdev.
devm_add_* calls for cxl_memdev should not happen before the memdev
probe function or outside the scope of the memdev driver.
cxl_test missed this bug because cxl_test always arranges for the
cxl_mem driver to be loaded before cxl_mock_mem runs. So the driver core
always finds the devres list idle in that case.
[DJ: Updated subject title and added commit log suggestion from djbw]
Fixes:
|
||
|---|---|---|
| .. | ||
| test | ||
| Kbuild | ||
| config_check.c | ||
| cxl_acpi_test.c | ||
| cxl_core_exports.c | ||
| cxl_core_test.c | ||
| cxl_mem_test.c | ||
| cxl_pmem_test.c | ||
| cxl_port_test.c | ||
| mock_acpi.c | ||
| watermark.h | ||