linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Introduce pcim_alloc_irq_vectors()
@ 2021-02-16 14:18 Dejin Zheng
  2021-02-16 14:18 ` [PATCH v2 1/4] PCI: " Dejin Zheng
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Dejin Zheng @ 2021-02-16 14:18 UTC (permalink / raw)
  To: corbet, jarkko.nikula, andriy.shevchenko, mika.westerberg, rric,
	bhelgaas, wsa, linux-doc, linux-i2c, linux-pci, kw
  Cc: linux-kernel, Dejin Zheng

Introduce pcim_alloc_irq_vectors(), a device-managed version of
pci_alloc_irq_vectors(), In some i2c drivers, If pcim_enable_device()
has been called before, then pci_alloc_irq_vectors() is actually a
device-managed function. It is used as a device-managed function, So
replace it with pcim_alloc_irq_vectors().

Changelog
---------
v1 -> v2:
	- Use pci_free_irq_vectors() to replace some code in
	  pcim_release().
	- Modify some commit messages.

Andy and Krzysztof, thanks for your help!

Dejin Zheng (4):
  PCI: Introduce pcim_alloc_irq_vectors()
  Documentation: devres: Add pcim_alloc_irq_vectors()
  i2c: designware: Use the correct name of device-managed function
  i2c: thunderx: Use the correct name of device-managed function

 .../driver-api/driver-model/devres.rst        |  1 +
 drivers/i2c/busses/i2c-designware-pcidrv.c    |  2 +-
 drivers/i2c/busses/i2c-thunderx-pcidrv.c      |  2 +-
 drivers/pci/pci.c                             | 33 ++++++++++++++++---
 include/linux/pci.h                           |  3 ++
 5 files changed, 35 insertions(+), 6 deletions(-)

-- 
2.25.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-16 16:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 14:18 [PATCH v2 0/4] Introduce pcim_alloc_irq_vectors() Dejin Zheng
2021-02-16 14:18 ` [PATCH v2 1/4] PCI: " Dejin Zheng
2021-02-16 14:40   ` Andy Shevchenko
2021-02-16 14:18 ` [PATCH v2 2/4] Documentation: devres: Add pcim_alloc_irq_vectors() Dejin Zheng
2021-02-16 14:18 ` [PATCH v2 3/4] i2c: designware: Use the correct name of device-managed function Dejin Zheng
2021-02-16 14:39   ` Andy Shevchenko
2021-02-16 16:11     ` Dejin Zheng
2021-02-16 14:18 ` [PATCH v2 4/4] i2c: thunderx: " Dejin Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).