From: Stafford Horne <shorne@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
"David S. Miller" <davem@davemloft.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
maintainer:X86 ARCH
Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures
Date: Fri, 15 Jul 2022 11:27:41 +0900 [thread overview]
Message-ID: <YtDQnQOeDF6RID4g@antec> (raw)
In-Reply-To: <CAMo8BfKkGRHiFq1vu1ZKkURkUqC+Ee7D42yuKrCeDF+578s9cw@mail.gmail.com>
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote:
> On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de>
> > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > 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 <asm-generic/pci.h>
>
> 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 for your feedback, this is the kind of feedback I was hoping to fish out
with this patch. I will look into completely removing this then.
-Stafford
WARNING: multiple messages have this Message-ID (diff)
From: Stafford Horne <shorne@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
"David S. Miller" <davem@davemloft.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"maintainer:X86 ARCHITECTURE..." <x86@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>, Chris Zankel <chris@zankel.net>,
Bjorn Helgaas <bhelgaas@google.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Nick Child <nick.child@ibm.com>,
Niklas Schnelle <schnelle@linux.ibm.com>,
Matthew Rosato <mjrosato@linux.ibm.com>,
Pierre Morel <pmorel@linux.ibm.com>,
Kees Cook <keescook@chromium.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
"open list:ALPHA PORT" <linux-alpha@vger.kernel.org>,
"open list:IA64 (Itanium) PL..." <linux-ia64@vger.kernel.org>,
"open list:M68K ARCHITECTURE" <linux-m68k@lists.linux-m68k.org>,
linuxppc-dev@lists.ozlabs.org,
linux-s390 <linux-s390@vger.kernel.org>,
"open list:SPARC + UltraSPAR..." <sparclinux@vger.kernel.org>,
"open list:TENSILICA XTENSA PORT (xtensa)"
<linux-xtensa@linux-xtensa.org>,
linux-pci@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>,
linux-riscv <linux-riscv@lists.infradead.org>
Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures
Date: Fri, 15 Jul 2022 11:27:41 +0900 [thread overview]
Message-ID: <YtDQnQOeDF6RID4g@antec> (raw)
In-Reply-To: <CAMo8BfKkGRHiFq1vu1ZKkURkUqC+Ee7D42yuKrCeDF+578s9cw@mail.gmail.com>
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote:
> On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de>
> > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > 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 <asm-generic/pci.h>
>
> 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 for your feedback, this is the kind of feedback I was hoping to fish out
with this patch. I will look into completely removing this then.
-Stafford
WARNING: multiple messages have this Message-ID (diff)
From: Stafford Horne <shorne@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
"David S. Miller" <davem@davemloft.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"maintainer:X86 ARCHITECTURE..." <x86@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>, Chris Zankel <chris@zankel.net>,
Bjorn Helgaas <bhelgaas@google.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Nick Child <nick.child@ibm.com>,
Niklas Schnelle <schnelle@linux.ibm.com>,
Matthew Rosato <mjrosato@linux.ibm.com>,
Pierre Morel <pmorel@linux.ibm.com>,
Kees Cook <keescook@chromium.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
"open list:ALPHA PORT" <linux-alpha@vger.kernel.org>,
"open list:IA64 (Itanium) PL..." <linux-ia64@vger.kernel.org>,
"open list:M68K ARCHITECTURE" <linux-m68k@lists.linux-m68k.org>,
linuxppc-dev@lists.ozlabs.org,
linux-s390 <linux-s390@vger.kernel.org>,
"open list:SPARC + UltraSPAR..." <sparclinux@vger.kernel.org>,
"open list:TENSILICA XTENSA PORT (xtensa)"
<linux-xtensa@linux-xtensa.org>,
linux-pci@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>,
linux-riscv <linux-riscv@lists.infradead.org>
Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures
Date: Fri, 15 Jul 2022 02:27:41 +0000 [thread overview]
Message-ID: <YtDQnQOeDF6RID4g@antec> (raw)
In-Reply-To: <CAMo8BfKkGRHiFq1vu1ZKkURkUqC+Ee7D42yuKrCeDF+578s9cw@mail.gmail.com>
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote:
> On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de>
> > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > 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 <asm-generic/pci.h>
>
> 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 for your feedback, this is the kind of feedback I was hoping to fish out
with this patch. I will look into completely removing this then.
-Stafford
WARNING: multiple messages have this Message-ID (diff)
From: Stafford Horne <shorne@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
"David S. Miller" <davem@davemloft.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"maintainer:X86 ARCHITECTURE..." <x86@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>, Chris Zankel <chris@zankel.net>,
Bjorn Helgaas <bhelgaas@google.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Nick Child <nick.child@ibm.com>,
Niklas Schnelle <schnelle@linux.ibm.com>,
Matthew Rosato <mjrosato@linux.ibm.com>,
Pierre Morel <pmorel@linux.ibm.com>,
Kees Cook <keescook@chromium.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
"open list:ALPHA PORT" <linux-alpha@vger.kernel.org>,
"open list:IA64 (Itanium) PL..." <linux-ia64@vger.kernel.org>,
"open list:M68K ARCHITECTURE" <linux-m68k@lists.linux-m68k.org>,
linuxppc-dev@lists.ozlabs.org,
linux-s390 <linux-s390@vger.kernel.org>,
"open list:SPARC + UltraSPAR..." <sparclinux@vger.kernel.org>,
"open list:TENSILICA XTENSA PORT (xtensa)"
<linux-xtensa@linux-xtensa.org>,
linux-pci@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>,
linux-riscv <linux-riscv@lists.infradead.org>
Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures
Date: Fri, 15 Jul 2022 11:27:41 +0900 [thread overview]
Message-ID: <YtDQnQOeDF6RID4g@antec> (raw)
In-Reply-To: <CAMo8BfKkGRHiFq1vu1ZKkURkUqC+Ee7D42yuKrCeDF+578s9cw@mail.gmail.com>
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote:
> On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de>
> > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > 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 <asm-generic/pci.h>
>
> 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 for your feedback, this is the kind of feedback I was hoping to fish out
with this patch. I will look into completely removing this then.
-Stafford
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Stafford Horne <shorne@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
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>,
Paul Mackerras <paulus@samba.org>,
"H. Peter Anvin" <hpa@zytor.com>,
"open list:SPARC + UltraSPAR..." <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>,
"maintainer:X86 ARCHITECTURE..." <x86@kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
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>,
"open list:M68K ARCHITECTURE" <linux-m68k@lists.linux-m68k.org>,
Borislav Petkov <bp@alien8.de>,
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>,
"open list:ALPHA PORT" <linux-alpha@vger.kernel.org>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
linuxppc-dev@lists.ozlabs.org,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures
Date: Fri, 15 Jul 2022 11:27:41 +0900 [thread overview]
Message-ID: <YtDQnQOeDF6RID4g@antec> (raw)
In-Reply-To: <CAMo8BfKkGRHiFq1vu1ZKkURkUqC+Ee7D42yuKrCeDF+578s9cw@mail.gmail.com>
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote:
> On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne <shorne@gmail.com> 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 <arnd@arndb.de>
> > Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > 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 <asm-generic/pci.h>
>
> 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 for your feedback, this is the kind of feedback I was hoping to fish out
with this patch. I will look into completely removing this then.
-Stafford
next prev parent reply other threads:[~2022-07-15 2:27 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 21:46 [RFC PATCH 0/2] Updates for asm-generic/pci.h Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-15 1:45 ` Max Filippov
2022-07-15 1:45 ` Max Filippov
2022-07-15 1:45 ` Max Filippov
2022-07-15 1:45 ` Max Filippov
2022-07-15 1:45 ` Max Filippov
2022-07-15 2:27 ` Stafford Horne [this message]
2022-07-15 2:27 ` Stafford Horne
2022-07-15 2:27 ` Stafford Horne
2022-07-15 2:27 ` Stafford Horne
2022-07-15 2:27 ` Stafford Horne
2022-07-15 7:40 ` Arnd Bergmann
2022-07-15 7:40 ` Arnd Bergmann
2022-07-15 7:40 ` Arnd Bergmann
2022-07-15 7:40 ` Arnd Bergmann
2022-07-15 7:40 ` Arnd Bergmann
2022-07-14 21:46 ` [RFC PATCH 2/2] asm-generic: Add new pci.h and use it Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-14 21:46 ` Stafford Horne
2022-07-15 8:09 ` Arnd Bergmann
2022-07-15 8:09 ` Arnd Bergmann
2022-07-15 8:09 ` Arnd Bergmann
2022-07-15 22:23 ` Stafford Horne
2022-07-15 22:23 ` Stafford Horne
2022-07-15 22:23 ` 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=YtDQnQOeDF6RID4g@antec \
--to=shorne@gmail.com \
--cc=agordeev@linux.ibm.com \
--cc=arnd@arndb.de \
--cc=benh@kernel.crashing.org \
--cc=borntraeger@linux.ibm.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=davem@davemloft.net \
--cc=geert@linux-m68k.org \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=ink@jurassic.park.msu.ru \
--cc=jcmvbkbc@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=mingo@redhat.com \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=rth@twiddle.net \
--cc=svens@linux.ibm.com \
--cc=tglx@linutronix.de \
/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: link
Be 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.