From patchwork Tue Oct 5 11:50:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wong Vee Khee X-Patchwork-Id: 12536445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1433C433EF for ; Tue, 5 Oct 2021 11:47:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8924F61216 for ; Tue, 5 Oct 2021 11:47:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8924F61216 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AUEqG7nO83s9S5bbI4uGsQQhxS0BcBKvct0rvm2Mhmw=; b=dFxBWomu5ub5Z/ u0EokYSzBbhwb6Lw15ZQlZ+cMkIIu45zTBPBTO2XSe1VXlk17JiSEIAxQQNtmVndlZV5JVjeBJyS9 cPRfGeaAO6R9/rCuj6+pY63ID4p5ixH/VUYEXkNFZp1Pyriw/Tf93ckHhuAxK+cjIlkup0tNdjrat uXdD1Dk1rh45MmjPibM1WkGzTHaV0CYCC4543hN+IECzn/rjjc+PtYvgsS6gxN0urYnGqWUMpEv+l 5PW+A7SXqXOtn2GW+cMSqXUz4yrkVhK1J9yj/BtON3jUbE1aOR7WZkuKUcnTJxaX148/K7L3CD2pL Qi22pDeuV02P7Qp4fB7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXisj-00ACsI-TC; Tue, 05 Oct 2021 11:45:14 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXise-00ACqx-Mo for linux-arm-kernel@lists.infradead.org; Tue, 05 Oct 2021 11:45:09 +0000 X-IronPort-AV: E=McAfee;i="6200,9189,10127"; a="225615931" X-IronPort-AV: E=Sophos;i="5.85,348,1624345200"; d="scan'208";a="225615931" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 04:45:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,348,1624345200"; d="scan'208";a="477646370" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 05 Oct 2021 04:44:52 -0700 Received: from glass.png.intel.com (glass.png.intel.com [10.158.65.69]) by linux.intel.com (Postfix) with ESMTP id D46EE5805EE; Tue, 5 Oct 2021 04:44:48 -0700 (PDT) From: Wong Vee Khee To: "David S . Miller" , Jose Abreu , Andrew Lunn , Heiner Kallweit , Russell King , Jakub Kicinski , Giuseppe Cavallaro , Alexandre Torgue , Maxime Coquelin Cc: Michael Sit Wei Hong , Wong Vee Khee , Wong Vee Khee , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net 0/2] net: stmmac: Turn off EEE on MAC link down Date: Tue, 5 Oct 2021 19:50:58 +0800 Message-Id: <20211005115100.1648170-1-vee.khee.wong@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211005_044508_808393_AA5A5413 X-CRM114-Status: UNSURE ( 7.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series ensure PCS EEE is turned off on the event of MAC link down. Tested on Intel AlderLake-S (STMMAC + MaxLinear GPY211 PHY). Wong Vee Khee (2): net: pcs: xpcs: fix incorrect steps on disable EEE net: stmmac: trigger PCS EEE to turn off on link down drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++++- drivers/net/pcs/pcs-xpcs.c | 13 +++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-)