Received: by 10.213.65.68 with SMTP id h4csp301426imn; Fri, 16 Mar 2018 03:41:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELsfKsgHFzUS6Pzw7GKM9hpf1X62LOhZlokKJJDDLh8rVTPWH6YQ5oBpHdiSOEW0cPPtz1kB X-Received: by 10.101.101.205 with SMTP id y13mr1057512pgv.265.1521196872327; Fri, 16 Mar 2018 03:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521196872; cv=none; d=google.com; s=arc-20160816; b=ERtpqSwXjh4Ns0qgMypZCunGUxnDdfCMykYmr00VuIk1KY5ELW7yDk1rSyMqLljHoY L954CgGU4OXVMT02/NQjBCNSYUOmKvO1ur3wO/7CzHm6JQl3fHeT4tVKvHyizIL1omJZ FZ8tjWTGKTcecqm2UO0OTGqydrNjflxUTKpsWPs2PHIFxYpBp5MjCAza3BAEmWISUZaJ YK2FNkhai9N6V97UgGF+qlaKVVRc1FTrRO7icma8WF+6wSTgTyo1C+vGPm2FQlQLwgtG IKSaQRzNqGXzk4vC1LloonpfCk0cjvtsFPYkwOSksSA6XgVobHJbahqRewO4cPJl4dv6 /I0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QhkVZdqIxgDLmVByY4gkDXGwCF54eEr8YbMTX6bvAnI=; b=ZP7HkMLTPBDBY3sEzwrWkiGNGatuCRrRdQtuxaRL47y6cUwi8FtaifbzlGgUMh7gGF 65TlvjmrPbWSr4iTDBW7gtO4i6hf3pzQ7DtFpF3GaqvpbUTOQfh8EOLc7+IGnJXiWWbx X2A75pHH95a4GOw69bsiVoyCyPffagdkNdNKD5sUIsfVh3krvgxY37EuIDpvlk2sUPTt 0y7O+gQPAxaRLznxItEiAB/4c/hbeZbkNqg12Pg3veFV72XQ0SCdyd/KirNAMB0xGqm8 ENO+Rf+O5V2ISI0NsCTs9Z8kJLhcS5+FW2ya4DCuVNtHPBhnCuMIpAQ+K9T8cvjcjwTJ ooUA== 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 m8-v6si5892377plt.501.2018.03.16.03.40.58; Fri, 16 Mar 2018 03:41:12 -0700 (PDT) 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 S1753471AbeCPKfn (ORCPT + 99 others); Fri, 16 Mar 2018 06:35:43 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34995 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753449AbeCPKfk (ORCPT ); Fri, 16 Mar 2018 06:35:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 10A4220808; Fri, 16 Mar 2018 11:35:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id B1C24208B0; Fri, 16 Mar 2018 11:35:01 +0100 (CET) From: Antoine Tenart To: davem@davemloft.net, kishon@ti.com, linux@armlinux.org.uk, gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com Cc: Antoine Tenart , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 00/10] net: mvpp2: phylink conversion Date: Fri, 16 Mar 2018 11:33:41 +0100 Message-Id: <20180316103351.16616-1-antoine.tenart@bootlin.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, Russell, This series convert the Marvell PPv2 driver to phylink (models the MAC to PHY link). The series is a respin of a patch[1] and a series[2] sent a while ago. All these patches have been heavily reworked, this is why this series isn't a new version of the previous work. I still tried to take in account the comments I got back then (when applicable). One important point is the PPv2 driver supports two probe modes: device tree and ACPI. This series only brings phylink support for the device tree mode, as the ACPI one will need further work. Still, the driver should be working as before when using ACPI. This split should be temporary, and was discussed with Marcin (in Cc.) who added ACPI support to the driver. Before implementing phylink callbacks in the PPv2 driver, some patches are required (patches 1 and 2). The first one is a cosmetic patch, the other one modifies the phylink core. Then PPv2 is converted to phylink. The rest of the series uses phylink to add support for 1000BaseX and 2500BaseX modes in the PPv2 driver. To do this, two patches are needed in the common PHY framework (patches 4 and 5). These patches were previously acked by Kishon but as this was a while ago I didn't kept the tags. The last 3 patches modify the device tree to use the new PPv2 functionalities. @Dave: patches 8 to 10 should go through the mvebu tree (Gregory in Cc.) to avoid any conflict with the other mvebu dt patches taken during this cycle. The series has been tested for the device tree mode on the 7040-db, 8040-db and 8040-mcbin boards, to ensure all the interface where working as expected. Marcin (in Cc.) tested the series for the ACPI mode. The series is based on today's net-next, and is available at: https://github.com/MISL-EBU-System-SW/mainline-public/ at/net-next/ppv2-phylink Thanks! Antoine [1] http://www.spinics.net/lists/netdev/msg456023.html [2] https://lkml.org/lkml/2018/1/12/59 Antoine Tenart (10): net: mvpp2: align the ethtool ops definition net: phy: phylink: allow 10GKR interface to use in-band negotiation net: mvpp2: phylink support phy: add 2.5G SGMII mode to the phy_mode enum phy: cp110-comphy: 2.5G SGMII mode net: mvpp2: 1000baseX support net: mvpp2: 2500baseX support arm64: dts: marvell: 7040-db: set the 10G interface management to in-band arm64: dts: marvell: 8040-db: set the 10G interfaces management to in-band arm64: dts: marvell: mcbin: enable the fourth network interface arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 + arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 11 + drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/mvpp2.c | 917 +++++++++++++--------- drivers/net/phy/phylink.c | 3 +- drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 17 +- include/linux/phy/phy.h | 1 + 8 files changed, 599 insertions(+), 354 deletions(-) -- 2.14.3