Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp616553ybe; Thu, 19 Sep 2019 00:38:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLHOJ4F+Jr6az1uQyzz1CGjZrhuSzjUAPTEknIkLmenrGeDH8EdWQJK5yScvv8CvoNaOo4 X-Received: by 2002:a17:906:4d08:: with SMTP id r8mr10023611eju.283.1568878720351; Thu, 19 Sep 2019 00:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568878720; cv=none; d=google.com; s=arc-20160816; b=vcAuCw/OCGNyRIQnuMkwsjbIaDGjJ5vOi0Mt3lknxikC4wLfAah0HpGFrhYKRMOeqB 8l/c6n372SohvE6JY2zSJPdpszsXfvXi9h1jI9afclk40Us7eWvHuKIJqRnoxaCAjro3 pFnzlguvgtoVJ1JCn9JS6rvxCla3p7ZzHZ0DePLvBhSTnblsWGeAhYqIN38b30OuI8/g pM6aaaJUMkXjq1PPihsmcveoz3pdRZlGBl8R4tzcj7DkNkLoBwZyW3Tzy7IudI9MbGAh pVkgqxM8L+DeDva6MOQ/qIX8DNsMmXhk9jVnispi1cEVHQrSb5z1ZyiJY9ndBIcHqoBK WyKA== 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=hoJKLjdFrJEfKgVsQGnmtwqJxoeuFBg7eSI4x5EwCo8=; b=fPGq5DUQeAkTyjQqYpDenYNC3TYYgIDoAt8Yt+gyxazKb5PgLIrzub8Q1iu9wzSRZq Q3ehGobMzXk7mueQPi55w8aQiEHzJLJI7KFVufIOEY6j1Snuc3OkBTOGKVvO/XOyg8JF JHLKncfYBDDl63t0D4u+uyVuqe0I5yoakikbe3alGbo/6QZ39wr0AEMt9FaIcYqODLWi DZtHczbmygaJpOy+Xs/Vvho7JZRA0ItZyfKOT74SdbNwzYCnIt3zBz1GmsUCnK2Nf92G /8H6ZtAIMbzH3xCzDJDrHs0chlGitQkn+h3H2KK7eY9pXi8RNAD0pUHNXf2Acm0q7JAd M9vA== 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 j47si4967969ede.117.2019.09.19.00.38.17; Thu, 19 Sep 2019 00:38:40 -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 S2388466AbfISGnF (ORCPT + 99 others); Thu, 19 Sep 2019 02:43:05 -0400 Received: from mga14.intel.com ([192.55.52.115]:26168 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388450AbfISGnE (ORCPT ); Thu, 19 Sep 2019 02:43:04 -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 fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 23:42:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,522,1559545200"; d="scan'208";a="202224144" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 18 Sep 2019 23:42:50 -0700 Received: by lahna (sSMTP sendmail emulation); Thu, 19 Sep 2019 09:42:50 +0300 Date: Thu, 19 Sep 2019 09:42:50 +0300 From: Mika Westerberg To: Bjorn Helgaas , "Rafael J. Wysocki" Cc: Lukas Wunner , 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 v2 1/2] PCI: pciehp: Do not disable interrupt twice on suspend Message-ID: <20190919064250.GB28281@lahna.fi.intel.com> References: <20190812143133.75319-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812143133.75319-1-mika.westerberg@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 05:31:32PM +0300, Mika Westerberg wrote: > We try to keep PCIe hotplug ports runtime suspended when entering system > suspend. Due to the fact that the PCIe portdrv sets NEVER_SKIP driver PM > flag the PM core always calls system suspend/resume hooks even if the > device is left runtime suspended. Since PCIe hotplug driver re-uses the > same function for both it ends up disabling hotplug interrupt twice and > the second time following is printed: > > pciehp 0000:03:01.0:pcie204: pcie_do_write_cmd: no response from device > > Prevent this from happening by checking whether the device is already > runtime suspended when system suspend hook is called. > > Fixes: 9c62f0bfb832 ("PCI: pciehp: Implement runtime PM callbacks") > Reported-by: Kai-Heng Feng > Tested-by: Kai-Heng Feng > Signed-off-by: Mika Westerberg > Reviewed-by: Rafael J. Wysocki Hi Bjorn, Any comments on these two?