Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4633386imc; Mon, 25 Feb 2019 08:15:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IYeL+YaVBs2neCu0uaDUWKny50upvWksU2yGHDjDbsJlJtLTsuvmIS+R/HX389RdSL7t1B9 X-Received: by 2002:a17:902:b101:: with SMTP id q1mr21424454plr.296.1551111303058; Mon, 25 Feb 2019 08:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551111303; cv=none; d=google.com; s=arc-20160816; b=GIpfl2O3BSvc122TGQ6Bgo08ZZNY9KfmVGMd52zI9qNtYQqqf8d9QDzKJn3bD5G8Dd 0Nqi1Eoc7gSNZwQDCu9qE5iiyhEfNFyh9akLQX+ST/G/MQHhktlPM996Rujd4tGltPPh RExp4qvreGk/oZgE2CgIUsc14CHuqZ8d+xX2+oQ1HQyyfvOG1WkNM3NTujXOHmRAAOga s/H95+2cGAyqC5jY6i6LtlCKPotDEU2zH/yXBq6uYqAD8oOhdPZL1ZTrykho9q2Gp8qj j++wWsolOD00I0252/jrQG/+EjNvFzBjHykSA71WaJIREwOVZSO9id1Ded+tlxV6Sows rmYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IKZu7AqjMxjQh664HiJyDzmZ4zGCCMutHfM3x0xBCrI=; b=iZ1TEXPoUBvLEM0rPT58fPIQxQTLLLav/AzDxJPhFjXjioiq9wYBHzIbprr694tO/7 hv0h7RQeXzf8SyUgPc7V3w8/y4ACSp6Et9KxSbbrUbLihlwoI4M7q06UZZjTWGxk4X04 NPb4Ibb2exXPCLgrUXsVoydKDxzJV0AWWWxE0NebQmfFml96nx6v7qm8eJNi5DKtJfQ2 SyKUwbrlWG4ZvVgorMSpeY6jPQJHplSCQI3LblCgFOIU8kivfPcDqVEu+XK6QyXXpb5V 1mPGTh0trvSDIcRh9aXy/m/Kq+PiWcrBUNPy/ctLeglX9+0qdDaS5Sf/WUKjIpz8z0Xz QnWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si10118723pfe.254.2019.02.25.08.14.48; Mon, 25 Feb 2019 08:15:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728139AbfBYQOU (ORCPT + 99 others); Mon, 25 Feb 2019 11:14:20 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43771 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728040AbfBYQOT (ORCPT ); Mon, 25 Feb 2019 11:14:19 -0500 X-Originating-IP: 90.88.23.190 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-81-190.w90-88.abo.wanadoo.fr [90.88.23.190]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B4019E0008; Mon, 25 Feb 2019 16:14:15 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com Subject: [PATCH net-next 2/2] net: phy: marvell10g: Use the generic C45 helper to read the 2110 features Date: Mon, 25 Feb 2019 17:14:07 +0100 Message-Id: <20190225161407.19510-3-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190225161407.19510-1-maxime.chevallier@bootlin.com> References: <20190225161407.19510-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Contrary to the 3310, the 2110 PHY correctly reports it's 2.5G/5G abilities. We can therefore use the genphy_c45_pma_read_abilities helper to build the list of features. Signed-off-by: Maxime Chevallier --- drivers/net/phy/marvell10g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index ab71da55c1e0..79106e70010f 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -472,7 +472,7 @@ static struct phy_driver mv3310_drivers[] = { .phy_id = MARVELL_PHY_ID_88E2110, .phy_id_mask = MARVELL_PHY_ID_MASK, .name = "mv88x2110", - .features = PHY_10GBIT_FEATURES, + .get_features = genphy_c45_pma_read_abilities, .probe = mv3310_probe, .soft_reset = gen10g_no_soft_reset, .config_init = mv3310_config_init, -- 2.19.2