[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b12ba8c7-4dda-4e8f-b4a5-da02f8fdc262@amd.com>
Date: Mon, 17 Feb 2025 13:17:13 +0000
From: Alejandro Lucero Palau <alucerop@....com>
To: Simon Horman <horms@...nel.org>
Cc: linux-cxl@...r.kernel.org, netdev@...r.kernel.org,
dan.j.williams@...el.com, edward.cree@....com, davem@...emloft.net,
kuba@...nel.org, pabeni@...hat.com, edumazet@...gle.com, dave.jiang@...el.com
Subject: Re: [PATCH v10 04/26] cxl: move register/capability check to driver
On 2/7/25 12:52, Simon Horman wrote:
> On Wed, Feb 05, 2025 at 03:19:28PM +0000, alucerop@....com wrote:
>> From: Alejandro Lucero <alucerop@....com>
>>
>> Type3 has some mandatory capabilities which are optional for Type2.
>>
>> In order to support same register/capability discovery code for both
>> types, avoid any assumption about what capabilities should be there, and
>> export the capabilities found for the caller doing the capabilities
>> check based on the expected ones.
>>
>> Signed-off-by: Alejandro Lucero <alucerop@....com>
> ...
>
>> diff --git a/drivers/cxl/core/regs.c b/drivers/cxl/core/regs.c
> ...
>
>> @@ -117,7 +124,7 @@ EXPORT_SYMBOL_NS_GPL(cxl_probe_component_regs, "CXL");
>> * Probe for device register information and return it in map object.
>> */
>> void cxl_probe_device_regs(struct device *dev, void __iomem *base,
>> - struct cxl_device_reg_map *map)
>> + struct cxl_device_reg_map *map, unsigned long *caps)
> nit: The Kernel doc for cxl_probe_device_regs() should also be updated
> to document caps.
Yes, I'll do it.
Thanks
Powered by blists - more mailing lists