Subject: Re: [PATCH v9 04/27] cxl/pci: add check for validating capabilities

From: Jonathan Cameron <[email-masked]>
Date: Thu, 2 Jan 2025 14:38:13 +0000

On Mon, 30 Dec 2024 21:44:22 +0000
[email-masked] wrote:

> From: Alejandro Lucero <[email-masked]>
> 
> 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 <[email-masked]>
> Reviewed-by: Zhi Wang <[email-masked]>

Reviewed-by: Jonathan Cameron <[email-masked]>