[PATCH 02/21] dm: pci: Update the PCI read_config() method to const dev *

sjg at google.com sjg at google.com
Wed Feb 5 18:57:03 CET 2020


> -----Original Message-----
> From: Simon Glass <sjg at chromium.org>
> Sent: Monday, January 27, 2020 11:50 PM
> To: U-Boot Mailing List <u-boot at lists.denx.de>
> Cc: Simon Glass <sjg at chromium.org>; Alex Marginean
> <alexm.osslist at gmail.com>; Bao Xiaowei <Xiaowei.Bao at nxp.com>; Bin
> Meng <bmeng.cn at gmail.com>; Frank Wunderlich <frank-w at public-files.de>;
> GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream at mediatek.com>;
> Heiko Schocher <hs at denx.de>; Hou Zhiqiang <Zhiqiang.Hou at nxp.com>;
> Jaehoon Chung <jh80.chung at samsung.com>; Tan, Ley Foon
> <ley.foon.tan at intel.com>; Marek Behún <marek.behun at nic.cz>; Marek
> Vasut <marek.vasut+renesas at gmail.com>; Marek Vasut
> <marek.vasut at gmail.com>; Michael Walle <michael at walle.cc>; Michal
> Simek <monstr at monstr.eu>; Pankaj Bansal <pankaj.bansal at nxp.com>;
> Pavel Herrmann <morpheus.ibis at gmail.com>; Prabhakar Kushwaha
> <prabhakar.kushwaha at nxp.com>; Priyanka Jain <priyanka.jain at nxp.com>;
> Ramon Fried <ramon.fried at gmail.com>; Ryder Lee
> <ryder.lee at mediatek.com>; Sekhar Nori <nsekhar at ti.com>; Stefan Roese
> <sr at denx.de>; Thierry Reding <treding at nvidia.com>; Wasim Khan
> <wasim.khan at nxp.com>; Weijie Gao <weijie.gao at mediatek.com>; liuhao
> <liuhao at phytium.com.cn>; shuyiqi <shuyiqi at phytium.com.cn>
> Subject: [PATCH 02/21] dm: pci: Update the PCI read_config() method to
> const dev *
>
> At present this method uses a non-const udevice pointer, but the call should
> not modify the device. Use a const pointer.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>

For drivers/pci/pcie_intel_fpga.c,
Reviewed-by: Ley Foon Tan <ley.foon.tan at intel.com>

> ---
>
>  drivers/misc/p2sb_emul.c           |  5 +++--
>  drivers/misc/swap_case.c           |  9 +++++----
>  drivers/pci/pci-aardvark.c         |  2 +-
>  drivers/pci/pci-emul-uclass.c      |  2 +-
>  drivers/pci/pci-rcar-gen2.c        |  4 ++--
>  drivers/pci/pci-rcar-gen3.c        |  2 +-
>  drivers/pci/pci-uclass.c           | 14 ++++++++------
>  drivers/pci/pci_mpc85xx.c          |  2 +-
>  drivers/pci/pci_mvebu.c            |  2 +-
>  drivers/pci/pci_sandbox.c          |  2 +-
>  drivers/pci/pci_sh7751.c           |  2 +-
>  drivers/pci/pci_tegra.c            |  2 +-
>  drivers/pci/pci_x86.c              |  5 +++--
>  drivers/pci/pcie_dw_mvebu.c        |  2 +-
>  drivers/pci/pcie_dw_ti.c           |  2 +-
>  drivers/pci/pcie_ecam_generic.c    | 11 ++++++-----
>  drivers/pci/pcie_fsl.c             |  2 +-
>  drivers/pci/pcie_imx.c             |  2 +-
>  drivers/pci/pcie_intel_fpga.c      |  4 ++--
>  drivers/pci/pcie_layerscape.c      |  4 ++--
>  drivers/pci/pcie_layerscape_gen4.c |  2 +-
>  drivers/pci/pcie_mediatek.c        |  4 ++--
>  drivers/pci/pcie_phytium.c         |  7 +++----
>  drivers/pci/pcie_xilinx.c          |  4 ++--
>  drivers/power/acpi_pmc/pmc_emul.c  |  2 +-
>  include/pci.h                      | 22 ++++++++++++----------
>  26 files changed, 64 insertions(+), 57 deletions(-)
>
Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list