Re: [PATCH v4 1/2] PCI: endpoint: Add BAR subrange mapping support

From: Niklas Cassel

Date: Thu Jan 08 2026 - 05:45:28 EST


On Thu, Jan 08, 2026 at 10:37:35AM +0100, Niklas Cassel wrote:
> @@ -596,6 +596,9 @@ int pci_epc_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
> if (!epc_features)
> return -EINVAL;
>
> + if (epf_bar->flags && !epc_features->subrange_mapping)
> + return -EINVAL;

This should of course have been:

if (epf_bar->use_submap && !epc_features->subrange_mapping)
return -EINVAL;


(I simply used flags in order to compile test without applying your series.)


Kind regards,
Niklas