Skip to content

ACPI: Improve behaviour on Apple hardware

[email protected] linux-acpi linux-pci 1 version Applied

Status from this message: I've queued up this series for 3.18, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3ACPI: Don't assume the existence of an SBS chargerdrivers/acpi/sbs.c+22 -70 replies
2/3ACPI: Disable smart battery manager on Appledrivers/acpi/sbs.c+43 -80 replies
3/3ACPI: Support _OSI("Darwin") correctlydrivers/acpi/osl.c drivers/acpi/pci_root.c+24 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] ACPI: Improve behaviour on Apple hardware

From: Andreas Noever <[email protected]>

This is a resend of Matthew's patches from https://lkml.org/lkml/2014/6/1/165
which are needed to fully support Thunderbolt on Apple hardware:

Quoted 6 lines

Apple hardware behaves differently depending on whether or not the OS claims to be Darwin. Failing to report Darwin results in some hardware being disabled. However, claiming to be Darwin also alters the behaviour of battery reporting and PCI handling. These patches add support for reporting Darwin support and fixing up the behavioural quirks that are exposed as a result.

Without these patches the firmware will cut power to the controller after suspend (at the latest) and the thunderbolt driver will fail.

I have reordered them such that the two battery fixes/quirks come before the _OSI change that breaks battery reporting. I have also merged "ACPI: Don't call PCI OSC on Apple hardware when claiming to be Darwin" into "ACPI: Support _OSI("Darwin") correctly" to avoid (temporarily) breaking hotplug events and modified the patch to not touch ACPICA, as requested by Rafael.

Matthew Garrett (3):
ACPI: Don't assume the existence of an SBS charger
ACPI: Disable smart battery manager on Apple
ACPI: Support _OSI("Darwin") correctly

 drivers/acpi/osl.c      | 10 +++++++
 drivers/acpi/pci_root.c | 14 +++++++++
 drivers/acpi/sbs.c      | 80 +++++++++++++++++++++++++++++++++++++++----------
 3 files changed, 89 insertions(+), 15 deletions(-)
Signature · 1 line
2.1.0