Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp383130pxf; Thu, 1 Apr 2021 03:50:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2LyZOB30yfC0KDzrOGN6z9R2cJSSWkXvompKL0Ngx2dDEPSPB2t40xzKEom+rIqDLzhU+ X-Received: by 2002:aa7:c684:: with SMTP id n4mr9086762edq.141.1617274205671; Thu, 01 Apr 2021 03:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617274205; cv=none; d=google.com; s=arc-20160816; b=0URFR8PeP8c1Hnbx6mdJfKAcfpGIltRSUWVkOylUdMBq5+9zVw064cydVec7Iwksci sh6QaKayKQV0qm/1JL8m820BCVT6GlfJcR+hMfwDYG4ZRUjlUdJnbTpqL58pM0KRZOSt /EvdoVL4W1jupDl+/LsulbFJhXThl2u/6H6Qs/NjdhO1TOoYIzux7yUFPEMNK05PctUs O8zUYFtkI8cZOb5RGeghjxTaV6efzysOwdGVYLVzkqt1k+olqXPi7r8ftlQLrMXipnZf 1MOiYPJQ3EYbST5vm3HceC7kNi8kKb+We1lftROk5h8+8KetRuFD5rSHhsBXy+4hTQuc Km5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=o87MMBtEyXrLDI+UXXVN/kLAY/ixo6UgJV9nJTpzby0=; b=h5gLnKjYLYXmw814dChwVbpAQ08fJZWNaVr4KL2dXbfEkYPMsOxjDkQNBBgqhgih3E xWg8r/1MxpuYneJ0EI05FzTC2jjbGW3OBM+yJIW6/RyV42UuxdaOTidRqzPfGzRBt8oO AlzOunEDcoEvO6rfnAkY5TMPH91sdBhpyk4X6W+FZwz49w9fPgRV+bjLBnGGlKZLPG4i d4tdsQcXSEEDQHom0TBylp06Pqu47rWTjHihu/UeMcZTkM5MuOOxoyuJPWaOkvuwUmvL Qgdgl2i1rjZ/oczB/xH3+hpU8Wbe1XnMYgXST9v2dCVGCTMUbBlbZDD9lFrUfT0BubHq nmzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si3608057ejw.185.2021.04.01.03.49.43; Thu, 01 Apr 2021 03:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233710AbhDAKqi (ORCPT + 99 others); Thu, 1 Apr 2021 06:46:38 -0400 Received: from mail-ot1-f49.google.com ([209.85.210.49]:38444 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbhDAKqR (ORCPT ); Thu, 1 Apr 2021 06:46:17 -0400 Received: by mail-ot1-f49.google.com with SMTP id w21-20020a9d63950000b02901ce7b8c45b4so1714342otk.5; Thu, 01 Apr 2021 03:46:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o87MMBtEyXrLDI+UXXVN/kLAY/ixo6UgJV9nJTpzby0=; b=n+PniYApmaTxqx1KRPtmEpK71o7hU89EQOFNHod08o6h4syknXKlrO74O8yqG4iH2z bEfEqMSmveENP4dKb1JcevEswChDc9pG6AKN/ZR3AGaAVzRGwW7E5yf5fFn+Y5irHw99 l/nUanCr+Gaw7Kc6tDTH2k6Emh547b2yyiuxD9PnyyGJjxRFillvGVgVpMfC5qcFIJLv /fVjo9toufQELotfLLjy2xTuIOCJJyuOqv47dPCL29GN5LRm6t5nYgNKgCFF6mwkYCrv Z0bMm/1p0gpx5Jc5rVqy3Cv4xl8QWPlSeXkubSSuJHWdCBA7xSdRVGt7mrsy7KHiX0aG NaIA== X-Gm-Message-State: AOAM530o2SFLgAqLw1GO8KnIctn/3smsNlBGD/VQYoL0Z4FzpNlSbYqw bCnXQtAVFyiQQELwztewFfZYsgnwDufvYbABsJnXm+tb X-Received: by 2002:a05:6830:55b:: with SMTP id l27mr5757449otb.260.1617273976398; Thu, 01 Apr 2021 03:46:16 -0700 (PDT) MIME-Version: 1.0 References: <4319486.LvFx2qVVIh@kreacher> <20210331210845.GA1422864@bjorn-Precision-5520> In-Reply-To: <20210331210845.GA1422864@bjorn-Precision-5520> From: "Rafael J. Wysocki" Date: Thu, 1 Apr 2021 12:46:03 +0200 Message-ID: Subject: Re: [PATCH] PCI: ACPI: PM: Fix debug message in acpi_pci_set_power_state() To: Bjorn Helgaas Cc: "Rafael J. Wysocki" , Linux PCI , Linux ACPI , LKML , Mika Westerberg , David Box , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 11:09 PM Bjorn Helgaas wrote: > > On Thu, Mar 25, 2021 at 07:57:51PM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If PCI_D3cold is passed to acpi_pci_set_power_state() as the second > > argument and there is no ACPI D3cold support for the given device, > > the debug message printed by that function will state that the > > device power state has been changed to D3cold, while in fact it > > will be D3hot, because acpi_device_set_power() falls back to D3hot > > automatically if D3cold is not supported without returning an error. > > > > To address this issue, modify the debug message in question to print > > the current power state of the target PCI device's ACPI companion > > instead of printing the target power state which may not reflect > > the real final power state of the device. > > > > Signed-off-by: Rafael J. Wysocki > > Applied with Krzysztof's reviewed-by to pci/pm for v5.13, thanks! > > Let me know if you have nearby or related changes that you'd rather > take via your tree. I don't have any, thank you!