Re: [PATCH 06/15] PCI: endpoint: pci-epf-vntb: Fold MW runtime state into a struct

From: Frank Li

Date: Thu Mar 12 2026 - 16:35:35 EST


On Fri, Mar 13, 2026 at 01:49:56AM +0900, Koichiro Den wrote:
> The next patches add per-memory-window offsets, shared BAR placement,
> and optional DMA export state. Keeping per-window state in parallel
> arrays would make that work noisy and error-prone.
>
> Group the runtime memory-window state into struct epf_ntb_mw so
> follow-up changes can extend a single object instead of touching
> multiple arrays.

Simple said

PCI: endpoint: pci-epf-vntb: collect MW information into a struct

Group the runtime memory window state into struct epf_ntb_mw to improve
readability and make the code easier to extend.

No functional change intended.

Reviewed-by: Frank Li <Frank.Li@xxxxxxx>

>