From patchwork Thu Feb 21 09:51:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 10823431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB5C414E1 for ; Thu, 21 Feb 2019 09:51:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BAD830384 for ; Thu, 21 Feb 2019 09:51:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 984B530361; Thu, 21 Feb 2019 09:51:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A33730361 for ; Thu, 21 Feb 2019 09:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=9y8BJrGr0pMCJJY+yLPyKUoinyDR5P4rkES4+L12L8A=; b=fH7zKbhGdWrU5E v6r7IvroCIIPy61GOZLwD7c9bK6LYVJdXQnruu7WwPTcJIc4Ij4ViDodKt6V35BWoaqtB5/H7l685 PKwmkouyLXhLL0Fai6fF4VCb1b6asGvhzRGF0NHY7AcjVXVVBlsY+S9jCSUurGXeb54/DmVWSVIo0 DSdmdBiO0yeCISn0SAw82EDm9WzMJjpUv+SE7F6XeK5G0hWUkytTRAByPND3G/GGtk0qJVq5IY/mZ l+6R0YbneNpXtmgcHIEzqit4V1xgRCitkbA+gXqmGj6b9Z0gfgSjA/lfjL/0wpSgWzbvlMok8Nr4T hSOAW/1G8kUjFbJXQriw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwl15-00015q-J6; Thu, 21 Feb 2019 09:51:43 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwl12-00014b-AC for linux-arm-kernel@lists.infradead.org; Thu, 21 Feb 2019 09:51:42 +0000 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 relay6-d.mail.gandi.net (Postfix) with ESMTPSA id EB7F7C0006; Thu, 21 Feb 2019 09:51:30 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Subject: [PATCH net-next 0/7] net: phy: marvell10g: Add 2.5GBaseT Date: Thu, 21 Feb 2019 10:51:21 +0100 Message-Id: <20190221095128.28188-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190221_015140_500767_81FEE23A X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Florian Fainelli , mw@semihalf.com, Antoine Tenart , netdev@vger.kernel.org, gregory.clement@bootlin.com, linux-kernel@vger.kernel.org, Maxime Chevallier , nadavh@marvell.com, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, Russell King , stefanc@marvell.com, linux-arm-kernel@lists.infradead.org, Heiner Kallweit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds the missing bits necessary to fully support 2.5GBaseT in the Marvell Alaska PHYs. The main points for that support are : - Making use of the .get_features call, recently introduced by Heiner and Andrew, that allows having a fully populated list of supported modes, including 2500BaseT. - Configuring the MII to 2500BaseX when establishing a link at 2.5G - Adding a small quirk to take into account the fact that some PHYs in the family won't report the correct supported abilities The rest of the series consists of small cosmetic improvements such as using the correct helper to set a linkmode bit and adding macros for the PHY ids. We also add support for the 88E2110 PHY, which doesn't require the quirk, and support for 2500BaseT in the PPv2 driver, in order to have a fully working setup on the MacchiatoBin board. Maxime Chevallier (7): net: phy: marvell10g: Use get_features to get the PHY abilities net: phy: marvell10g: Use linkmode_set_bit helper instead of __set_bit net: phy: marvell10g: Use 2500BASEX when using 2.5GBASET net: phy: marvell10g: Use a #define for 88X3310 family id net: phy: marvell10g: Force reading of 2.5/5G net: mvpp2: Add 2.5GBaseT support net: phy: marvell10g: add support for the 88x2110 PHY .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 1 + drivers/net/phy/marvell10g.c | 92 ++++++++++++++++--- include/linux/marvell_phy.h | 2 + 3 files changed, 81 insertions(+), 14 deletions(-)