From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EF8DC48BD5 for ; Tue, 25 Jun 2019 12:06:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F0882146E for ; Tue, 25 Jun 2019 12:06:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729742AbfFYMGk (ORCPT ); Tue, 25 Jun 2019 08:06:40 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:46625 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbfFYMGg (ORCPT ); Tue, 25 Jun 2019 08:06:36 -0400 Received: from 79.184.254.216.ipv4.supernova.orange.pl (79.184.254.216) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.267) id a3be8bf0b7d12839; Tue, 25 Jun 2019 14:06:33 +0200 From: "Rafael J. Wysocki" To: Linux ACPI Cc: Bjorn Helgaas , Linux PM , Mika Westerberg , LKML , Zhang Rui Subject: [PATCH 0/2] ACPI: PM: Fix two issues in acpi_device_set_power() Date: Tue, 25 Jun 2019 14:03:17 +0200 Message-ID: <10419005.Mb09WM6RCc@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi All, There are two, arguably minor, issues in acpi_device_set_power() that have been introduced while making the code follow the ACPI 6 recommendations. One of them is that, if the device is in D3hot, transitioning it into D3cold only involves dropping references to some power resources and it should not involve evaluating _PS3 which may happen currently. The second one is that it sometimes is necessary to update the power state of a device to D0 even if it was put into D0 previously, so that needs to be possible. Please refer to the patch changelogs for details. Thanks, Rafael