[PATCH v3 14/18] pci: Update dm_pci_bus_to_virt() parameters

Bin Meng bmeng.cn at gmail.com
Fri Apr 22 09:38:06 CEST 2022


On Fri, Apr 22, 2022 at 12:11 AM Andrew Scull <ascull at google.com> wrote:
>
> Add mask parameter and reorder length parameter to match the other PCI
> address conversion functions. Using PCI_REGION_TYPE as the mask gives
> the old behaviour.
>
> It's converted from a macro to an inline function as the length
> parameter is now used twice, but should only be calculated once.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> ---
>  drivers/bios_emulator/atibios.c |  4 ++--
>  drivers/pci/pci-uclass.c        |  4 ++--
>  include/pci.h                   | 16 +++++++++++-----
>  3 files changed, 15 insertions(+), 9 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list