Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures

2022-07-15 Thread Arnd Bergmann
On Fri, Jul 15, 2022 at 3:45 AM Max Filippov wrote: > On Thu, Jul 14, 2022 at 2:47 PM Stafford Horne wrote: > > > +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

Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures

2022-07-14 Thread Stafford Horne
On Thu, Jul 14, 2022 at 06:45:27PM -0700, Max Filippov wrote: > 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

Re: [RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures

2022-07-14 Thread Max Filippov
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,

[RFC PATCH 1/2] asm-generic: Remove pci.h copying code out to architectures

2022-07-14 Thread Stafford Horne
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