From: Rafael J. Wysocki Date: Mon, 4 Jun 2018 08:41:53 +0000 (+0200) Subject: Merge branches 'pm-pci', 'acpi-pm', 'pm-sleep' and 'pm-avs' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a24e16b1310ce7f474aa0caca0e66f0f174c022f;p=openwrt%2Fstaging%2Fblogic.git Merge branches 'pm-pci', 'acpi-pm', 'pm-sleep' and 'pm-avs' * pm-pci: PCI / PM: Clean up outdated comments in pci_target_state() PCI / PM: Do not clear state_saved for devices that remain suspended * acpi-pm: ACPI: EC: Dispatch the EC GPE directly on s2idle wake ACPICA: Introduce acpi_dispatch_gpe() * pm-sleep: PM / hibernate: Fix oops at snapshot_write() PM / wakeup: Make s2idle_lock a RAW_SPINLOCK PM / s2idle: Make s2idle_wait_head swait based PM / wakeup: Make events_lock a RAW_SPINLOCK PM / suspend: Prevent might sleep splats * pm-avs: PM / AVS: rockchip-io: add io selectors and supplies for PX30 --- a24e16b1310ce7f474aa0caca0e66f0f174c022f diff --cc drivers/base/power/wakeup.c index e1322788eaee,ea01621ed769,ea01621ed769,2e76fbcba76e,ea01621ed769..5fa1898755a3 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@@@@@ -183,10 -183,11 -183,11 -183,11 -183,11 +183,10 @@@@@@ void wakeup_source_add(struct wakeup_so spin_lock_init(&ws->lock); timer_setup(&ws->timer, pm_wakeup_timer_fn, 0); ws->active = false; ---- ws->last_time = ktime_get(); --- - spin_lock_irqsave(&events_lock, flags); +++ + raw_spin_lock_irqsave(&events_lock, flags); list_add_rcu(&ws->entry, &wakeup_sources); --- - spin_unlock_irqrestore(&events_lock, flags); +++ + raw_spin_unlock_irqrestore(&events_lock, flags); } EXPORT_SYMBOL_GPL(wakeup_source_add); @@@@@@ -850,10 -851,10 -851,10 -851,10 -851,10 +850,10 @@@@@@ bool pm_wakeup_pending(void ret = (cnt != saved_count || inpr > 0); events_check_enabled = !ret; } --- - spin_unlock_irqrestore(&events_lock, flags); +++ + raw_spin_unlock_irqrestore(&events_lock, flags); if (ret) { ---- pr_info("PM: Wakeup pending, aborting suspend\n"); ++++ pr_debug("PM: Wakeup pending, aborting suspend\n"); pm_print_active_wakeup_sources(); }