From: Stafford Horne <shorne@gmail.com> To: Geert Uytterhoeven <geert@linux-m68k.org> Cc: "open list:IA64 \(Itanium\) PL..." <linux-ia64@vger.kernel.org>, Matthew Rosato <mjrosato@linux.ibm.com>, Dave Hansen <dave.hansen@linux.intel.com>, "Gustavo A. R. Silva" <gustavoars@kernel.org>, Max Filippov <jcmvbkbc@gmail.com>, Paul Mackerras <paulus@samba.org>, "H. Peter Anvin" <hpa@zytor.com>, sparclinux <sparclinux@vger.kernel.org>, Alexander Gordeev <agordeev@linux.ibm.com>, linux-riscv <linux-riscv@lists.infradead.org>, Linux-Arch <linux-arch@vger.kernel.org>, linux-s390 <linux-s390@vger.kernel.org>, Arnd Bergmann <arnd@arndb.de>, the arch/x86 maintainers <x86@kernel.org>, Ingo Molnar <mingo@redhat.com>, linux-pci <linux-pci@vger.kernel.org>, Matt Turner <mattst88@gmail.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, "open list:TENSILICA XTENSA PORT \(xtensa\)" <linux-xtensa@linux-xtensa.org>, Albert Ou <aou@eecs.berkeley.edu>, Kees Cook <keescook@chromium.org>, Vasily Gorbik <gor@linux.ibm.com>, Niklas Schnelle <schnelle@linux.ibm.com>, Heiko Carstens <hca@linux .ibm.com>, linux-m68k <linux-m68k@lists.linux-m68k.org>, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, Paul Walmsley <paul.walmsley@sifive.com>, Bjorn Helgaas <bhelgaas@google.com>, Thomas Gleixner <tglx@linutronix.de>, Richard Henderson <rth@twiddle.net>, Chris Zankel <chris@zankel.net>, Pierre Morel <pmorel@linux.ibm.com>, Nick Child <nick.child@ibm.com>, LKML <linux-kernel@vger.kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, Sven Schnelle <svens@linux.ibm.com>, alpha <linux-alpha@vger.kernel.org>, Borislav Petkov <bp@alien8.de>, linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, "David S. Miller" <davem@davemloft.net> Subject: Re: [PATCH v2 1/2] asm-generic: Remove pci.h copying remaining code to x86 Date: Sun, 17 Jul 2022 18:42:32 +0900 [thread overview] Message-ID: <CAAfxs76K2fxTevDN8MrJAG74+wCthLd4sNNEPyU6x7hBaY7nFw@mail.gmail.com> (raw) In-Reply-To: <CAMuHMdUT6nEft8v30sq0WP49RW2qUn+1sunk+ow2_EEyVEieEQ@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1525 bytes --] On Sun, Jul 17, 2022, 6:23 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > Hi Stafford, > > On Sun, Jul 17, 2022 at 5:35 AM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de> > > Link: > https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ > > Signed-off-by: Stafford Horne <shorne@gmail.com> > > 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 <asm-generic/pci.h> > > - > > #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? > I though so too. Somehow I lost track of a fixup. I'll send a v3 tomorrow. -Stafford > [-- Attachment #2: Type: text/html, Size: 2745 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Stafford Horne <shorne@gmail.com> To: Geert Uytterhoeven <geert@linux-m68k.org> Cc: "open list:IA64 (Itanium) PL..." <linux-ia64@vger.kernel.org>, Matthew Rosato <mjrosato@linux.ibm.com>, Dave Hansen <dave.hansen@linux.intel.com>, "Gustavo A. R. Silva" <gustavoars@kernel.org>, Max Filippov <jcmvbkbc@gmail.com>, Paul Mackerras <paulus@samba.org>, "H. Peter Anvin" <hpa@zytor.com>, sparclinux <sparclinux@vger.kernel.org>, Alexander Gordeev <agordeev@linux.ibm.com>, linux-riscv <linux-riscv@lists.infradead.org>, Linux-Arch <linux-arch@vger.kernel.org>, linux-s390 <linux-s390@vger.kernel.org>, Arnd Bergmann <arnd@arndb.de>, the arch/x86 maintainers <x86@kernel.org>, Ingo Molnar <mingo@redhat.com>, linux-pci <linux-pci@vger.kernel.org>, Matt Turner <mattst88@gmail.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, "open list:TENSILICA XTENSA PORT (xtensa)" <linux- xtensa@linux-xtensa.org>, Albert Ou <aou@eecs.berkeley.edu>, Kees Cook <keescook@chromium.org>, Va Subject: Re: [PATCH v2 1/2] asm-generic: Remove pci.h copying remaining code to x86 Date: Sun, 17 Jul 2022 18:42:32 +0900 [thread overview] Message-ID: <CAAfxs76K2fxTevDN8MrJAG74+wCthLd4sNNEPyU6x7hBaY7nFw@mail.gmail.com> (raw) In-Reply-To: <CAMuHMdUT6nEft8v30sq0WP49RW2qUn+1sunk+ow2_EEyVEieEQ@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1525 bytes --] On Sun, Jul 17, 2022, 6:23 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > Hi Stafford, > > On Sun, Jul 17, 2022 at 5:35 AM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de> > > Link: > https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ > > Signed-off-by: Stafford Horne <shorne@gmail.com> > > 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 <asm-generic/pci.h> > > - > > #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? > I though so too. Somehow I lost track of a fixup. I'll send a v3 tomorrow. -Stafford > [-- Attachment #2: Type: text/html, Size: 2745 bytes --]
next prev parent reply other threads:[~2022-07-17 23:35 UTC|newest] Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-17 3:34 [PATCH v2 0/2] Updates for asm-generic/pci.h Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` [PATCH v2 1/2] asm-generic: Remove pci.h copying remaining code to x86 Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 9:23 ` Geert Uytterhoeven 2022-07-17 9:23 ` Geert Uytterhoeven 2022-07-17 9:23 ` Geert Uytterhoeven 2022-07-17 9:23 ` Geert Uytterhoeven 2022-07-17 9:23 ` Geert Uytterhoeven 2022-07-17 9:42 ` Stafford Horne [this message] 2022-07-17 9:42 ` Stafford Horne 2022-07-18 4:33 ` Christoph Hellwig 2022-07-18 4:33 ` Christoph Hellwig 2022-07-18 4:33 ` Christoph Hellwig 2022-07-18 4:33 ` Christoph Hellwig 2022-07-18 4:33 ` Christoph Hellwig 2022-07-18 8:40 ` Arnd Bergmann 2022-07-18 8:40 ` Arnd Bergmann 2022-07-18 8:40 ` Arnd Bergmann 2022-07-18 8:40 ` Arnd Bergmann 2022-07-18 8:40 ` Arnd Bergmann 2022-07-19 10:51 ` Stafford Horne 2022-07-19 10:51 ` Stafford Horne 2022-07-19 10:51 ` Stafford Horne 2022-07-19 10:51 ` Stafford Horne 2022-07-19 10:51 ` Stafford Horne 2022-07-17 3:34 ` [PATCH v2 2/2] asm-generic: Add new pci.h and use it Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-17 3:34 ` Stafford Horne 2022-07-18 4:37 ` Christoph Hellwig 2022-07-18 4:37 ` Christoph Hellwig 2022-07-18 4:37 ` Christoph Hellwig 2022-07-18 4:37 ` Christoph Hellwig 2022-07-18 6:56 ` Arnd Bergmann 2022-07-18 6:56 ` Arnd Bergmann 2022-07-18 6:56 ` Arnd Bergmann 2022-07-18 6:56 ` Arnd Bergmann [not found] ` <CAAfxs740yz1vJmtFHOPTXT6fqi0+37SR_OhoGsONe4mx_21+_g@mail.gmail.com> 2022-07-19 7:45 ` Arnd Bergmann 2022-07-19 7:45 ` Arnd Bergmann 2022-07-19 7:45 ` Arnd Bergmann 2022-07-19 7:45 ` Arnd Bergmann 2022-07-19 10:55 ` Stafford Horne 2022-07-19 10:55 ` Stafford Horne 2022-07-19 10:55 ` Stafford Horne 2022-07-19 10:55 ` Stafford Horne 2022-07-19 11:55 ` Arnd Bergmann 2022-07-19 11:55 ` Arnd Bergmann 2022-07-19 11:55 ` Arnd Bergmann 2022-07-19 11:55 ` Arnd Bergmann 2022-07-19 12:23 ` Stafford Horne 2022-07-19 12:23 ` Stafford Horne 2022-07-19 12:23 ` Stafford Horne 2022-07-19 12:23 ` Stafford Horne 2022-07-19 13:05 ` Stafford Horne 2022-07-19 13:05 ` Stafford Horne 2022-07-19 13:05 ` Stafford Horne 2022-07-19 13:05 ` Stafford Horne 2022-07-19 13:18 ` Arnd Bergmann 2022-07-19 13:18 ` Arnd Bergmann 2022-07-19 13:18 ` Arnd Bergmann 2022-07-19 13:18 ` Arnd Bergmann 2022-07-19 13:33 ` Stafford Horne 2022-07-19 13:33 ` Stafford Horne 2022-07-19 13:33 ` Stafford Horne 2022-07-19 13:33 ` Stafford Horne 2022-07-19 14:32 ` Christoph Hellwig 2022-07-19 14:32 ` Christoph Hellwig 2022-07-19 14:32 ` Christoph Hellwig 2022-07-19 14:32 ` Christoph Hellwig 2022-07-20 13:21 ` Stafford Horne 2022-07-20 13:21 ` Stafford Horne 2022-07-20 13:21 ` Stafford Horne 2022-07-20 13:21 ` Stafford Horne 2022-07-19 15:09 ` David Laight 2022-07-19 15:09 ` David Laight 2022-07-19 15:09 ` David Laight 2022-07-19 15:09 ` David Laight 2022-07-20 13:24 ` Stafford Horne 2022-07-20 13:24 ` Stafford Horne 2022-07-20 13:24 ` Stafford Horne 2022-07-20 13:24 ` Stafford Horne
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAAfxs76K2fxTevDN8MrJAG74+wCthLd4sNNEPyU6x7hBaY7nFw@mail.gmail.com \ --to=shorne@gmail.com \ --cc=agordeev@linux.ibm.com \ --cc=aou@eecs.berkeley.edu \ --cc=arnd@arndb.de \ --cc=bhelgaas@google.com \ --cc=borntraeger@linux.ibm.com \ --cc=bp@alien8.de \ --cc=chris@zankel.net \ --cc=dave.hansen@linux.intel.com \ --cc=davem@davemloft.net \ --cc=geert@linux-m68k.org \ --cc=gor@linux.ibm.com \ --cc=gustavoars@kernel.org \ --cc=hca@linux.ibm.com \ --cc=hpa@zytor.com \ --cc=ink@jurassic.park.msu.ru \ --cc=jcmvbkbc@gmail.com \ --cc=keescook@chromium.org \ --cc=linux-alpha@vger.kernel.org \ --cc=linux-arch@vger.kernel.org \ --cc=linux-ia64@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-m68k@lists.linux-m68k.org \ --cc=linux-pci@vger.kernel.org \ --cc=linux-riscv@lists.infradead.org \ --cc=linux-s390@vger.kernel.org \ --cc=linux-xtensa@linux-xtensa.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=mattst88@gmail.com \ --cc=mingo@redhat.com \ --cc=mjrosato@linux.ibm.com \ --cc=nick.child@ibm.com \ --cc=palmer@dabbelt.com \ --cc=paul.walmsley@sifive.com \ --cc=paulus@samba.org \ --cc=pmorel@linux.ibm.com \ --cc=rth@twiddle.net \ --cc=schnelle@linux.ibm.com \ --cc=sparclinux@vger.kernel.org \ --cc=svens@linux.ibm.com \ --cc=tglx@linutronix.de \ --cc=x86@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.