Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp72260rdb; Wed, 17 Jan 2024 17:58:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF52rNWkXwb27V3ULNaxtQh3CMgCsg/GRAFo40xfpRiGJvNgz9V1DIY4jOMEDY+MaXMx7A5 X-Received: by 2002:a05:6e02:1d0e:b0:35d:59a2:bb6 with SMTP id i14-20020a056e021d0e00b0035d59a20bb6mr281643ila.76.1705543104375; Wed, 17 Jan 2024 17:58:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705543104; cv=pass; d=google.com; s=arc-20160816; b=kRRwbvvXhmj9qzFN809t5lgLBDghkDT7Rz0JJpxKg9ZEBM/sHzmeCMsy9p9V5QwN45 I/y1birIyJWj3ot98Y0yIQ5ZuUEDu7Sor5htFBzBDvoez00QjmOObUXbuSx7xH6vO9z6 WF8jQJ5so+c9I1BVmDABt5ncbH2KKV/F0q+RXL8J3JyP7sNLiTEt014EEyeHQfAatsmP 1qMU7pnCrc7mTEbLf1NcNYZ30IYZt9dpCpjKZkx9CEoSuOViwahlEEqWo+u9CtSh1kXP ltTxAVkRW8hCxgE5g21nixbWuqomVKx2NZs74tASrCTYZCemleJ/lel+htsB1cHRCYiM on4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FRzy5TWNR9TvahVng24nBv5nswqp/8FBQOCzVf4vOhM=; fh=VNXOXjzKLhG1jNIbTwM3kiV8vY5pJ1gJsGsIwlsu1NQ=; b=fAfvpBw5MMRwqEcl1RivUwT7v7q36HOVbI1bV4JmZZsinFFGSsQfzNfF6Ew9eouHLG cEFDJoBovdfiG0c6gtjUSTFyVB7xdkguXSWaMbFNCqrddhLecJw3q2NFZOcT9/zHv2GG P7NgQxdzRwrXDIUIHXMfigtG0D/tjqhU1K9YSYyepkjRnjwTs2Dt6zkKUsNrYFaYym+P y8lL4L2dR5qlNfOxYKKZJd+G3FYsK4KQ9RXDh1bz82nAJZdQQbEWfx60xVuWthl6XMIA MX1PZm3p4/d0ludBueL8D4mWLZl4Ubp2YBg6mAf2Ce1UPvyu/MctzWnNXZBvaHUUEf3u NAGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=vsbyOaWa; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-29640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d188-20020a6336c5000000b005cdf801a5f7si549983pga.314.2024.01.17.17.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 17:58:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=vsbyOaWa; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-29640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 46BCE2830F5 for ; Thu, 18 Jan 2024 01:58:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CADB628FE; Thu, 18 Jan 2024 01:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="vsbyOaWa" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 BAA6C20F2 for ; Thu, 18 Jan 2024 01:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705543096; cv=none; b=KNkoDNLP5CvJfORQygQZ8suJ4xscZM5YjYxagfCNGNwFTHjoRpHLfwy1WpQBVSJNFWTQbiF1uCV+5ehFx6e02EQNsXkmyn+T7Yhxwua52jfyERlFAcgixFA/EeNsNq8Hw2lVEjtG3IDR5UrwZEYMDsq7J3jMOGoeHsU0JqllhRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705543096; c=relaxed/simple; bh=/yNQMgTpmIQvXJcDMi+7SFnmZY+Cg5CYOixjsHZIBto=; h=Received:DKIM-Signature:Received:Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-SEG-SpamProfiler-Analysis: X-SEG-SpamProfiler-Score:x-atlnz-ls; b=YFfFgKtzfDSavFp61cU05QoKFyQXV8aRWjFzfWVbrGr5Z3poE80nUdSSPB96jyeizhbVBuCyDFOOh1CcBS9upGE+dJKONYjB3LHmBAU2S545gizaIKrbeUfqqB8K/xV6ikb5OUojRfFP/ubqZXnAI9cFyvBaAw/YSn5xYUq75mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=vsbyOaWa; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 4A6642C04EA; Thu, 18 Jan 2024 14:58:11 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1705543091; bh=FRzy5TWNR9TvahVng24nBv5nswqp/8FBQOCzVf4vOhM=; h=From:To:Cc:Subject:Date:From; b=vsbyOaWazyBCp8HGmXGkzaNiOsLCqKIa247JVUYZ9S+pYaguL5RRwECnskeZKWUNG 3TdHBJNggjTDmJOpWvPdhJQ/6XW4y2JfobhTIElkkS6X5QMvPdf/LzfWDQ6O3Hm0+S gGHffGOwQLoxzHQqDtBMSycIK/Yc8E67oe/ZfgG0Sl3USWYxb9Ei8w9ezJJrqtgxN4 yX7h950dzU2kbTrZE8D3DQ1ny5o0KXmGlWvJ+uElTmN7yTTFHHbD70GGdOUzEcrKb5 S3QA/9MfFeEAwhrDZRkOmR6eSsU8GtY6pcqgbLIZgcLFTR8DAJcHadDcuqkQS9UJJW Y1+pqeysWqmvQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 18 Jan 2024 14:58:11 +1300 Received: from elliota2-dl.ws.atlnz.lc (elliota-dl.ws.atlnz.lc [10.33.23.28]) by pat.atlnz.lc (Postfix) with ESMTP id 158C013ED7B; Thu, 18 Jan 2024 14:58:11 +1300 (NZDT) Received: by elliota2-dl.ws.atlnz.lc (Postfix, from userid 1775) id 0EF9F3C0F25; Thu, 18 Jan 2024 14:58:11 +1300 (NZDT) From: Elliot Ayrey To: Marcin Wojtas , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Elliot Ayrey , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH] net: mvpp2: Add EEE get/set to mvpp2 driver Date: Thu, 18 Jan 2024 14:57:48 +1300 Message-ID: <20240118015748.3507954-1-elliot.ayrey@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=LZFCFQXi c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=dEuoMetlWLkA:10 a=uUW33zXHdHhOziz9OLUA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Fill in the missing .get_eee and .set_eee functions for the mvpp2 driver. Signed-off-by: Elliot Ayrey --- .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/ne= t/ethernet/marvell/mvpp2/mvpp2_main.c index 820b1fabe297..85dc06c85b31 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -5701,6 +5701,26 @@ static int mvpp2_ethtool_set_rxfh(struct net_devic= e *dev, return ret; } =20 +static int mvpp2_get_eee(struct net_device *dev, struct ethtool_eee *eda= ta) +{ + int ret =3D -EOPNOTSUPP; + + if (dev->phydev) + ret =3D phy_ethtool_get_eee(dev->phydev, edata); + + return ret; +} + +static int mvpp2_set_eee(struct net_device *dev, struct ethtool_eee *eda= ta) +{ + int ret =3D -EOPNOTSUPP; + + if (dev->phydev) + ret =3D phy_ethtool_set_eee(dev->phydev, edata); + + return ret; +} + /* Device ops */ =20 static const struct net_device_ops mvpp2_netdev_ops =3D { @@ -5743,6 +5763,8 @@ static const struct ethtool_ops mvpp2_eth_tool_ops = =3D { .get_rxfh_indir_size =3D mvpp2_ethtool_get_rxfh_indir_size, .get_rxfh =3D mvpp2_ethtool_get_rxfh, .set_rxfh =3D mvpp2_ethtool_set_rxfh, + .get_eee =3D mvpp2_get_eee, + .set_eee =3D mvpp2_set_eee, }; =20 /* Used for PPv2.1, or PPv2.2 with the old Device Tree binding that --=20 2.43.0