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=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham 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 72A63C2BCA1 for ; Fri, 7 Jun 2019 11:17:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F5E1212F5 for ; Fri, 7 Jun 2019 11:17:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbfFGLRm (ORCPT ); Fri, 7 Jun 2019 07:17:42 -0400 Received: from mga17.intel.com ([192.55.52.151]:36806 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728073AbfFGLRm (ORCPT ); Fri, 7 Jun 2019 07:17:42 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2019 04:17:42 -0700 X-ExtLoop1: 1 Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 07 Jun 2019 04:17:39 -0700 Received: by lahna (sSMTP sendmail emulation); Fri, 07 Jun 2019 14:17:39 +0300 Date: Fri, 7 Jun 2019 14:17:39 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Linux PCI , Linux PM , Bjorn Helgaas , LKML Subject: Re: [PATCH v2 1/2] PCI: PM: Avoid resuming devices in D3hot during system suspend Message-ID: <20190607111739.GT2781@lahna.fi.intel.com> References: <2958812.87Qy2A3tJo@kreacher> <3078848.tiz3m2NLmW@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3078848.tiz3m2NLmW@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Fri, Jun 07, 2019 at 12:30:58AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The current code resumes devices in D3hot during system suspend if > the target power state for them is D3cold, but that is not necessary > in general. It only is necessary to do that if the platform firmware > requires the device to be resumed, but that should be covered by > the platform_pci_need_resume() check anyway, so rework > pci_dev_keep_suspended() to avoid returning 'false' for devices > in D3hot which need not be resumed due to platform firmware > requirements. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg