linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ACPI: Improve behaviour on Apple hardware
@ 2014-09-20 11:19 andreas.noever
  2014-09-20 11:19 ` [PATCH v2 1/3] ACPI: Don't assume the existence of an SBS charger andreas.noever
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: andreas.noever @ 2014-09-20 11:19 UTC (permalink / raw)
  To: rjw
  Cc: lenb, robert.moore, lv.zheng, linux-acpi, linux-kernel, linux-pci,
	bhelgaas, matthew.garrett, Andreas Noever

From: Andreas Noever <andreas.noever@gmail.com>

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:
> 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(-)

-- 
2.1.0


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

end of thread, other threads:[~2014-09-25 23:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-20 11:19 [PATCH v2 0/3] ACPI: Improve behaviour on Apple hardware andreas.noever
2014-09-20 11:19 ` [PATCH v2 1/3] ACPI: Don't assume the existence of an SBS charger andreas.noever
2014-09-20 11:19 ` [PATCH v2 2/3] ACPI: Disable smart battery manager on Apple andreas.noever
2014-09-20 11:19 ` [PATCH v2 3/3] ACPI: Support _OSI("Darwin") correctly andreas.noever
2014-09-21  0:22 ` [PATCH v2 0/3] ACPI: Improve behaviour on Apple hardware Rafael J. Wysocki
2014-09-25 23:45 ` Rafael J. Wysocki

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).