Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2748651ybh; Mon, 5 Aug 2019 06:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzL7i4E9w5xuCwNOmU23SJb7bcyBPC/ZIRetoqoJc5Lb/8g78o7LTxPYjz6rK6t3eRVEWJb X-Received: by 2002:a17:90a:23ce:: with SMTP id g72mr18156875pje.77.1565010894154; Mon, 05 Aug 2019 06:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010894; cv=none; d=google.com; s=arc-20160816; b=QOxc5ZyIf5BCkWhS3lhELAaxLE/W3L1ClOL4ayTnMjPK8A/HoTCYVGcyx4LDkgX0CE a4mRVZK+lmXy/2uHcksRkJ9vAaPu5H5gbZXti6sHaQBkFAVG/Eal4st7WNPckfDLHe5A XDNvlZLx5lzrPYG2e8qzKaAYaFye+5f4AEAmbuSc5m/RbfVylJH6p1uQujZDYuRBLjDd NNl7eShMg57t1cmtpXwBb7QCWSYHE4iH12yl+ehVFlE5MpZ3YEOR5C8WSQMh4uVwp+lS G626cgSFuolq7xBdJGHBPbuLR8dKKsfYRVUoG7YIzuaiPvl8YRVn+8qQdjM/Ai/r8KmX N0kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+kyf2QXZwDFCBxbpJTeIK0rwr8hgMDvYI4XD/RZJC8c=; b=cIdSqr2/1DfnIgeVZUcOEr6Rds/8jArS7fiIuhe/MyxJf+ni+QHTQE5g0MYQP1NUCb mHdwFmMTIJK35m6gBURq75i4STQOOXbZ0QGbAsaUr17PIb9PJ9CX+RGE3PBO9vt/8aoJ +1pCftKU8/y6QU79d5TKjCQjKEXnIUMTDYvktdMyYsJVXQ+brGD9KQyF1h4Uh9w9jPeG OM7iU5lphmowEwoGnU4OUqkCb/prrRtXOqx1lwIyqM/pQev16RqFV65GLyn4wQ3y6cZg 83pHVpEdpsh4djxt4Vv8B2jKkb7YypvgfM9+PXiPIYU2OTsm81DIGG7rtHwzzK2cWxF4 dWCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37si40608997pld.231.2019.08.05.06.14.38; Mon, 05 Aug 2019 06:14:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729222AbfHENOD (ORCPT + 99 others); Mon, 5 Aug 2019 09:14:03 -0400 Received: from mga03.intel.com ([134.134.136.65]:48347 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729938AbfHENN6 (ORCPT ); Mon, 5 Aug 2019 09:13:58 -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 orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Aug 2019 06:13:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,350,1559545200"; d="scan'208";a="192417675" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 05 Aug 2019 06:13:07 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 05 Aug 2019 16:13:07 +0300 Date: Mon, 5 Aug 2019 16:13:06 +0300 From: Mika Westerberg To: Lukas Wunner Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Keith Busch , Andy Shevchenko , Frederick Lawler , "Gustavo A . R . Silva" , Sinan Kaya , Kai Heng Feng , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] PCI: pciehp: Do not disable interrupt twice on suspend Message-ID: <20190805131306.GQ2640@lahna.fi.intel.com> References: <20190618125051.2382-1-mika.westerberg@linux.intel.com> <20190804195306.gm4livsxkrleaciv@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190804195306.gm4livsxkrleaciv@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 04, 2019 at 09:53:06PM +0200, Lukas Wunner wrote: > On Tue, Jun 18, 2019 at 03:50:50PM +0300, Mika Westerberg wrote: > > @@ -313,10 +332,12 @@ static struct pcie_port_service_driver hpdriver_portdrv = { > > .remove = pciehp_remove, > > > > #ifdef CONFIG_PM > > +#ifdef CONFIG_PM_SLEEP > > .suspend = pciehp_suspend, > > .resume_noirq = pciehp_resume_noirq, > > +#endif > > .resume = pciehp_resume, > > - .runtime_suspend = pciehp_suspend, > > + .runtime_suspend = pciehp_runtime_suspend, > > .runtime_resume = pciehp_runtime_resume, > > #endif /* PM */ > > }; > > Hm, why isn't ".resume" part of the "#ifdef CONFIG_PM_SLEEP" section? Good point. I'll move it there.