[patch V2 20/23] PCI/MSI: Move msi_lock to struct pci_dev

2021-12-06 Thread Thomas Gleixner
It's only required for PCI/MSI. So no point in having it in every struct device. Signed-off-by: Thomas Gleixner --- V2: New patch --- drivers/base/core.c|1 - drivers/pci/msi/msi.c |2 +- drivers/pci/probe.c|4 +++- include/linux/device.h |2 -- include/linux/pci.h|

Re: [patch V2 20/23] PCI/MSI: Move msi_lock to struct pci_dev

2021-12-06 Thread Greg Kroah-Hartman
On Mon, Dec 06, 2021 at 11:27:56PM +0100, Thomas Gleixner wrote: > It's only required for PCI/MSI. So no point in having it in every struct > device. > > Signed-off-by: Thomas Gleixner Yes!!! Reviewed-by: Greg Kroah-Hartman

Re: [patch V2 20/23] PCI/MSI: Move msi_lock to struct pci_dev

2021-12-07 Thread Bjorn Helgaas
On Mon, Dec 06, 2021 at 11:27:56PM +0100, Thomas Gleixner wrote: > It's only required for PCI/MSI. So no point in having it in every struct > device. > > Signed-off-by: Thomas Gleixner Acked-by: Bjorn Helgaas > --- > V2: New patch > --- > drivers/base/core.c|1 - > drivers/pci/msi/msi

Re: [patch V2 20/23] PCI/MSI: Move msi_lock to struct pci_dev

2021-12-08 Thread Jason Gunthorpe
On Mon, Dec 06, 2021 at 11:27:56PM +0100, Thomas Gleixner wrote: > It's only required for PCI/MSI. So no point in having it in every struct > device. > > Signed-off-by: Thomas Gleixner > --- > V2: New patch > --- > drivers/base/core.c|1 - > drivers/pci/msi/msi.c |2 +- > drivers/pc

Re: [patch V2 20/23] PCI/MSI: Move msi_lock to struct pci_dev

2021-12-08 Thread Thomas Gleixner
On Wed, Dec 08 2021 at 11:29, Jason Gunthorpe wrote: > On Mon, Dec 06, 2021 at 11:27:56PM +0100, Thomas Gleixner wrote: >> if (!desc->pci.msi_attrib.can_mask) > > It looks like most of the time this is called by an irq_chip, except > for a few special cases list pci_msi_shutdown() > > Is this