From patchwork Wed Feb 5 15:10:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 13961295 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 526A9158536 for ; Wed, 5 Feb 2025 15:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738768284; cv=none; b=C9gqe7MrEqD4kicL25NbGxqoUl7WX5GxBzSI8oMUmXbrchr7rRGDh4s8Exu/qgAdIBk3UV7VNOjuVvZzZBRF9ABExifbjHKyOveAcVXYJUQZlWYc6moVnAcuUYNonU8Sn5qOYzj7hdqlxTe74hc6i2749AxEzz4oPPLFhmROeh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738768284; c=relaxed/simple; bh=X6vyEBj3rGnvaxpdxQ2xwXp0G7MbB55eLzI4Gj7bu2c=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=i6/3jEZALMC57eKBuDooy69Pw8CpuH79geyo5G1cGW+ZlnE5b0a22WLSOHLWIPGfUKQV22BQYQkGWCGcZGWYUWY6E3iAqpbuLFwIlk5/oR6+O6K1gSaRDTbTgaoq2HZTDraglwgWcD9L7yx6Bp/RLtWVdiIoRR9QQv8t/5c77M0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=zINUhAre; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="zINUhAre" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=asjGkuilfuFLJnSpoKLSbi0nWNbGb+gg0jInBWQp74k=; b=zINUhAreYraWVOimVGIKsPbkuK 1KANzkOOeCL74/NExiEa+vl7my11e0x9zwtnsGzpebzdHKGA+WXOTn0wkOkatNUmg0ij6W31nWvBt gq2vdE2dzHZ93vCbrLpbTO51Xb9poKCDdLyDx2+gloxxu7CL6FhTsl1X+kqkyTecQb2MHLTHYeMlz xW5i/Iarel+jr8dJgSfL5fCl8ltY/HsoGLIZxUV2zdp9vfBNUl+JDvRi9ZycLJNdWoXp/YDPNJkzG 4SxOIznT57230T2yQPvQb8ygVtwU+w/lK+UuTxM/Z55jt+nTpP4sfvRsyDp9udySnL2gMmCGVS8+p 8Xh9LmsA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:41434) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tfh3O-0007SW-2X; Wed, 05 Feb 2025 15:11:03 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1tfh3J-0002Vt-1S; Wed, 05 Feb 2025 15:10:57 +0000 Date: Wed, 5 Feb 2025 15:10:57 +0000 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit Cc: AngeloGioacchino Del Regno , "Chester A. Unal" , Daniel Golle , "David S. Miller" , DENG Qingfang , Eric Dumazet , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , Sean Wang , Simon Horman , Vladimir Oltean Subject: [PATCH net-next 0/3] net: dsa: add support for phylink managed EEE Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Sender: Russell King (Oracle) X-Patchwork-Delegate: kuba@kernel.org Hi, This series adds support for phylink managed EEE to DSA, and converts mt753x to make use of this feature. Patch 1 implements a helper to indicate whether the MAC LPI operations are populated (suggested by Vladimir) Patch 2 makes the necessary changes to the core code - we retain calling set_mac_eee(), but this method now becomes a way to merely validate the arguments when using phylink managed EEE rather than performing any configuration. Patch 3 converts the mt7530 driver to use phylink managed EEE. drivers/net/dsa/mt7530.c | 69 ++++++++++++++++++++++++++++++++--------------- drivers/net/phy/phylink.c | 3 +-- include/linux/phylink.h | 12 +++++++++ net/dsa/user.c | 21 +++++++++------ 4 files changed, 74 insertions(+), 31 deletions(-)