[PATCH v3 12/18] pci: Map bars with offset and length

Bin Meng bmeng.cn at gmail.com
Fri Apr 22 08:52:06 CEST 2022


On Fri, Apr 22, 2022 at 12:11 AM Andrew Scull <ascull at google.com> wrote:
>
> Evolve dm_pci_map_bar() to include an offset and length parameter. These
> allow a portion of the memory to be mapped and range checks to be
> applied.
>
> Passing both the offset and length as zero results in the previous
> behaviour and this is used to migrate the previous callers.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> ---
>  arch/x86/cpu/baytrail/cpu.c             |  2 +-
>  drivers/ata/ahci.c                      |  8 ++++----
>  drivers/ata/sata_sil.c                  |  4 ++--
>  drivers/gpio/octeon_gpio.c              |  2 +-
>  drivers/i2c/designware_i2c_pci.c        |  2 +-
>  drivers/i2c/intel_i2c.c                 |  2 +-
>  drivers/i2c/octeon_i2c.c                |  2 +-
>  drivers/mmc/octeontx_hsmmc.c            |  2 +-
>  drivers/mmc/pci_mmc.c                   |  2 +-
>  drivers/mtd/nand/raw/octeontx_bch.c     |  4 ++--
>  drivers/mtd/nand/raw/octeontx_nand.c    |  2 +-
>  drivers/net/bnxt/bnxt.c                 |  6 +++---
>  drivers/net/e1000.c                     |  2 +-
>  drivers/net/fsl_enetc.c                 |  2 +-
>  drivers/net/fsl_enetc_mdio.c            |  2 +-
>  drivers/net/mscc_eswitch/felix_switch.c |  4 ++--
>  drivers/net/octeontx/bgx.c              |  2 +-
>  drivers/net/octeontx/nic_main.c         |  2 +-
>  drivers/net/octeontx/nicvf_main.c       |  2 +-
>  drivers/net/octeontx/smi.c              |  2 +-
>  drivers/net/octeontx2/cgx.c             |  2 +-
>  drivers/net/octeontx2/rvu_af.c          |  2 +-
>  drivers/net/octeontx2/rvu_pf.c          |  2 +-
>  drivers/net/pch_gbe.c                   |  2 +-
>  drivers/nvme/nvme_pci.c                 |  4 ++--
>  drivers/pci/pci-uclass.c                | 27 ++++++++++++++++---------
>  drivers/spi/octeon_spi.c                |  2 +-
>  drivers/usb/host/ehci-pci.c             |  2 +-
>  drivers/usb/host/ohci-pci.c             |  2 +-
>  drivers/usb/host/xhci-pci.c             |  2 +-
>  drivers/virtio/virtio_pci_legacy.c      |  2 +-
>  include/pci.h                           |  5 ++++-
>  test/dm/pci.c                           | 12 +++++------
>  33 files changed, 67 insertions(+), 55 deletions(-)
>

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


More information about the U-Boot mailing list