Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2156436imw; Sun, 17 Jul 2022 02:43:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjgq7q7oUggC7Ho7YwnVNTUTp9AdBikKodKYtSm6CMW3lWlzBaSyaPSGiG2AkF+CGjGm03 X-Received: by 2002:a63:83c2:0:b0:419:a6f3:9df0 with SMTP id h185-20020a6383c2000000b00419a6f39df0mr18153907pge.591.1658051005605; Sun, 17 Jul 2022 02:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658051005; cv=none; d=google.com; s=arc-20160816; b=H9VAMcXPQAJ8mPlD4BqGaM3TsBe4W5LaaQ/inv9KHFh1lwf0pWmOHDDje/PGxWXf+l C+YveTxweWpyMDX45M9iufPnVrOC2h7KqiZUpeU+Og0oKe0R9s3z00oSdQjQ5LbQiZfv 83/KcW4LWDk+XKtwEOf7g02WfjiJJBhFO1QBXpKPx/xK6fwoVCcnknBuOpBWXretCdUG hzg7nSvjrdwTr2gmefub2Zuavmu95qo12sG7KNx/9A2HyIfUKlR9tveSJJVPua3630CE 0Se/oP/vWe8K1ez+n5pGBHY9Ltrz3f1k/IcReA3OIlMDv8+kD2M2fdCq2EYR40CYIz15 OcUQ== 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; bh=Wc3nIaC4TGrabTRR6ZU1E+ucBztRvo43HV92KBQYbRU=; b=jEg2AwTRmtisqvn0ZrcOhbYwpju2xpXNe2t3b2J2OXg6W4nxb5Je13ml8XM7eHqp2F KZ1dcNFXVAHVLdjrEF/Rw1y0bbpFjWTTTLoCPjveQuDX9GeSLnjXOKnsG5FcyVdOMyN+ Jk4fV9NFEVPW0Bl8xb9Q9L7LBHX4E3DUsFE4hMHcJBWAjsL2E9pHQyWXkVZMv9BeE80V 1vdmfN1uCLW9/LbDtP74gHBSRvhLkaoJXHjkwgVDdG07RPOa/qhfA6Xw5NkvH9Kjt1TB wdtwij56Tf7AJCvAS4qhrqHxPwjCs/mcUaQA89XQvBl2sB3S0RoFhOlaVSFRp0zJJ/W+ /S3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g21-20020a056a000b9500b004fa3a8e001asi11035145pfj.209.2022.07.17.02.43.02; Sun, 17 Jul 2022 02:43:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbiGQJXo (ORCPT + 99 others); Sun, 17 Jul 2022 05:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233066AbiGQJXk (ORCPT ); Sun, 17 Jul 2022 05:23:40 -0400 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E30B60F2; Sun, 17 Jul 2022 02:23:38 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id v5so6821805qvq.8; Sun, 17 Jul 2022 02:23:38 -0700 (PDT) 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=Wc3nIaC4TGrabTRR6ZU1E+ucBztRvo43HV92KBQYbRU=; b=h2MAkKSs+RER3S36NySpEgdWBqDUEDTz8bcQ3yyLDR6Mrmw2+Fh7a+TC+ahsak+4q5 9sXmPJzF8eR0KLnEreWzymlfzzK5FkflQHr1nwHh7zDZSGyxnOFDPxnLFrQy2nbHb7eb wqSBqNa6d5oQ1mgZthLmewje9QqK0iCige/y9zvGnDhZ16INcP37ECIFXUiESQpT77IE N/2vUvzLd15UY8YXPI33lxyjHcxYPmSrxmNvLJUPSjC7JrTi9HupvruIG0OmNXPivBH+ 7kF2ZQojOu7aDcDdW5hAfoiQ3qr4i9QcM8duxpzc/6pNNMabTZq9yKjEgy6c0r9I4s90 D0YQ== X-Gm-Message-State: AJIora9BgCzHI/FCYpKBJch9JLBgAtfrtHu8WaPNTRBecZQQmVWDO/yW BkTMqXvKHDtgwvAqS4gMe5dDKfNnHJmeQg== X-Received: by 2002:a05:6214:509c:b0:473:4d8b:1ffa with SMTP id kk28-20020a056214509c00b004734d8b1ffamr17310401qvb.125.1658049817451; Sun, 17 Jul 2022 02:23:37 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id ay31-20020a05620a179f00b006b5de51ec1asm3022771qkb.26.2022.07.17.02.23.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jul 2022 02:23:36 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-31c8a1e9e33so82581587b3.5; Sun, 17 Jul 2022 02:23:35 -0700 (PDT) X-Received: by 2002:a81:af27:0:b0:31c:833f:eda5 with SMTP id n39-20020a81af27000000b0031c833feda5mr24448251ywh.358.1658049815479; Sun, 17 Jul 2022 02:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20220717033453.2896843-1-shorne@gmail.com> <20220717033453.2896843-2-shorne@gmail.com> In-Reply-To: <20220717033453.2896843-2-shorne@gmail.com> From: Geert Uytterhoeven Date: Sun, 17 Jul 2022 11:23:24 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] asm-generic: Remove pci.h copying remaining code to x86 To: Stafford Horne Cc: LKML , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , 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 , "the arch/x86 maintainers" , "H. Peter Anvin" , Chris Zankel , Max Filippov , Bjorn Helgaas , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nick Child , Niklas Schnelle , Matthew Rosato , Pierre Morel , Kees Cook , "Gustavo A. R. Silva" , alpha , "linux-ia64@vger.kernel.org" , linux-m68k , linuxppc-dev , linux-s390 , sparclinux , "open list:TENSILICA XTENSA PORT (xtensa)" , linux-pci , Linux-Arch , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi Stafford, On Sun, Jul 17, 2022 at 5:35 AM Stafford Horne wrote: > The generic pci.h header now only provides a definition of > pci_get_legacy_ide_irq which is used by architectures that support PNP. > Of the architectures that use asm-generic/pci.h this is only x86. > > 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 x86. On other architectures > we clean up any outstanding references. > > Suggested-by: Arnd Bergmann > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ > Signed-off-by: Stafford Horne Thanks for your patch! > --- a/arch/m68k/include/asm/pci.h > +++ b/arch/m68k/include/asm/pci.h > @@ -2,11 +2,14 @@ > #ifndef _ASM_M68K_PCI_H > #define _ASM_M68K_PCI_H > > -#include > - > #define pcibios_assign_all_busses() 1 > > #define PCIBIOS_MIN_IO 0x00000100 > #define PCIBIOS_MIN_MEM 0x02000000 > > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > +{ > + return channel ? 15 : 14; > +} > + I thought you were not going to add this? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds