On Mon, 30 Dec 2024 21:44:22 +0000
alejandro.lucero-palau@amd.com wrote:
From: Alejandro Lucero <redacted>
During CXL device initialization supported capabilities by the device
are discovered. Type3 and Type2 devices have different mandatory
capabilities and a Type2 expects a specific set including optional
capabilities.
Add a function for checking expected capabilities against those found
during initialization and allow those mandatory/expected capabilities to
be a subset of the capabilities found.
Rely on this function for validating capabilities instead of when CXL
regs are probed.
Signed-off-by: Alejandro Lucero <redacted>
Reviewed-by: Zhi Wang <zhiw@nvidia.com>
Reviewed-by: Jonathan Cameron <redacted>