Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4038348pxv; Mon, 28 Jun 2021 20:13:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDTGmp+aC1xNnwMnwV6NTWCO3+mCXcLgFgoPFwUPCsbvVbkvuqQJn5tJWsafg64XyhzqxY X-Received: by 2002:aa7:c548:: with SMTP id s8mr36603646edr.148.1624936399768; Mon, 28 Jun 2021 20:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624936399; cv=none; d=google.com; s=arc-20160816; b=e1l8+cAfXy/JS1ZRYIiHA9nFjFs3beI2dSq2yH4Qz3zNL5Tw62GqDGU+fJ6uWS0eOb wAMH6K6zPZI8ZgX7V7svsji0AG+d9o7o4qDCX8w293efpHUELg69XtFH49aAAvMS7rxD iHZ0TVh5YO/2IFd5xEtSImBy+s2KAN/+k5SFxE1lWhizk0GcEgrkwBmbObM/wj01iMFk AVKmODdVdVWUGFMWrmLHSYQsXemfuTBdxjlSvey0hsXOjNcRdUIq/jpCMBYb1JslWcRQ qaD8XFuxNWdFj45RTimIYlFs03E0cUbXxW2fg6BBK2a1Al0EWpUv55xag1Vxbnv01+KQ R5dw== 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; bh=F/2vTi8io1v4eHOzKNh3aiRvdLkOtCVSwgScC7CiBj0=; b=U3SJt+CaLpJfo+S8cT/PQnwZHpGwxp/Y8/gssA1UHZJXGNfsphxBus4/hJpHoGWa1B 7Yq0seyOdo+4GGbOQ9hFKIBamZZlQYQQ+ws4pfk8uduEQudagpLpExMHIyNM+gwZ6EDK ve9/ZBnFHgX2KHz+wr7af9cQ6dIB1i1WII9mOYHRf5k7v/w/I90tdlgx8uMdTclPG6I7 MvtZSubC/xhu6gb3MblxyHdDvSp/OYEAZmo9y5OCNwIlvf+OPFlgxGM7eYNG83Kr7EYM UQY7HDeeevETeBSIVE+w5a++o/59TwYvXPTGiUen3HNg5FyvnI2030LN7iQsqOnvkkAQ /7IA== 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 m4si10426289edc.107.2021.06.28.20.12.56; Mon, 28 Jun 2021 20:13:19 -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 S231992AbhF2DNN (ORCPT + 99 others); Mon, 28 Jun 2021 23:13:13 -0400 Received: from mga17.intel.com ([192.55.52.151]:40097 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbhF2DNI (ORCPT ); Mon, 28 Jun 2021 23:13:08 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10029"; a="188454198" X-IronPort-AV: E=Sophos;i="5.83,307,1616482800"; d="scan'208";a="188454198" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2021 20:10:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,307,1616482800"; d="scan'208";a="558597330" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga001.fm.intel.com with ESMTP; 28 Jun 2021 20:10:37 -0700 From: Ling Pei Lee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , davem@davemloft.net, Jakub Kicinski , Maxime Coquelin , Russell King , weifeng.voon@intel.com, boon.leong.ong@intel.com, vee.khee.wong@linux.intel.com, vee.khee.wong@intel.com, tee.min.tan@intel.com, michael.wei.hong.sit@intel.com, 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 V2 3/3] stmmac: intel: set PCI_D3hot in suspend Date: Tue, 29 Jun 2021 11:08:59 +0800 Message-Id: <20210629030859.1273157-4-pei.lee.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210629030859.1273157-1-pei.lee.ling@intel.com> References: <20210629030859.1273157-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