[PATCH v2 13/18] pci: Map bars with offset and length

Andrew Scull ascull at google.com
Wed Apr 13 18:48:52 CEST 2022


On Wed, 13 Apr 2022 at 15:05, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Wed, Mar 30, 2022 at 12:59 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 migtate the previous callers.
>
> migtate?

*migrate -- will fix

> >
> > Signed-off-by: Andrew Scull <ascull at google.com>
> > ---
> >  arch/x86/cpu/baytrail/cpu.c             |  2 +-
> >  drivers/ata/ahci.c                      |  8 +++----
> >  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/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                | 28 +++++++++++++++++--------
> >  drivers/spi/octeon_spi.c                |  2 +-
> >  drivers/usb/host/ohci-pci.c             |  2 +-
> >  drivers/virtio/virtio_pci_legacy.c      |  2 +-
> >  include/pci.h                           |  5 ++++-
> >  test/dm/pci.c                           | 12 +++++------
> >  29 files changed, 63 insertions(+), 50 deletions(-)
> >
>
> Regards,
> Bin


More information about the U-Boot mailing list