Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Guenter Roeck
On 09/28/2017 04:37 AM, Lorenzo Pieralisi wrote: Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now possible to define IRQ mapping functions on a per PCI host bridge basis. Actual IRQ allocation is carried out by the pci_assign_irq() function in pci_device_probe() - to make sure a

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Bjorn Helgaas
On Fri, Sep 29, 2017 at 06:19:58PM +0100, Lorenzo Pieralisi wrote: > On Fri, Sep 29, 2017 at 05:02:26PM +0100, Lorenzo Pieralisi wrote: > > On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > > > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > > > Through struct

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Lorenzo Pieralisi
On Fri, Sep 29, 2017 at 05:02:26PM +0100, Lorenzo Pieralisi wrote: > On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > > > possible to define

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Lorenzo Pieralisi
On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > > possible to define IRQ mapping functions on a per PCI host bridge basis. > > > > Actual IRQ a

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Lorenzo Pieralisi
On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > > possible to define IRQ mapping functions on a per PCI host bridge basis. > > > > Actual IRQ a

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-28 Thread Bjorn Helgaas
On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > possible to define IRQ mapping functions on a per PCI host bridge basis. > > Actual IRQ allocation is carried out by the pci_assign_irq() function in > pci_device

[PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-28 Thread Lorenzo Pieralisi
Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now possible to define IRQ mapping functions on a per PCI host bridge basis. Actual IRQ allocation is carried out by the pci_assign_irq() function in pci_device_probe() - to make sure a device is assigned an IRQ only if it is probed (ie