Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3615791pxj; Mon, 21 Jun 2021 02:48:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTUakoe3yCCvCRs7INaneP2R7h2DBxwnpy9LIaefPjnT+MdwUxl+ONV4Zm0LLE6DHQCgi2 X-Received: by 2002:a6b:8b8f:: with SMTP id n137mr7902681iod.145.1624268919292; Mon, 21 Jun 2021 02:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624268919; cv=none; d=google.com; s=arc-20160816; b=HuZi5m3Z5Tkntgo1m74GJ8ZFaYF/XRvpRW44hXAIHRpIN4McNPGC8AIxDv7RoXlSSZ GgQSS8sdYTJF5mOJn0OfwpcdLyeI2L38C6xyDCrpyXnve3wbD85ypyQx7uySv2VwvCIY zb7zGJ9gFH5IsUDmbZA1zQpFeMzBry8uhWUkAr3n7+7Jcvkz8tS4ZtyOfgcItDfuGEBU 2SG2QU5JtxG7/vM+A3ukik4o3tTOjRc6MDSvjXWw9cxvxIdV5v0OdJSBhsm5dtXxh2L6 9NiwjBbKX6RJls4mK7T5eZkzkfMKKs9NcXt6f6bdh93laJUF+k9LpBAO7PLQ/V+rN69r PFzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=F/2vTi8io1v4eHOzKNh3aiRvdLkOtCVSwgScC7CiBj0=; b=yygVbJlfWLdDsis2RBLjVtwfljhyfUlijTL9mW7uojckPfjh6FZgaocnIVwv3+9PTz 2hKjqR4zj8KspSDV+v9BPICkqWZDhCvLoLVA/bhRQIHjFGkjyjAclxdwJ4hEtOjOFrz9 JeHRe9E8ZkXvKDtB/6EsdciJDhn1VEKYK1t5fgyu4w6QI01rHqAXXHiy/c2IU4lkzJXY XZlbQdoHl1A/l9qAZ85Aj1GLHF3ASeuklm0xNfF/cTMzJXSDuUK4kmnjO6iIJsWPaP1x gTDHBjBpJlfT2cASa8xx62R35I4RHxQIxfDoA+i0k00w4jHzSMFFQeqwsztEqIUi3KyV GGbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q24si13494462jav.15.2021.06.21.02.48.27; Mon, 21 Jun 2021 02:48:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231131AbhFUJsq (ORCPT + 99 others); Mon, 21 Jun 2021 05:48:46 -0400 Received: from mga03.intel.com ([134.134.136.65]:62591 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230479AbhFUJsa (ORCPT ); Mon, 21 Jun 2021 05:48:30 -0400 IronPort-SDR: cxiT4A+hFsFQS8WsrkA2drggYYxaWXo5BdCSCiX/OdYraVSjzp2PLhJSZi0YnfLB/4YYURmeeZ MfWEAo3CaPSg== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="206852457" X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="206852457" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2021 02:46:15 -0700 IronPort-SDR: neKELTmt31WoAvjNQcXp+1P6WpL/4Do+v28x74Uedwxd8vt3xG6AIgcdfznSP26mRdEAIRLioM CD6Zrh0XniJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="638720326" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga006.fm.intel.com with ESMTP; 21 Jun 2021 02:46:10 -0700 From: Ling Pei Lee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Russell King , Ong Boon Leong , Voon Weifeng , Wong Vee Khee , Wong Vee Khee , Tan Tee Min , Michael Sit Wei Hong , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: pei.lee.ling@intel.com Subject: [PATCH net-next V1 4/4] stmmac: intel: set PCI_D3hot in suspend Date: Mon, 21 Jun 2021 17:45:36 +0800 Message-Id: <20210621094536.387442-5-pei.lee.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621094536.387442-1-pei.lee.ling@intel.com> References: <20210621094536.387442-1-pei.lee.ling@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Voon Weifeng During suspend, set the Intel mgbe to D3hot state to save power consumption. Signed-off-by: Voon Weifeng Signed-off-by: Ling Pei Lee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 73be34a10a4c..69a725b661c2 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -1088,6 +1088,7 @@ static int __maybe_unused intel_eth_pci_suspend(struct device *dev) return ret; pci_wake_from_d3(pdev, true); + pci_set_power_state(pdev, PCI_D3hot); return 0; } -- 2.25.1