Re: [PATCH v5 2/4] PCI: endpoint: Add helper function pci_epf_get_bar_required_size()

From: Niklas Cassel

Date: Mon Oct 13 2025 - 05:04:48 EST


On Thu, Oct 09, 2025 at 04:54:36PM -0400, Frank Li wrote:
> Introduce pci_epf_get_bar_required_size() to retrieve the required BAR
> size and memory size. Prepare for adding support to set an MMIO address to
> a specific BAR.
>
> Use two variables 'size' and 'aligned_mem_size' to avoid confuse.

Nit: I still think this is wrong. Probably:
Use two parameters 'bar_size' and 'aligned_mem_size' to avoid confusion.

>
> No functional changes.
>
> Signed-off-by: Frank Li <Frank.Li@xxxxxxx>

Reviewed-by: Niklas Cassel <cassel@xxxxxxxxxx>