From patchwork Mon Apr 20 13:15:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 220961 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7186DC3A5A0 for ; Mon, 20 Apr 2020 13:15:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C5BE2070B for ; Mon, 20 Apr 2020 13:15:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgDTNP2 (ORCPT ); Mon, 20 Apr 2020 09:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725773AbgDTNP1 (ORCPT ); Mon, 20 Apr 2020 09:15:27 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E5FAC061A0C for ; Mon, 20 Apr 2020 06:15:27 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQWGb-0002xz-IM; Mon, 20 Apr 2020 15:15:17 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jQWGX-0002NM-BJ; Mon, 20 Apr 2020 15:15:13 +0200 From: Oleksij Rempel To: Andrew Lunn , "David S. Miller" , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Jonathan Corbet , Michal Kubecek Cc: Oleksij Rempel , David Jander , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King , mkl@pengutronix.de, Marek Vasut , Christian Herber Subject: [PATCH v2 0/2] provide support for PHY master/slave configuration Date: Mon, 20 Apr 2020 15:15:05 +0200 Message-Id: <20200420131508.1539-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org changes v2: - change names. Use MASTER_PREFERRED instead of MULTIPORT - configure master/slave only on request. Default configuration can be provided by PHY or eeprom - status and configuration to the user space. Oleksij Rempel (2): ethtool: provide UAPI for PHY master/slave configuration. net: phy: tja11xx: add support for master-slave configuration Documentation/networking/ethtool-netlink.rst | 2 + drivers/net/phy/nxp-tja11xx.c | 56 ++++++++++++- drivers/net/phy/phy.c | 3 +- drivers/net/phy/phy_device.c | 88 ++++++++++++++++++++ include/linux/phy.h | 2 + include/uapi/linux/ethtool.h | 17 +++- include/uapi/linux/ethtool_netlink.h | 1 + include/uapi/linux/mii.h | 2 + net/ethtool/linkmodes.c | 9 +- 9 files changed, 176 insertions(+), 4 deletions(-)