[PATCH v6 2/5] PCI: dwc: Allow glue drivers to return mutable EPC features
Niklas Cassel
cassel at kernel.org
Tue Jan 13 02:14:23 PST 2026
On Tue, Jan 13, 2026 at 11:37:12AM +0900, Koichiro Den wrote:
> The DesignWare EP midlayer needs to advertise additional capabilities at
> the DWC layer (e.g. subrange_mapping) without duplicating the same bit
> in every DWC-based glue driver and without copying feature structures.
>
> Change dw_pcie_ep_ops.get_features() to return a mutable
> struct pci_epc_features * and update all DWC-based glue drivers
> accordingly. The DWC midlayer can then adjust/augment the returned
> features while still exposing a const struct pci_epc_features * to the
> PCI EPC core.
>
> No functional change on its own.
>
> Suggested-by: Niklas Cassel <cassel at kernel.org>
> Signed-off-by: Koichiro Den <den at valinux.co.jp>
> ---
Reviewed-by: Niklas Cassel <cassel at kernel.org>
More information about the Linux-rockchip
mailing list