Skip to content

ACPI: Provide consistent PNPID match handling

Toshi Kani linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: Remove acpi_device dependency in acpi_device_set_id()drivers/acpi/scan.c drivers/acpi/video_detect.c drivers/gpu/drm/i915/intel_opregion.c +2 more+59 -570 replies
2/3ACPI: Update PNPID set/free interfacesdrivers/acpi/internal.h drivers/acpi/power.c drivers/acpi/scan.c+45 -440 replies
3/3ACPI: Update PNPID match handling for notifydrivers/acpi/scan.c+52 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ACPI: Provide consistent PNPID match handling

When installing/removing a notify handler to/from an ACPI device object, ACPI core tries to match its associated scan handler to see if it supports hotplug. However, the matching logic of the notify handler is different from the matching logic of attaching a scan handler to an ACPI device object. This inconsistency can lead a mismatch and prevents ACPI scan handlers from supporting non-HID devices, such as processor objects.

This patchset first updates PNPID setup interfaces to be independent from acpi_device, and then updates the matching logic of the notify handlers to be consistent with the attach handling.

This patchset is based on linux-pm.git/bleeding-edge.

---
Toshi Kani (3):
ACPI: Remove acpi_device dependency in acpi_device_set_id()
ACPI: Update PNPID set/free interfaces
ACPI: Update PNPID match handling for notify

---
 drivers/acpi/internal.h               |   2 +-
 drivers/acpi/power.c                  |   2 +-
 drivers/acpi/scan.c                   | 203 +++++++++++++++++++---------------
 drivers/acpi/video_detect.c           |  25 ++---
 drivers/gpu/drm/i915/intel_opregion.c |   4 +-
 include/acpi/acpi_bus.h               |  14 ++-
 include/linux/acpi.h                  |   4 +-
 7 files changed, 138 insertions(+), 116 deletions(-)