Re: [PATCH 2/2] cxl/core: Skip non-CXL capabilities in MCAP

From: Lukas Wunner

Date: Sun Aug 16 2026 - 07:22:40 EST


On Sun, Aug 16, 2026 at 04:49:57PM +0800, peng.guo@xxxxxxxxxxxxxxxx wrote:
> +++ b/drivers/cxl/core/regs.c
> @@ -134,7 +134,13 @@ void cxl_probe_device_regs(struct device *dev, void __iomem *base,
> for (cap = 1; cap <= cap_count; cap++) {
> struct cxl_reg_map *rmap;
> u32 offset, length;
> - u16 cap_id;
> + u16 cap_id, vendor_id;
> +

Nit: Move the u16 line above the u32 line to maintain inverse Christmas
tree convention.

Thanks,

Lukas