Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp999261yba; Thu, 4 Apr 2019 02:06:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoyJXQ2cyaNvW5kMryJ1h7xJfmVqly1K8PsgpJghCzHrUmNN2u7V8w+gfGwM0uLUVme8vk X-Received: by 2002:a17:902:aa5:: with SMTP id 34mr5120134plp.302.1554368764479; Thu, 04 Apr 2019 02:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368764; cv=none; d=google.com; s=arc-20160816; b=M6Ydr4EqDtWhzuAh7mAZTi1WSfL7lPWjmgES8o5oFTPf+e9kR0p8g7FjDBRsI8tmxI 0PKlDjnaEWwViq5QnHF+c1bNo/Ci1kmPNRy3udLj1G61UfXnZP6uizfdSpXuvZaHQTyh /gU9oV5PC7F+jgBz3vA0EZYfZEwUUeSrwVjy0t9yJ/QFc4RX5p/jDI7h7gVoVXxy2yZq v5UTvc7uTm+0vlfcU46lCK9DVgLDWQQ1SEh5zS1ZJzKxbQxv2aIB5Hk8Pn9/WxypaV9g fShQ1DB9S1e4GCGSpTxMGqIJSpNMAVZi5a7b/c1LfDgaeApl67zAKHeXzXaT+e07w/yT 35FQ== 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=gMlIq7zoprOoE28tSHV8rNlv63gYiee9StGgXkSdHAc=; b=0WO6KkJGRAlz6I2drDyG0P7UqKB07wG3yIS4D9QdKfMfEUAwxNdJNH03PzTtvulw5b XqP4yGajPuiaqmthZhO1ypFBnS+PvJEXEm/NgIu+iEW0c4EnmdnB3T8kt8XEA9oJ6YmX 4jsj6pCSQyFYbQ9J9pTHaEzvdNx0pvhxJk70bl7jIF/sEVwCs7zljxjoEaIpQTZP3LqS BF79URT07cqEgmzsGglP4haMmiJN0u2YCJoTmZ0bTMG/At0ebk+qn9GorZvQYKJLRlz0 CLcXYVECAr+QRVwMtckOTOFNOHsHyJQPX90FDlCthl0B3W0Ijqv4hxTovI6S628V8ioS dxEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1HEMGTSM; 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 k8si7768279plt.354.2019.04.04.02.05.49; Thu, 04 Apr 2019 02:06:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1HEMGTSM; 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 S1731847AbfDDJFR (ORCPT + 99 others); Thu, 4 Apr 2019 05:05:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:43258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731152AbfDDJFP (ORCPT ); Thu, 4 Apr 2019 05:05:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 B3C512177E; Thu, 4 Apr 2019 09:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368714; bh=sjclc+myQo8/mM02qaV+Ao0IEMd/hTxtmOFXGu6BWkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1HEMGTSMOBwayrZtYQ/mFYRj/EVcqckb6EBnjF/HIVn/L9XvbXZPVkXVx3QnlVpgu x1x9MD8vdnIYWmJuR2X46+k8RTx9v6lwfH0YBXh+Fu6wYnPUQ5xymiYGKCbweqEbg8 DCGrq1I8SoU6frFqkJ6bfBjfvRGQ1k1fnfAlgWEs= 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.19 126/187] e1000e: Exclude device from suspend direct complete optimization Date: Thu, 4 Apr 2019 10:47:43 +0200 Message-Id: <20190404084609.163803684@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 59f58708c5047289589cbf6ee95146b76cf57d1e ] e1000e sets different WoL settings in system suspend callback and runtime suspend callback. The suspend direct complete optimization leaves e1000e in runtime suspended state with wrong WoL setting during system suspend. To fix this, we need to disable suspend direct complete optimization to let e1000e always use suspend callback to set correct WoL during system suspend. Signed-off-by: Kai-Heng Feng Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/e1000e/netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index 23edc1364487..8b11682ebba2 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -7327,6 +7327,8 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent) e1000_print_device_info(adapter); + dev_pm_set_driver_flags(&pdev->dev, DPM_FLAG_NEVER_SKIP); + if (pci_dev_run_wake(pdev)) pm_runtime_put_noidle(&pdev->dev); -- 2.19.1