Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp994943imw; Thu, 14 Jul 2022 15:05:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sld1GTRlnudlx6FTKxUzIFf8O5ekF7pLB+QFEcjIoDfsqEaGkIoMIJlov397YDX90a/7Gz X-Received: by 2002:a05:6402:51d0:b0:43a:d3f5:79e9 with SMTP id r16-20020a05640251d000b0043ad3f579e9mr14880792edd.411.1657836332833; Thu, 14 Jul 2022 15:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657836332; cv=none; d=google.com; s=arc-20160816; b=0nGF5oAP/C6QNfdau7Sz4VSe0LPf09x4WlxpAfJlcPp17V/dsRMRZitwku/OCswAZE S/P/RoOpAcHgjbp7Q8SnOU3m6hDzVDYRVPjM03cDtFM+zKNxcTgTH0r5pRO4+NJtU9Rb lRWdl465mlWYZj26StmGkDw+GneGH6sVLqUq3AoZLm0wvjdS3ELwNSFkXiRQAD+pTOJo rDhSivxragGY91YEQyeVuCK9a5eSfXWyGYmqDTSHOzKbJ9s3GUWSRJBqHb3fljz50kjm 0VTFAp47XcI10UCv+ZWSLC5BRt+YActMBzGdyborWF6p63xyWSB19Z8uED26Rxw+mWox qOGQ== 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=/JBraEEF7Pi/rPUlvSul3up/f1rkIrFL2lXpXxABUjo=; b=Tev39MGgt4cUsud6s49kwjgjI1Qd+7Pq/QuRwtVerDJq5DaoZTVH+QGDCnKjnIAH8N iqWmMQQwghrHDX8qYREIZCoXMQP57VHC3QBfbQ1jxf0h9J36AfEVCyzYMR3zcuChMZk8 4GJhxsmxVLZ/VfhoE8IyeG9wMmCs4CpZiJjjrdVS5F0hOAaJYbf6MoES8/uDqwE8DP9x ABrCq+OZldBmb+i93mBf2uQHnVD4QkqcrIgMoBfHEgMsjn+OkS8yvz7Zdp4wBXqtyqll lat59wai+g8a+JhSslIiu1tV7j4jDFq7xYvBhXAGGJ6dcSy/HNC2OAtuZyW4/G/IDX0J VAcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lscc9nAa; 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 ne35-20020a1709077ba300b00726a62cded2si4347133ejc.554.2022.07.14.15.05.08; Thu, 14 Jul 2022 15:05:32 -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=lscc9nAa; 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 S232402AbiGNVrU (ORCPT + 99 others); Thu, 14 Jul 2022 17:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbiGNVrT (ORCPT ); Thu, 14 Jul 2022 17:47:19 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D1E6F7C8; Thu, 14 Jul 2022 14:47:18 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id z1so1583113plb.1; Thu, 14 Jul 2022 14:47:18 -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=/JBraEEF7Pi/rPUlvSul3up/f1rkIrFL2lXpXxABUjo=; b=lscc9nAaqk/gLbSr2XL8YrPRs/zyT8T4SiE+UzcwyfJZDejV2V03/Ceml36zOXDw2j GSw5Bz+NY1ohcFs2Y+SbhIHhCmrrBRefc9Ctq2tTml3QpKdab/V6fYGRGmiVrgBUngI1 99Q4DNc0rMuLLiHGkogfp/rrBqI7OQKuhgDfVe9wNw9mtmWkUZ0MuZBbsOMzAVRzGvLD 9xrGld/ogqVffulMZ1eEaY/hE23kNAH0MTXlQDS3QZykMAvUoMSZwpUr0kXvMYTo6mw+ feoN81IqGiQNmpkPgcbCkP6v7rV2i5qe9SRfa03yGMJNePPiSyC36JkgtWtmZHn9FToR 7dKg== 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=/JBraEEF7Pi/rPUlvSul3up/f1rkIrFL2lXpXxABUjo=; b=6QwXP10Cr/vxxjLJSZ/JduPHFicz+Gs1pjFXtD0jKhHC6YW+vjazKoiGDCyOkl0YtC 1/Hl+aLEdkqCOEt5hPwpXjeUFVoaZ9UkiaShQfLRWUQk+J3wFZkk688aPqMzAUjllg/u vfdWnISFLvOf5rlQ++3rAbeB/yx9z2YiewUyJ0E3vQmj+fdWPM3UwyBWHpgI5+G0zl5k Rz9NV42wyjoGfa8A+IvUZYkdAfdlr7b99x04mEdiEisMlLTcN3hVdSQkMYqcDp4/ABBY vgU3sO8I2Atm8tKlVflU/tAOgE2xVhq7HSzBikqjJx7yAvWZd+b2SfDewhMUzIPRk5/F vREA== X-Gm-Message-State: AJIora8Sqxb2/rc66bp0RsaYxKzplpdwEWRVDzMdarjEddkfoJy5oRNi GVsOkqKEu6tM1brXZFI8tNYzK5aks4UKjQ== X-Received: by 2002:a17:90b:3c07:b0:1f0:eab4:79e4 with SMTP id pb7-20020a17090b3c0700b001f0eab479e4mr3015352pjb.186.1657835237487; Thu, 14 Jul 2022 14:47:17 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id v21-20020a17090ac91500b001f113765d48sm145572pjt.2.2022.07.14.14.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 14:47:17 -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: [RFC PATCH 0/2] Updates for asm-generic/pci.h Date: Fri, 15 Jul 2022 06:46:55 +0900 Message-Id: <20220714214657.2402250-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,T_SCC_BODY_TEXT_LINE 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. Next, we create the new pci.h definition. Stafford Horne (2): asm-generic: Remove pci.h copying code out to architectures asm-generic: Add new pci.h and use it arch/alpha/include/asm/pci.h | 1 - arch/arm64/include/asm/pci.h | 18 ++----------- 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 | 6 ++++- arch/sparc/include/asm/pci.h | 5 +++- arch/um/include/asm/pci.h | 24 ++--------------- arch/x86/include/asm/pci.h | 6 +++-- arch/xtensa/include/asm/pci.h | 6 +++-- include/asm-generic/pci.h | 49 +++++++++++++++++++++++++--------- 13 files changed, 69 insertions(+), 104 deletions(-) -- 2.36.1