All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] ACPI: Add and use acpi_dev_get_pci_dev()
@ 2026-07-15 15:13 Rafael J. Wysocki
  2026-07-15 15:15 ` [PATCH v1 1/4] ACPI: PCI: Use a mutex guard to simplify acpi_get_pci_dev() Rafael J. Wysocki
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Rafael J. Wysocki @ 2026-07-15 15:13 UTC (permalink / raw)
  To: Linux ACPI; +Cc: Linux PCI, LKML, Bjorn Helgaas, Andy Shevchenko, Hans de Goede

Hi All,

This series is based on the observation that the majority of acpi_get_pci_dev()
callers already know the ACPI device they want to look up the PCI device for
and so they don't need to look up the ACPI device.  Accordingly, a function for
PCI device lookup based on an ACPI device is introduced and used.

The first patch is a simplification utilizing a mutex guard.

The second patch introduces acpi_dev_get_pci_dev() and redefines
acpi_get_pci_dev() as a static inline helper.

The third patch moves a device_put() call in the ACPI video bus driver to
a place after the device in question has been used.

The last patch updates the ACPI video bus driver, which is the heaviest user
of acpi_get_pci_dev(), to use acpi_dev_get_pci_dev() instead of it.

Thanks!




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

end of thread, other threads:[~2026-07-15 16:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 15:13 [PATCH v1 0/4] ACPI: Add and use acpi_dev_get_pci_dev() Rafael J. Wysocki
2026-07-15 15:15 ` [PATCH v1 1/4] ACPI: PCI: Use a mutex guard to simplify acpi_get_pci_dev() Rafael J. Wysocki
2026-07-15 15:24   ` sashiko-bot
2026-07-15 15:52   ` Andy Shevchenko
2026-07-15 15:16 ` [PATCH v1 2/4] ACPI: PCI: Introduce acpi_dev_get_pci_dev() Rafael J. Wysocki
2026-07-15 15:27   ` sashiko-bot
2026-07-15 15:56   ` Andy Shevchenko
2026-07-15 16:33     ` Rafael J. Wysocki (Intel)
2026-07-15 15:19 ` [PATCH v1 3/4] ACPI: video: Drop backlight parent device reference later Rafael J. Wysocki
2026-07-15 15:29   ` sashiko-bot
2026-07-15 15:57   ` Andy Shevchenko
2026-07-15 15:21 ` [PATCH v1 4/4] ACPI: video: Use acpi_dev_get_pci_dev() instead of acpi_get_pci_dev() Rafael J. Wysocki
2026-07-15 15:35   ` sashiko-bot
2026-07-15 15:59   ` Andy Shevchenko
2026-07-15 16:34     ` Rafael J. Wysocki (Intel)

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.