acpi_tad.c (3eb66e91a25497065c5322b1268cbc3953642227) acpi_tad.c (2a3f34750b8b07df42ab4b30b70e029d46e0d7f3)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ACPI Time and Alarm (TAD) Device Driver
4 *
5 * Copyright (C) 2018 Intel Corporation
6 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
7 *
8 * This driver is based on Section 9.18 of the ACPI 6.2 specification revision.

--- 610 unchanged lines hidden (view full) ---

619 /*
620 * Assume that the ACPI PM domain has been attached to the device and
621 * simply enable system wakeup and runtime PM and put the device into
622 * runtime suspend. Everything else should be taken care of by the ACPI
623 * PM domain callbacks.
624 */
625 device_init_wakeup(dev, true);
626 dev_pm_set_driver_flags(dev, DPM_FLAG_SMART_SUSPEND |
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ACPI Time and Alarm (TAD) Device Driver
4 *
5 * Copyright (C) 2018 Intel Corporation
6 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
7 *
8 * This driver is based on Section 9.18 of the ACPI 6.2 specification revision.

--- 610 unchanged lines hidden (view full) ---

619 /*
620 * Assume that the ACPI PM domain has been attached to the device and
621 * simply enable system wakeup and runtime PM and put the device into
622 * runtime suspend. Everything else should be taken care of by the ACPI
623 * PM domain callbacks.
624 */
625 device_init_wakeup(dev, true);
626 dev_pm_set_driver_flags(dev, DPM_FLAG_SMART_SUSPEND |
627 DPM_FLAG_LEAVE_SUSPENDED);
627 DPM_FLAG_MAY_SKIP_RESUME);
628 /*
629 * The platform bus type layer tells the ACPI PM domain powers up the
630 * device, so set the runtime PM status of it to "active".
631 */
632 pm_runtime_set_active(dev);
633 pm_runtime_enable(dev);
634 pm_runtime_suspend(dev);
635

--- 39 unchanged lines hidden ---
628 /*
629 * The platform bus type layer tells the ACPI PM domain powers up the
630 * device, so set the runtime PM status of it to "active".
631 */
632 pm_runtime_set_active(dev);
633 pm_runtime_enable(dev);
634 pm_runtime_suspend(dev);
635

--- 39 unchanged lines hidden ---