Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1969207imw; Sat, 16 Jul 2022 20:37:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1si878wjnAdpfLW680UNOCI40CLOZn0oM8zeaKpbAM7CKnsZZ2EOaF/WYHiBGBcAGMoZx59 X-Received: by 2002:a17:907:d88:b0:72b:1127:33f5 with SMTP id go8-20020a1709070d8800b0072b112733f5mr20975026ejc.725.1658029068884; Sat, 16 Jul 2022 20:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658029068; cv=none; d=google.com; s=arc-20160816; b=J/cO/ItxVORA4oyPjazXT/OULCyVx/pRDQAZ1PDz36rac/7BbJNPrx5lJhTfMdRCDj HkNM9VmeIrse6lwAZtdZsF6TKbDnzDT06p49AIMpFCPS7muN9E1BGVZE0F6QzlmX2uAi tIdRefIjeV7tKrrUaKlwEvW9GvlBpBwdCwp2J+BFgm8hilmUqSsrV9MK6DuewkLD/QN2 fGTK46PwpL11gzywYv8ZYeS7xwliv/D/nEdAsA+RU9Qqptz534JVATAf44R89d4HgIp7 NCZmZMHHi1RrvsNqXW/5RjrU8asaKmKMJMLQeIcobm/03xRDJZdyUji1rONu8EefDwFM /Q/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TP3NuknBFwR+HMAb9EGFICsetJYvdp1cQE+vF2pIYIY=; b=uUN157+aunBla2FJyQ+jHvFSJ9UJ9hDHeMNibdpGVTafu+2G9N7+6nrV8hkNdLk423 ApeFY9d52jClnwjYU7uUOC0nBmV4JYkumOazDrrQjnQ/NnBXZMyllrUNzZIsN6OmXSdu 0q4/hFtHyoEJkzf31xuQUZjqMGO/9+UpM8XzLbB3PNsyRXWZOFSSkUFDQQm0PI0LULIH su9ssqV08jkWzAXk0bvGr0iGQLQTRr8g8eDOLKWXABZa4g5j6W8XLqQNPMe6Rx2dZFeO cGs/wtZWm1lWjBxqi3VI9IeARfiYcn9HYtM+qAqYAGyH9h5Fk1r+F7jUUIW3z4k2bHvW UOmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Y3FoT4HN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a056402274300b0043ad89e8c77si12907471edd.14.2022.07.16.20.37.24; Sat, 16 Jul 2022 20:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Y3FoT4HN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbiGQDfF (ORCPT + 99 others); Sat, 16 Jul 2022 23:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbiGQDfE (ORCPT ); Sat, 16 Jul 2022 23:35:04 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24CB15FE7; Sat, 16 Jul 2022 20:35:02 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id y141so7935950pfb.7; Sat, 16 Jul 2022 20:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TP3NuknBFwR+HMAb9EGFICsetJYvdp1cQE+vF2pIYIY=; b=Y3FoT4HNok10kBgoxv8WDEwn7zhDTYRu388hTCVBTmj3jFmwNCRlF4dFGh7oEuyIwg uyNyNXTrdUMFb3CX3qqX9H8uJQru77P34dUuQ1Rho9F49MWYkMmzHApFpWXNyJKWTuvx zZztno86ZjOJejUTStftEwZCSIuea95+j1XZjUQ3IpsXo6oPd7y/IdOjGpnmxfOm9lq7 lx0UCoTTCxI1SDY+i2kudzu/sdz2xI2+IQqP4HjKSbPOm+MTfusHyARBWdPMhmWgJJXd PP9qEI/xJn3afWmN0tvIbMlAseNKnvLFFzV8Pj/W+Eo9xcXbO5KCPWqrqdO2m+Jfx7Si Ps/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TP3NuknBFwR+HMAb9EGFICsetJYvdp1cQE+vF2pIYIY=; b=hjG8l9oWNQ8Lwf4S7xuXWJ9saDcnZVyHiEFRwRzy9F7LSxMbY/V1GQLn3OoWKIuR07 HWrqUBh36jUOvHEv72Go9FLD6qtRMm2upqmfX9D82ury+fqftq3Iw3U0kFh2X0561mZ5 IrC6W6sbqiinqU5QGqK3oZsD26O/ReKi36jASRBBCw5wRKBLaKTwkDGwiu6fjXCbkodF 9fJLaEx7P1mC1mmWUolH5WyOONm8hQcmRBEkqFmlXCDVQQU6s2qkkpVcf+Q5yu0Qa8qL meJG+6Bezs1rLStjecaFmc1lo8gme2wc/5X/KAOJNhMwhuY4OZZ9APraztmP6Zvnc6ai mGhg== X-Gm-Message-State: AJIora/TcaiOk1Povr52DC7cw2FHXyzKMyftXfRlKh1NmPcWoQh3xqiT gbUFAPg1cs3PvzW7PTN0VfDexSTtS/I= X-Received: by 2002:a05:6a00:2484:b0:52b:2be0:2191 with SMTP id c4-20020a056a00248400b0052b2be02191mr14476822pfv.51.1658028901844; Sat, 16 Jul 2022 20:35:01 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id b15-20020a170902650f00b00163d76696e1sm6275909plk.102.2022.07.16.20.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 20:35:01 -0700 (PDT) From: Stafford Horne To: LKML Cc: Arnd Bergmann , Stafford Horne , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org Subject: [PATCH v2 0/2] Updates for asm-generic/pci.h Date: Sun, 17 Jul 2022 12:34:51 +0900 Message-Id: <20220717033453.2896843-1-shorne@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When reviewing the OpenRISC PCI support patch Arnd suggested that we avoid copying arm64 and riscv asm/pci.h and moving that to be the new asm-generic/pci.h. This patch does that by first moving the old pci.h definition of pci_get_legacy_ide_irq out to the architectures that use it, this turns out to only be x86. Next, we create the new pci.h definition. Since v1: - Remove definition of pci_get_legacy_ide_irq on architectures not using CONFIG_PNP, which eliminated most. - Add ifdef around PCIBIOS_MIN_MEM for consistency. Stafford Horne (2): asm-generic: Remove pci.h copying remaining code to x86 asm-generic: Add new pci.h and use it arch/alpha/include/asm/pci.h | 1 - arch/arm64/include/asm/pci.h | 12 +++------ arch/csky/include/asm/pci.h | 24 +++-------------- arch/ia64/include/asm/pci.h | 1 - arch/m68k/include/asm/pci.h | 7 +++-- arch/powerpc/include/asm/pci.h | 1 - arch/riscv/include/asm/pci.h | 25 +++--------------- arch/s390/include/asm/pci.h | 1 - arch/sparc/include/asm/pci.h | 9 ------- arch/um/include/asm/pci.h | 24 ++--------------- arch/x86/include/asm/pci.h | 6 +++-- arch/xtensa/include/asm/pci.h | 3 --- include/asm-generic/pci.h | 47 ++++++++++++++++++++++++---------- 13 files changed, 54 insertions(+), 107 deletions(-) -- 2.36.1