Rafael J. Wysocki
78579b7c7e
ACPI / PM: Ignore wakeup setting if the ACPI companion can't wake up
...
As reported by Dmitry, on some Chromebooks there are devices with
corresponding ACPI objects and with unusual system wakeup
configuration. Namely, they technically are wakeup-capable, but the
wakeup is handled via a platform-specific out-of-band mechanism and
the ACPI PM layer has no information on the wakeup capability. As
a result, device_may_wakeup(dev) called from acpi_dev_suspend_late()
returns 'true' for those devices, but the wakeup.flags.valid flag is
unset for the corresponding ACPI device objects, so acpi_device_wakeup()
reproducibly fails for them causing acpi_dev_suspend_late() to return
an error code. The entire system suspend is then aborted and the
machines in question cannot suspend at all.
Address the problem by ignoring the device_may_wakeup(dev) return
value in acpi_dev_suspend_late() if the ACPI companion of the device
being handled has wakeup.flags.valid unset (in which case it is clear
that the wakeup is supposed to be handled by other means).
This fixes a regression introduced by commit a76e9bd89a (i2c:
attach/detach I2C client device to the ACPI power domain) as the
affected systems could suspend and resume successfully before that
commit.
Fixes: a76e9bd89a (i2c: attach/detach I2C client device to the ACPI power domain)
Reported-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Cc: 3.13+ <stable@vger.kernel.org> # 3.13+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-11-20 01:24:16 +01:00
..
acpica
ACPICA: iASL/Disassembler: Add support for hardware summary mapfiles.
2014-10-21 00:39:40 +02:00
apei
ACPI and power management updates for 3.17-rc1
2014-08-06 20:34:19 -07:00
ac.c
Revert "ACPI / AC: Remove AC's proc directory."
2014-07-07 01:13:46 +02:00
acpi_cmos_rtc.c
ACPI / RTC: Fix CMOS RTC opregion handler accesses to wrong addresses
2014-09-08 15:38:41 +02:00
acpi_extlog.c
ACPI and power management updates for 3.17-rc1
2014-08-06 20:34:19 -07:00
acpi_ipmi.c
acpi_lpss.c
Merge back earlier 'acpi-lpss' material for v3.18.
2014-09-29 15:29:18 +02:00
acpi_memhotplug.c
ACPI / scan: always register memory hotplug scan handler
2014-05-30 16:04:36 +02:00
acpi_pad.c
ACPI / PAD: Use time_before() for time comparison
2014-05-27 01:38:23 +02:00
acpi_platform.c
ACPI and power management updates for 3.18-rc2
2014-10-24 11:29:31 -07:00
acpi_pnp.c
ACPI and power management updates for 3.18-rc1
2014-10-09 16:07:43 -04:00
acpi_processor.c
ACPI: Don't use acpi_lapic in ACPI core code
2014-07-21 13:50:58 +02:00
battery.c
ACPI / battery: Replace strnicmp with strncasecmp
2014-09-24 23:26:32 +02:00
battery.h
bgrt.c
blacklist.c
ACPI / blacklist: blacklist Win8 OSI for Dell Vostro 3546
2014-10-30 01:32:43 +01:00
bus.c
ACPIPHP / radeon / nouveau: Remove acpi_bus_no_hotplug()
2014-09-15 13:15:34 -06:00
button.c
ACPI / button: Do not propagate wakeup-from-suspend events
2014-07-23 00:59:04 +02:00
cm_sbs.c
ACPI: Revert "ACPI: Remove CONFIG_ACPI_PROCFS_POWER and cm_sbsc.c"
2014-05-06 01:52:09 +02:00
container.c
ACPI / hotplug: Generate online uevents for ACPI containers
2014-09-21 02:58:18 +02:00
custom_method.c
debugfs.c
device_pm.c
ACPI / PM: Ignore wakeup setting if the ACPI companion can't wake up
2014-11-20 01:24:16 +01:00
dock.c
ACPI / dock: Drop dock_device_ids[] table
2014-04-07 14:11:35 +02:00
ec.c
ACPI / EC: Fix regression due to conflicting firmware behavior between Samsung and Acer.
2014-10-29 16:52:35 +01:00
ec_sys.c
event.c
fan.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
2014-10-24 11:21:43 -07:00
glue.c
hed.c
int340x_thermal.c
Thermal: introduce int3400 thermal driver
2014-10-10 13:57:09 +08:00
internal.h
ACPI / fan: use acpi_device_xxx_power instead of acpi_bus equivelant
2014-10-10 13:57:12 +08:00
Kconfig
Thermal: int340x thermal: select ACPI fan driver
2014-10-17 14:30:41 +08:00
Makefile
ACPI: introduce ACPI int340x thermal scan handler
2014-09-11 23:35:15 +08:00
numa.c
nvs.c
ACPI: Clean up acpi_os_map/unmap_memory() to eliminate __iomem.
2014-05-27 18:13:08 +02:00
osl.c
Merge branch 'acpi-pm'
2014-10-07 01:17:50 +02:00
pci_irq.c
x86, irq, PCI: Keep IRQ assignment for runtime power management
2014-08-29 13:38:00 +02:00
pci_link.c
ACPI: Remove duplicate definitions of PREFIX
2014-03-19 02:01:57 +01:00
pci_root.c
ACPI: Support _OSI("Darwin") correctly
2014-09-24 23:31:12 +02:00
pci_slot.c
power.c
ACPI: Remove duplicate definitions of PREFIX
2014-03-19 02:01:57 +01:00
proc.c
processor_core.c
ACPI / processor: use container_of instead of casting first structure member
2014-09-24 23:13:02 +02:00
processor_driver.c
ACPI / processor: Make acpi_cpu_soft_notify() process CPU FROZEN events
2014-08-06 22:22:03 +02:00
processor_idle.c
ACPI / cpuidle: fix deadlock between cpuidle_lock and cpu_hotplug.lock
2014-09-03 23:05:55 +02:00
processor_pdc.c
ACPI / processor: Introduce ARCH_MIGHT_HAVE_ACPI_PDC
2014-07-21 13:50:58 +02:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
resource.c
ACPI / resources: only reject zero length resources based at address zero
2014-07-07 22:11:09 +02:00
sbs.c
ACPI / SBS: Fix check in acpi_ac_get_present()
2014-09-28 01:27:42 +02:00
sbshc.c
sbshc.h
scan.c
ACPI: Use ACPI companion to match only the first physical device
2014-10-27 18:41:46 +01:00
sleep.c
ACPI / sleep: Rework the handling of ACPI GPE wakeup from suspend-to-idle
2014-09-30 21:06:07 +02:00
sleep.h
sysfs.c
ACPICA: Events: Reduce source code difference for the ACPI_EVENT_FLAG_HANDLE renaming.
2014-10-21 00:39:40 +02:00
tables.c
ACPI: use kstrto*() instead of simple_strto*()
2014-06-17 14:01:56 +02:00
thermal.c
Thermal: move the KELVIN_TO_MILLICELSIUS macro to thermal.h
2014-10-10 13:57:15 +08:00
utils.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
2014-10-24 11:21:43 -07:00
video.c
Merge back 'acpi-video' material for v3.18.
2014-10-03 15:46:02 +02:00
video_detect.c
ACPI / video: force vendor backlight on Lenovo Ideapad Z570
2014-09-24 23:09:41 +02:00
wakeup.c