Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2687186imj; Mon, 11 Feb 2019 07:02:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IbU8F5m4nr5Pu9c6VGijo0GW0K7Es/nkMH2b+2HNtBiV57oY+lGVUz1dQ3TWhz6CBlxnNio X-Received: by 2002:a17:902:1a2:: with SMTP id b31mr38273911plb.87.1549897369370; Mon, 11 Feb 2019 07:02:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897369; cv=none; d=google.com; s=arc-20160816; b=bHUaI1KpGCTnvPivKQu/HJlfCMyllMvH+K0PmchuNL6wT0SRg6aO7V0EMD8lN/oP3x oUhTX2vqT+3bqFxxOhBiM6a4FklzREHF+G+ZXiLGtojVPTzzeyrHW2RDBetxp/C5OIzM mEeGwBgbBG7Ntm/yWAarwVCH84LGr8cfq+6b4dk6LvoP9socztSVj1OqTtgpDbHKS8Cw sq3H5S2PZ3D3Li4ftEVRij2teqeLmokQV58rhD7scG0xuii0nzLwij9ubsgYtws329a7 xaPwnZAu8pdwF0t5+L7iMjHQdGN4UdlEzAj9fWNlM1JRxq6Jit1sZd6gHXXXUuoztRF8 97UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TGgMEgyhjBQxLB5CfaAT+e9x3X/lgFB5cZEJwkbxHE4=; b=TokF5e/NCYwXWV7cmvw24MhlMSTLKXvt++Ptsm/memNz+DG08wU9J6AOImif0dpsFP 57VeCn0f9xFTDazGc4gJSruziKE6Ik9FkkHKrvBeAKjv/TyMbsi2VRlKnL1I1d9ss+7q FD/NQl4y2xdUUyxkflKLuHHWB6OhyAfHFA2CWvlpajeLB4N/WE/rCFJjulP5tdF1B1cX 0Nr5qAKajYoWFEhVGKvilhetGvmhPie/eYKgtMSilPF4t7IcXynAaK93YtgCZI518PiA JuVBMM3PezK0Bkaobs7zHGSBcYrb0ZGiSb1UC41Q96PL9aVxipiroF0lyA6SB28JuUIe +Tgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zpH2KlWq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si7051870plr.430.2019.02.11.07.02.26; Mon, 11 Feb 2019 07:02:49 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=zpH2KlWq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389942AbfBKPAI (ORCPT + 99 others); Mon, 11 Feb 2019 10:00:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:47996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389930AbfBKPAG (ORCPT ); Mon, 11 Feb 2019 10:00:06 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6040921773; Mon, 11 Feb 2019 15:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897205; bh=ZD3YX5Xrdn4rBzy1JQznJG4BraxFklYWRjYpp/UP7MA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zpH2KlWq6jSdpOJCTWM9spec9WEExuaTZGO+Ch0UpwKSYDoZs/jS80flXZEw2qppW WN7l2+R7a2SQdejrglMufYmq70go9oMfcbRYbCsAqyXOJEfSNUkFEwemhtUjtrsgDw 0yn8rlLWTNBbJjBzNOD45es16Gk0G85rHVtHJo58= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , Aaron Brown , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 126/205] igb: Fix an issue that PME is not enabled during runtime suspend Date: Mon, 11 Feb 2019 15:18:44 +0100 Message-Id: <20190211141836.714264710@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 1fb3a7a75e2efcc83ef21f2434069cddd6fae6f5 ] I210 ethernet card doesn't wakeup when a cable gets plugged. It's because its PME is not set. Since commit 42eca2302146 ("PCI: Don't touch card regs after runtime suspend D3"), if the PCI state is saved, pci_pm_runtime_suspend() stops calling pci_finish_runtime_suspend(), which enables the PCI PME. To fix the issue, let's not to save PCI states when it's runtime suspend, to let the PCI subsystem enables PME. Fixes: 42eca2302146 ("PCI: Don't touch card regs after runtime suspend D3") Signed-off-by: Kai-Heng Feng Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igb/igb_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 1c027f9d9af5..8892ea5cbb01 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -7950,9 +7950,11 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake, rtnl_unlock(); #ifdef CONFIG_PM - retval = pci_save_state(pdev); - if (retval) - return retval; + if (!runtime) { + retval = pci_save_state(pdev); + if (retval) + return retval; + } #endif status = rd32(E1000_STATUS); -- 2.19.1