OSDN Git Service

ACPI / LPSS: Consolidate runtime PM and system sleep handling
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 16 Oct 2017 01:29:55 +0000 (03:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 24 Oct 2017 11:27:45 +0000 (13:27 +0200)
commita192aa923b66a435aae56983c4912ee150bc9b32
tree3e09eab844a4524ad233470090b8b50bec024f61
parentcbe25ce37d6c2623b5ac09128987e98848a54c6c
ACPI / LPSS: Consolidate runtime PM and system sleep handling

Move the LPSS-specific code from acpi_lpss_runtime_suspend()
and acpi_lpss_runtime_resume() into separate functions,
acpi_lpss_suspend() and acpi_lpss_resume(), respectively, and
make acpi_lpss_suspend_late() and acpi_lpss_resume_early() use
them too in order to unify the runtime PM and system sleep
handling in the LPSS driver.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/acpi/acpi_lpss.c