Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4633223imc; Mon, 25 Feb 2019 08:14:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IapmPBPtagBA1cUCnWA+2RVKKRNfjL0j8JbUDUPS/gDHWIVnmMjgXkPlhf5pUT0BQ2aDzfG X-Received: by 2002:a17:902:a514:: with SMTP id s20mr21302020plq.242.1551111294749; Mon, 25 Feb 2019 08:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551111294; cv=none; d=google.com; s=arc-20160816; b=za/xf4X3DV0NXAIFfZi+FFZF7NF9V/EduXeccB6c5nbWZ1B8JBfEL8s+PjK/KsJSBw 5YLUqRaUFaElAVgc2MkBgRGbTb+hUPJylkoBmvJ1uoFIKZOItLGxtWubHYqCC4X63JWR H/WAG6/+O4bufmSsyMx5gAwd9WPVZtqT02ug69BOrNn0aqmD8u5NONw5teGr8eah1opz LTiNyetM9iEeM21rMi1U+L2H5HIHbRW4eP9tNywMrJ+u1ftgDnwvm2Rtd6wMduztK7yw DXugmkpCqF/VXZGA2/0hbFHhCOGTox6j2keS87oyswLVQjAJ8MebufyqXWH949YAJEuC Z32g== 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 :message-id:date:subject:cc:to:from; bh=djY2o5HawNqyBPT2brATaSJ/06k+ujyKdZS/g9zkPFA=; b=OuFubjD6KsKfuMUEpTT1u/8IrYG+O5B47/J9hxtOxd6zIoXH0AkeYxwLxp8dPGLlTU 15KNfeeTNxX68Fdn00sMfIdA5/8Jg9com13SfuIocWgFbX01RvGAmA5qY5glvZCygxJS t9lMSaJ8o8gXPcpu45XzIbx3lUVqGR0O9T2iDnAPPmKHcAgsUxNdTor9I2gW85IulIC3 +emmHD4ww/XTP/MDan4MIGJ2WiCMk24UipT7tMz/lJvNfJCvinvwePefH1MAPfSoTUoj R/ujF+/wTq3umgPyYunByhrFUNhFWfmIGjnwKU/nUowgnzaZFFHDMXRedPVCaU+PT6mM rLpg== 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 o24si9726094pgh.114.2019.02.25.08.14.38; Mon, 25 Feb 2019 08:14:54 -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 S1728008AbfBYQOP (ORCPT + 99 others); Mon, 25 Feb 2019 11:14:15 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:32773 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727661AbfBYQOP (ORCPT ); Mon, 25 Feb 2019 11:14:15 -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 57AD8E000D; Mon, 25 Feb 2019 16:14:10 +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 0/2] net: phy: marvell10g: Clean .get_features by using C45 helpers Date: Mon, 25 Feb 2019 17:14:05 +0100 Message-Id: <20190225161407.19510-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 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 Recent work on C45 helpers by Heiner made the genphy_c45_pma_read_abilities function generic enough to use as a default .get_featutes implementation. This series removes the remaining redundant code in mv3310_get_features(), and makes the 2110 PHY use genphy_c45_pma_read_abilities() directly, since it doesn't have the issue with the wrong abilities being reported. Maxime Chevallier (2): net: phy: marvell10g: Let genphy_c45_pma_read_abilities set Aneg bit net: phy: marvell10g: Use the generic C45 helper to read the 2110 features drivers/net/phy/marvell10g.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) -- 2.19.2