From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63003C4338F for ; Mon, 2 Aug 2021 00:55:28 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D8C561050 for ; Mon, 2 Aug 2021 00:55:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7D8C561050 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6136B8334F; Mon, 2 Aug 2021 02:55:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="XRDgwvKT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 600778332A; Mon, 2 Aug 2021 02:55:00 +0200 (CEST) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3077A832C3 for ; Mon, 2 Aug 2021 02:54:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22b.google.com with SMTP id o20so22150952oiw.12 for ; Sun, 01 Aug 2021 17:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/JfNO4EXcDDKI2OPBpUX0rEfX9UnUWQaPHR1nq2NmN0=; b=XRDgwvKTiL8eFcjpbVLOkIj4+Im9/UvY4kXGFHrKVctxLmVwREVnzCKzzdqOTkNd9f wA2QJhhRoalB2winNMaM5fZ9mY2GqaknUuovNTOMRiQTjA5U93PJL85BZKIs78TjFpIz 3+rdmqfvf7qU1SmrUn+10pW+PLWGCSC3Sr5qM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/JfNO4EXcDDKI2OPBpUX0rEfX9UnUWQaPHR1nq2NmN0=; b=VnB8L/yd7KS1HU9X3/8szwTrq1jvFjp1iXQcXFL5h2G61anHQVUn1+TjcAT5ir6bTV VC7KymXM3a1ZMbwEeIXN0Zi7Qi+4KHyOEQewek3rAwEIeTkynhcp+Lvszg1VXIeVKx3A uhb/ROZ4ZOao5bBTaDK1d6HavExtaMznict3Hb7RzZeDAWWAoUo8S4mCqACvZx2w8QT0 L1kWTpzPaFRrV01F0C0V7gkt1i78/p3WWeyk6SVlYve+Kg3jLaJQKQ6k46OuHBY/Fbaz 5+6Q8U6KYTqh9tkniFRCeUsbLPU5kSpPbleUHWPTqpG2syWDw3XyqLtBhTdQBSFUpNfh /NmQ== X-Gm-Message-State: AOAM530YS6rMaAIDrv5EBK2AkUg0sp7Gk4ygurbp9RtcLQnNR7V+WYMT ocPW0RdePwSJnpeBdh12CpfYmmLQ18/yY+Wp X-Google-Smtp-Source: ABdhPJzLviYc0npBb8yasVGCI1cZ0dPO30ZZmX//JCHf7UAYy6PoIKB7FePMpzOIJ2BUl8YG1j1Ijw== X-Received: by 2002:aca:3e45:: with SMTP id l66mr8927802oia.79.1627865689189; Sun, 01 Aug 2021 17:54:49 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s2sm1452616ooc.15.2021.08.01.17.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 17:54:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Albert Aribaud , Andy Fleming , Joe Hershberger , Marek Vasut , Mario Six , Oleksandr Zhadan and Michael Durrant , Pavel Herrmann , Priyanka Jain , Rob Herring , Stefan Roese , Stefano Babic , Wolfgang Denk Subject: [PATCH v2 00/32] pci: Drop all pre-driver model code Date: Sun, 1 Aug 2021 18:54:13 -0600 Message-Id: <20210802005446.2267075-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The hard work to actually enable DM_PCI everywhere was done recently. This series attempts to drop most of the code that it no-longer needed now that PCI has been converted to driver model. It also drops the UCP1020 board since it has various unique build issues. It doesn't even support driver model so it seems reasonable to just remove it. The DM_PCI option disappears and only PCI is left. We can drop about 50 ad-hoc CONFIGs also, but this series doesn't do that since it is probably best done when the CONFIGs are resynced. It does include a CONFIG resync patch which can be dropped if that is done separately. Changes in v2: - Update to mention DM_PCI instead - Fix tag to 'mips' from 'ppc' Simon Glass (32): pci: Drop old code from pci command ppc: Remove UCP1020 board pci: Drop old code from header file pci: Remove guard around compatibility functions pci: Drop DM_PCI check from fdtdec pci: Drop DM_PCI check from pci_common ppc: Drop CONFIG_SYS_PCI_SUBSYS_VENDORID pci: powerpc: Drop old code pci: freescale: Drop old code pci: dm: core: Drop DM_PCI check from devfdt_get_addr_pci() ppc: Drop DM_PCI from config files pci: acpi: Drop DM_PCI check from ahci pci: usb: Drop DM_PCI from ohci ppc: malta: Drop use of DM_PCI ppc: socrates: Drop use of DM_PCI pci: gt64120: Drop use of DM_PCI pci: msc01: Drop use of DM_PCI pci: imx: Drop use of DM_PCI pci: scsi: pci: Drop DM_PCI check from scsi pci: Drop DM_PCI check from bios_emul net: Drop DM_PCI check from designware driver pci: imx: Drop DM_PCI check from cpu driver pci: arm: mvebu: Drop DM_PCI check from pci: sata_sil: Drop DM_PCI checks distro_bootcmd: Drop DM_PCI check pci: Drop pci_init_board() pci: ppc: Drop ftpci100 driver ppc: Drop idt8t49n222a_serdes_clk driver ppc: Drop t4qds and b4860qds references pci: Drop PCI_INDIRECT_BRIDGE pci: Drop DM_PCI pci: Drop migration method .azure-pipelines.yml | 4 +- README | 3 - arch/Kconfig | 1 - arch/arm/Kconfig | 2 +- arch/arm/mach-imx/cpu.c | 4 - arch/arm/mach-imx/mx6/Kconfig | 2 +- arch/arm/mach-mvebu/arm64-common.c | 5 +- arch/mips/Kconfig | 2 +- arch/nds32/include/asm/arch-ag102/ag102.h | 2 - arch/powerpc/cpu/mpc83xx/pci.c | 160 ---- arch/powerpc/cpu/mpc85xx/Makefile | 1 - arch/powerpc/cpu/mpc85xx/pci.c | 191 ---- board/Arcturus/ucp1020/Kconfig | 28 +- board/Arcturus/ucp1020/MAINTAINERS | 7 - board/Arcturus/ucp1020/Makefile | 31 - board/Arcturus/ucp1020/README | 54 -- board/Arcturus/ucp1020/cmd_arc.c | 408 --------- board/Arcturus/ucp1020/ddr.c | 161 ---- board/Arcturus/ucp1020/law.c | 24 - board/Arcturus/ucp1020/spl.c | 127 --- board/Arcturus/ucp1020/spl_minimal.c | 67 -- board/Arcturus/ucp1020/tlb.c | 100 --- board/Arcturus/ucp1020/ucp1020.c | 372 -------- board/Arcturus/ucp1020/ucp1020.h | 45 - board/cavium/thunderx/thunderx.c | 7 - board/emulation/qemu-riscv/Kconfig | 1 - board/freescale/common/Makefile | 1 - board/freescale/common/cds_pci_ft.c | 59 -- .../common/idt8t49n222a_serdes_clk.c | 208 ----- .../common/idt8t49n222a_serdes_clk.h | 106 --- board/freescale/common/p_corenet/Makefile | 1 - board/freescale/common/p_corenet/pci.c | 25 - board/freescale/mpc8349emds/pci.c | 73 -- board/freescale/mpc837xerdb/Makefile | 1 - board/freescale/mpc837xerdb/pci.c | 109 --- board/freescale/mpc8548cds/mpc8548cds.c | 114 --- board/freescale/p1010rdb/p1010rdb.c | 11 - board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 11 - board/freescale/t102xrdb/Makefile | 1 - board/freescale/t102xrdb/pci.c | 25 - board/freescale/t104xrdb/Makefile | 1 - board/freescale/t104xrdb/pci.c | 25 - board/freescale/t208xqds/Makefile | 1 - board/freescale/t208xqds/pci.c | 25 - board/freescale/t208xrdb/Makefile | 1 - board/freescale/t208xrdb/pci.c | 25 - board/freescale/t4rdb/Makefile | 1 - board/freescale/t4rdb/pci.c | 25 - board/imgtec/malta/malta.c | 67 -- board/socionext/developerbox/Kconfig | 1 - board/socrates/socrates.c | 4 +- board/xes/common/fsl_8xxx_pci.c | 50 -- cmd/pci.c | 212 ----- common/Kconfig | 1 - configs/UCP1020_defconfig | 58 -- doc/board/freescale/b4860qds.rst | 453 ---------- doc/board/freescale/index.rst | 1 - doc/develop/driver-model/migration.rst | 9 - drivers/ata/ahci.c | 55 -- drivers/ata/sata_sil.c | 8 - drivers/ata/sata_sil.h | 4 - drivers/bios_emulator/atibios.c | 98 --- drivers/bios_emulator/bios.c | 39 - drivers/core/fdtaddr.c | 3 +- drivers/gpio/Kconfig | 2 +- drivers/i2c/Makefile | 2 +- drivers/net/Kconfig | 6 +- drivers/net/designware.c | 22 +- drivers/net/mscc_eswitch/Kconfig | 2 +- drivers/pci/Kconfig | 40 +- drivers/pci/Makefile | 2 - drivers/pci/pci_common.c | 4 +- drivers/pci/pci_ftpci100.c | 319 ------- drivers/pci/pci_gt64120.c | 64 -- drivers/pci/pci_indirect.c | 71 -- drivers/pci/pci_msc01.c | 64 -- drivers/pci/pcie_imx.c | 81 -- drivers/scsi/scsi.c | 6 - drivers/spi/Kconfig | 2 +- drivers/usb/host/ohci-hcd.c | 15 +- drivers/virtio/Kconfig | 2 +- include/ahci.h | 4 - include/bios_emul.h | 16 - include/config_distro_bootcmd.h | 5 - include/configs/MPC8349EMDS.h | 5 - include/configs/MPC8349EMDS_SDRAM.h | 5 - include/configs/MPC837XERDB.h | 3 - include/configs/MPC8540ADS.h | 2 - include/configs/MPC8548CDS.h | 16 - include/configs/MPC8560ADS.h | 2 - include/configs/P1010RDB.h | 28 - include/configs/P2041RDB.h | 17 - include/configs/T102xRDB.h | 17 - include/configs/T104xRDB.h | 20 - include/configs/T208xQDS.h | 20 - include/configs/T208xRDB.h | 20 - include/configs/T4240RDB.h | 21 - include/configs/UCP1020.h | 832 ------------------ include/configs/corenet_ds.h | 21 - include/configs/p1_p2_rdb_pc.h | 24 - include/configs/t4qds.h | 240 ----- include/init.h | 3 - include/pci.h | 76 +- lib/fdtdec.c | 10 +- scripts/config_whitelist.txt | 6 - test/dm/Makefile | 2 +- 106 files changed, 55 insertions(+), 5785 deletions(-) delete mode 100644 arch/powerpc/cpu/mpc85xx/pci.c delete mode 100644 board/Arcturus/ucp1020/MAINTAINERS delete mode 100644 board/Arcturus/ucp1020/Makefile delete mode 100644 board/Arcturus/ucp1020/README delete mode 100644 board/Arcturus/ucp1020/cmd_arc.c delete mode 100644 board/Arcturus/ucp1020/ddr.c delete mode 100644 board/Arcturus/ucp1020/law.c delete mode 100644 board/Arcturus/ucp1020/spl.c delete mode 100644 board/Arcturus/ucp1020/spl_minimal.c delete mode 100644 board/Arcturus/ucp1020/tlb.c delete mode 100644 board/Arcturus/ucp1020/ucp1020.c delete mode 100644 board/Arcturus/ucp1020/ucp1020.h delete mode 100644 board/freescale/common/idt8t49n222a_serdes_clk.c delete mode 100644 board/freescale/common/idt8t49n222a_serdes_clk.h delete mode 100644 board/freescale/common/p_corenet/pci.c delete mode 100644 board/freescale/mpc837xerdb/pci.c delete mode 100644 board/freescale/t102xrdb/pci.c delete mode 100644 board/freescale/t104xrdb/pci.c delete mode 100644 board/freescale/t208xqds/pci.c delete mode 100644 board/freescale/t208xrdb/pci.c delete mode 100644 board/freescale/t4rdb/pci.c delete mode 100644 configs/UCP1020_defconfig delete mode 100644 doc/board/freescale/b4860qds.rst delete mode 100644 drivers/pci/pci_ftpci100.c delete mode 100644 drivers/pci/pci_indirect.c delete mode 100644 include/configs/UCP1020.h delete mode 100644 include/configs/t4qds.h -- 2.32.0.554.ge1b32706d8-goog