Received: by 2002:a9d:6f94:0:b0:61c:59f3:9354 with SMTP id h20csp163274otq; Thu, 14 Jul 2022 18:48:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vu3uyZdDw2ZzyPgxDM/0VKsV2ve1g4E9lRAcCwF8BG/DN3pW5v+4qxustqMjMu8AG5WQbu X-Received: by 2002:a17:902:f684:b0:16c:5811:486f with SMTP id l4-20020a170902f68400b0016c5811486fmr11116658plg.64.1657849695228; Thu, 14 Jul 2022 18:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657849695; cv=none; d=google.com; s=arc-20160816; b=TakO6k9BqslwICzIjWktkixPi7PVw4XeOuNRGFCz/djoEVvnov4pjVSL3akj+e5iKd tk1KdoN6h7eccnhe0M/Zj0zjeyPOXN0dp0T9BmPrHXuOyfGioPc3jnkV42QQDqFoutzU tHb2aC9fYmiuugJzTj1LuwMfNd8tHH2ZbDJdRGMDZ8YA+aYszCwFqDMvmGEBJafNSZjn CQBAB8FUypFrck89yzjkZasPvT7s4AiMI9RKamZG8MVnCBgScpKJpTvNWJMhQG633QKE LALaxvFQ0Orbc2yrdWREbmijBDQ7SXVBATq/aJfDjvXtQFiI0m6qa7uNYToqBjjDHmc6 bV3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sKJrgib6NlReGRP7CDPUE/smLyqBXa9C7wMlxNQsBTA=; b=S/+Skh6R42m344A6O1gugA9jTUV+NRuCgVQh2ecldARhkjcno+gGvIUhZIjAb+ylEP HK9GDrkSI6DUgYzvtfkFP9QeHNGcQ4SMtiLFBemEBelihNgLPMiV0Fs3YuYXynwi2DPI FxxE645a0A7SHg9WLhaBEpDRJRzTco0R8aCMS01j2/ZnKP31zMaiM1z0uBfMNII4C+LC C6DpYg14WKgtToRbZQBsVliU69JBqEvHqF5a8AKzq6XvO5RSKbWozbwSoQaIFkqLHYMf 4MXJcGw8I3PxdrSt61cG0a7A7hiAhIgYMjQilkYuk/cQtu5zTzhxE1iD00uQWWUZYpj7 VMlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qReu0qeW; 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 rj5-20020a17090b3e8500b001f05626b5bfsi3761502pjb.149.2022.07.14.18.48.00; Thu, 14 Jul 2022 18:48:15 -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=qReu0qeW; 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 S240831AbiGOBpb (ORCPT + 99 others); Thu, 14 Jul 2022 21:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231293AbiGOBp3 (ORCPT ); Thu, 14 Jul 2022 21:45:29 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2620B66B9D; Thu, 14 Jul 2022 18:45:28 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id eq6so4553061edb.6; Thu, 14 Jul 2022 18:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sKJrgib6NlReGRP7CDPUE/smLyqBXa9C7wMlxNQsBTA=; b=qReu0qeW9uesDP35O40Ak1r8idK4O9CgbEfPz8c7sbqOOC4g19rgOwc7Y7Nf0cMJve VHwud/zZzm5annCADY978tvLQA29IgL5uKARrzb7nA7Kp/u9ohAHU/Uoc3laFfeyFv82 3NvE6Fr+IPR9MFSUs+KYaXTLE4npBFJ2Vcj4F42Mz6qv3HaC4MCx+ag8MrpcmkWW+LoD A8pexKC8qY5puSe0QuRx1/diSs17MAvOjpvCEI7jRLHU+cirQYK6oQpe7bjOxKMCXwV4 h3T37BG2LAfhfJKirkYm4c6biwPu6itaR0LZe1EIroqmoe0m+x1vrKsTKeSrtgYQAI2e A1DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sKJrgib6NlReGRP7CDPUE/smLyqBXa9C7wMlxNQsBTA=; b=y/rNgtKdqONzYgZaynfAvSnG4QZIXNm9lCZymPmFherFVHpz8+0tjD0JLqpWJ94Hf4 KyDEXeeGuiuWA1vota9nhamiIL41axLp4ZbRjXovZgvWUwWBheBYdASdIQS4/u2xZlrr YY5jBj9dkdIQ/R+nV4dJP7Pb7tAOhQfUdW+YV1sQo9rZ6OOZ3KkNElBgftY8GMe0IfXo qfWm2+WDl9hDDAaHMBe98A08/oTbkb+fX6Lsy7c/Xpju2ez1Oz0s2mq4sfEp+/DdSoBV DEfXM3hMZnvRyRO2D0Ml2Xcw+iF8aiHtM2+tr6pYS3hBQGr7rT/KVf56HJ5hFFx4W+fC dNGA== X-Gm-Message-State: AJIora/9Jafnx3KlF3AKPYWGw2VtQhhoBH48FLPTpxtgebCCUmU/G70c Bzloghaoax6RmtS7iL/SJFsCls85lMtukgPuS54= X-Received: by 2002:a05:6402:2714:b0:43a:c8ff:e319 with SMTP id y20-20020a056402271400b0043ac8ffe319mr16158414edd.33.1657849526605; Thu, 14 Jul 2022 18:45:26 -0700 (PDT) MIME-Version: 1.0 References: <20220714214657.2402250-1-shorne@gmail.com> <20220714214657.2402250-2-shorne@gmail.com> In-Reply-To: <20220714214657.2402250-2-shorne@gmail.com> From: Max Filippov Date: Thu, 14 Jul 2022 18:45:27 -0700 Message-ID: Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures To: Stafford Horne Cc: LKML , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Geert Uytterhoeven , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE..." , "H. Peter Anvin" , Chris Zankel , Bjorn Helgaas , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nick Child , Niklas Schnelle , Matthew Rosato , Pierre Morel , Kees Cook , "Gustavo A. R. Silva" , "open list:ALPHA PORT" , "open list:IA64 (Itanium) PL..." , "open list:M68K ARCHITECTURE" , linuxppc-dev@lists.ozlabs.org, linux-s390 , "open list:SPARC + UltraSPAR..." , "open list:TENSILICA XTENSA PORT (xtensa)" , linux-pci@vger.kernel.org, Linux-Arch , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne wrote: > > The generic pci.h header provides a definition of pci_get_legacy_ide_irq > which is used by architectures that use PC-style interrupt numbers. > > This patch removes the old pci.h in order to make room for a new > pci.h to be used by arm64, riscv, openrisc, etc. > > The existing code in pci.h is moved out to architectures. > > Suggested-by: Arnd Bergmann > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ > Signed-off-by: Stafford Horne > --- > arch/alpha/include/asm/pci.h | 1 - > arch/ia64/include/asm/pci.h | 1 - > arch/m68k/include/asm/pci.h | 7 +++++-- > arch/powerpc/include/asm/pci.h | 1 - > arch/s390/include/asm/pci.h | 6 +++++- > arch/sparc/include/asm/pci.h | 5 ++++- > arch/x86/include/asm/pci.h | 6 ++++-- > arch/xtensa/include/asm/pci.h | 6 ++++-- > include/asm-generic/pci.h | 17 ----------------- > 9 files changed, 22 insertions(+), 28 deletions(-) > delete mode 100644 include/asm-generic/pci.h [...] > diff --git a/arch/xtensa/include/asm/pci.h b/arch/xtensa/include/asm/pci.h > index 8e2b48a268db..f57ede61f5db 100644 > --- a/arch/xtensa/include/asm/pci.h > +++ b/arch/xtensa/include/asm/pci.h > @@ -43,7 +43,9 @@ > #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 > #define arch_can_pci_mmap_io() 1 > > -/* Generic PCI */ > -#include Ok. > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > +{ > + return channel ? 15 : 14; > +} This addition does not make sense for the xtensa as it isn't even possible to enable PNP support (the only user of this function) on xtensa. -- Thanks. -- Max