Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3615268pxj; Mon, 21 Jun 2021 02:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFfFzjrw2JRPHP9Npwsw5QqmGZS30K4qAiutUKrs+opTRCH6kpMjBnLScF16ndV5rkH2xc X-Received: by 2002:a02:cdc9:: with SMTP id m9mr3493843jap.55.1624268856283; Mon, 21 Jun 2021 02:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624268856; cv=none; d=google.com; s=arc-20160816; b=FJkakggfmFellQNRmdA9EJ7cfHpfeGK9Lsn4HK8mJNkk6BOf1O6XDdOjveJypEcy2f 6gf3zC0zWZgRLGN0rbZlK7ak47JXBloJAVOJGTnRAi1f1VlheyrxRMyA7yVYEmNHjuJi 03tC/RYgCsIFTxr+2ULpr84DHz4QyEycKTHX+wCIfO8UnUbpLQj98ZYLdYiEGCXXNqWN yr/uhtEx0Nv/t8uKjffHIBxkjr+PQsMcTfKzi3YBnYp3galKfaOL03PteoAJGvbhbYQf a7om/tsMIeqO4orq7m5hKHcTRmicVQCo7RqJmnAIsTjdXKhEAcKgG5lrxthqVYsXfbkM BTJA== 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:ironport-sdr:ironport-sdr; bh=XS1no1HliN7HxRozDzfr3Bt3yXeGI3hDOpbfUumJHF4=; b=PpqhhdMBIjJYCxKl0DJTRz3jKdS6OP3j211rOnZjKGBuk1XHMbGcRQ7kWLAEQ0N2Wc B0RA0w8O7yHwprPvRsi7m3KGbV2C2Zj4I3ht1oypkv8VkL17KoIQ1mxXGELZqN+q4boA OtIhJtcm1aa/xycaICivCfDaeMhOHQPEy9LHgzDgBg6dlMEGc9DKIjyss+Gl0uA5GVST lb22GPeetKHaUunhQsBkugdQJ+vsB9j+jvkqBflOzB029oLBYAF6wTEHXtnAyjbD9xOe uQTl7doMDeLUEkggTJuRwiQ4gMfZ1fu3LPB8DRAoUQqIjn0vSew9B9uN4r9Iu2xjC6x2 unug== 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 c13si10141313ilr.100.2021.06.21.02.47.24; Mon, 21 Jun 2021 02:47:36 -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 S230202AbhFUJsH (ORCPT + 99 others); Mon, 21 Jun 2021 05:48:07 -0400 Received: from mga18.intel.com ([134.134.136.126]:3834 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbhFUJsF (ORCPT ); Mon, 21 Jun 2021 05:48:05 -0400 IronPort-SDR: cHFZM0PVUvRDvL/jVqZQ+Hd2lzSZziz7Ocn+HVfS1+JF+JOpGt/6sAtUFpcqJqy2xQ6Px+tHzJ fM8T95/PUhPA== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="194122078" X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="194122078" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2021 02:45:50 -0700 IronPort-SDR: nIkB7J4kkZxPiDf69wxwy5j5R1+1vIPvaZQbgEj/mN0Lco/uqlvODIKzhNAUmC8XyEIrNTu+Ql zZzkrbYj/pLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="638720236" Received: from peileeli.png.intel.com ([172.30.240.12]) by fmsmga006.fm.intel.com with ESMTP; 21 Jun 2021 02:45:44 -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 0/4] Add option to enable PHY WOL with PMT enabled Date: Mon, 21 Jun 2021 17:45:32 +0800 Message-Id: <20210621094536.387442-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. During testing, it is discovered that PHY did not reconfigured the PHY WOL after waking up from S3/S4 through magic packet. During the driver resume flow, the driver will reconfigure the PHY WOL depending on the ethool WOL settings. 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. Ling Pei Lee (2): net: stmmac: option to enable PHY WOL with PMT enabled stmmac: intel: Enable PHY WOL option in EHL Muhammad Husaini Zulkifli (1): net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume() 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 | 13 ++++++++++++- include/linux/stmmac.h | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) -- 2.25.1