Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4037557pxv; Mon, 28 Jun 2021 20:11:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdDNlG185jKvzUcYLAGwqo2Gm6EZmfYMEYf8uFGRMWLkX4ikRKYUAw8cL8frr7ecIV52jv X-Received: by 2002:a92:194b:: with SMTP id e11mr19427864ilm.38.1624936309287; Mon, 28 Jun 2021 20:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624936309; cv=none; d=google.com; s=arc-20160816; b=dDxAXes4b9maVzSht/3fWKQpzu02pQtPdAc885z1qDOlCxIodTXh8t99EEfkeAlnR9 R9JvANUtTTuMYWDnu+huY1QFzqw31n4AD+G+DXGUd6C/r+Qhhc/IxqeVSkA0gj3nlwM7 AvdI6HWB2IiAhmY2oi/604LKILETy4ktQTji2K49qhO1C6bkik0sEy3dCjW5ldhRylXb HqQkPRNCSGQ0fJpzVqaP8AdxcNsUd+52x6Pm7+bXWdFPIUkrFxoqrj5R1CRqiEiWDecG voBQmpfhq8tAtmSv/Ar4Tl9BoOCi0rjrqmHdOqQcAvMOXDburrGb144Ncy//HZO9Ctyl jQ4g== 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 :message-id:date:subject:cc:to:from; bh=N8nDnenJo8OyVsM9fA5t85qD7E/kGqsn81IzFDPGTpw=; b=spp/csmgNcuDR7G6/bwlWuPin4BIrZiBaaqcfgKuekl5cnlM6udQOvY5tcLKFaDaTC QkYgKvY4Ecz5lTiUknlZtZhocpxYU05alnPxvHKt+PXImC3TZ0QLBuaYAyVwh0zPlkF3 ajR4MdfYr8SIScwDkeoL7fsvEttegyeUOtgZzNAJxYj8ofgwU722JRlP7cvl/VTIDC1o Wo38tLS86UIUP6JVTufMMSwbdHQvUajsD/JEHHgotovnJSXFOERqA9BCoM+4kmNSFJ1E GAn35vbzxgHmHcYwG1bzJmWz+LZ5CNrd7wiuuk4C1SRmK9v6d5VnGmc5goHyFXCAN3uL idYg== 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 q9si3041167ild.5.2021.06.28.20.11.36; Mon, 28 Jun 2021 20:11:49 -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 S231799AbhF2DMy (ORCPT + 99 others); Mon, 28 Jun 2021 23:12:54 -0400 Received: from mga17.intel.com ([192.55.52.151]:40075 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbhF2DMx (ORCPT ); Mon, 28 Jun 2021 23:12:53 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10029"; a="188454181" X-IronPort-AV: E=Sophos;i="5.83,307,1616482800"; d="scan'208";a="188454181" 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:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,307,1616482800"; d="scan'208";a="558597289" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga001.fm.intel.com with ESMTP; 28 Jun 2021 20:10:21 -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 0/3] Add option to enable PHY WOL with PMT enabled Date: Tue, 29 Jun 2021 11:08:56 +0800 Message-Id: <20210629030859.1273157-1-pei.lee.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset main objective is to provide an option to enable PHY WoL even the PMT is enabled by default in the HW features. The current stmmac driver WOL implementation will enable MAC WOL if MAC HW PMT feature is on. Else, the driver will check for PHY WOL support. Intel EHL mgbe are designed to wake up through PHY WOL although the HW PMT is enabled.Hence, introduced use_phy_wol platform data to provide this PHY WOL option. Set use_phy_wol will disable the plat->pmt which currently used to determine the system to wake up by MAC WOL or PHY WOL. This WOL patchset includes of setting the device power state to D3hot. This is because the EHL PSE will need to PSE mgbe to be in D3 state in order for the PSE to goes into suspend mode. Change Log: V2: Drop Patch #3 net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume(). Ling Pei Lee (2): net: stmmac: option to enable PHY WOL with PMT enabled stmmac: intel: Enable PHY WOL option in EHL Voon Weifeng (1): stmmac: intel: set PCI_D3hot in suspend drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- include/linux/stmmac.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) -- 2.25.1