Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3929592ybg; Sun, 7 Jun 2020 15:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaNJ5cSa6t4YM+dQP/Z5aUoNnuehPk2Kl6GAg8FGY+Y83fAW4b9bgzLKcJmEQBQGqO4Tm9 X-Received: by 2002:a17:906:7247:: with SMTP id n7mr8724765ejk.105.1591569224113; Sun, 07 Jun 2020 15:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591569224; cv=none; d=google.com; s=arc-20160816; b=eKV1NuIcPyw+2ikRswwQDaRFre1yomj/eaDbHBcH8o/IFhwR/xn73Ce98aNYF4lSVg TCO7i48BiKbNLFBgN4x147C0kBfFd35Nm9WTTBiyzwdDgcpBgrp6NfpUtuIzJO2s67Yv KFauBP9ZcqfeNehJpEVekQmm1tsWyKeUktbYWk7Cd78mZAO3m/Pn3KVB4bTtvSAbizhU yjFPehedVP81wZ9wsQXb8vYy3q5CGfs2Wppf/CZb8JRt4Ub/agH8wr2D4PmhQndzzRpw tuGEKAWe5tEL/BuX55E3MJNc1FnDJ4BFilKAgyBxkfCKOfXmd8Tc0YXh4fHblbL8tjNt UtuA== 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:subject:cc:to:from:date :dkim-signature; bh=OSASK+3X/fSSI7ny5aNfN21EmPCbzFlJKFZbkDaEweQ=; b=fLQA0oBe2ibSIxI0EDLdjqlz1XZrXl2Uf9DkpQPNKIDh5FME3ZaT3P4oUeAf8tJwNE 1H1EH8ptnn7wbkgOlT56ag56xoF0aNzjTxLoP6qxkI1SVbOlcufw6iG7jJXYTCnPc5N1 nRPsIzab6h1SOiYTpA61Z3Q1csHe93oS7vDpAwfQt/g+zEK3wUrOY6MV8hgIz/bfCmcB S1YpNtmWfXOO3CcK9Y0bbpE690d03JJ/whNJtBZHl8ez17Se+uK4DUJHyl6PL+6wro26 PzLVZu338eXmnJNWoGkzX4AhmYRIV9QqH3hPTsFt9gJuKW+aPVJZM15/z+1TcXZvKhG7 962g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=VvlR6brj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si7941881edr.152.2020.06.07.15.33.06; Sun, 07 Jun 2020 15:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=VvlR6brj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbgFGWab (ORCPT + 99 others); Sun, 7 Jun 2020 18:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgFGWaa (ORCPT ); Sun, 7 Jun 2020 18:30:30 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1068DC08C5C4 for ; Sun, 7 Jun 2020 15:30:29 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id s88so5184479pjb.5 for ; Sun, 07 Jun 2020 15:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OSASK+3X/fSSI7ny5aNfN21EmPCbzFlJKFZbkDaEweQ=; b=VvlR6brjRXBuwZ3tpMAy02H5gZcwlasl4qJ+CdlPknKlK6J1DKUAygqTgjqGui2Pu2 VC40RGolqWQ5efcCkmJ9hdPad8zQXZFUwP+f/4T7edNil1ExJvNSwm/jlYa/kcPjTcxe kuQ//EzpMGrwVoaMNUSavL4CZrD+f/l6yL8tt+IUZwgH9C97TZAP2YkaXFhx6Bk3soSw wiNaDbGlYNx/EzzjuvIP3yt33W2pI3xb46qjtHQgiU4ZZakeMNWLL5AeRwbq5X3ceZ1U Z3qdTVCRCMlrYqk5czIZipjrVSriZTxhPdVUHq0ecRHDvtxtQ5QRhyFPo69+PFkMVLYz Aaww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OSASK+3X/fSSI7ny5aNfN21EmPCbzFlJKFZbkDaEweQ=; b=LQewUmwjftVu5cLDbATpDcx8QelZ3FYSh8wsO1KDh/burg8QRklcKtJxvBFpqAmpDL sNWzpwYUMLy0Fhbrxi7eGdzt/FEyqNUJ7O3J36PLR+aEF4WOTX+MBVxp4Jks6XuSx7YQ 76MXDKIgqvosnx1PX+TmEgsOxrPxlxHefVmiMlCb3nEelBc20aOXQKI92t4PpVY4jBak AuSOTYWPS76I4lglp49lUwRS3o84AQt2GaXholmqolVfvbSpzvDfUdQ48y2R3mg4Xn3H tYG0qsIN3JBinxFrRoxJPDDgJ+Yag2OZ5oEgijMP37322fmQ/BXPyvkGW0leJDl350rJ 8nBQ== X-Gm-Message-State: AOAM531fmJn03odShXkduVj4lOfrMiS3NPHcJRiS/AUwB5vZyNaii7sY 5ZL1p2PoSciUkZTUJlhhMY9k7w== X-Received: by 2002:a17:902:558f:: with SMTP id g15mr18381316pli.174.1591569029270; Sun, 07 Jun 2020 15:30:29 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id d4sm13615305pjm.55.2020.06.07.15.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2020 15:30:28 -0700 (PDT) Date: Sun, 7 Jun 2020 15:30:19 -0700 From: Stephen Hemminger To: Oleksij Rempel Cc: Andrew Lunn , "David S. Miller" , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Jonathan Corbet , Michal Kubecek , "John W. Linville" , David Jander , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King , mkl@pengutronix.de, Marek Vasut , Christian Herber , Amit Cohen , Petr Machata Subject: Re: [PATCH ethtool v1] netlink: add master/slave configuration support Message-ID: <20200607153019.3c8d6650@hermes.lan> In-Reply-To: <20200526091025.25243-1-o.rempel@pengutronix.de> References: <20200526091025.25243-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 May 2020 11:10:25 +0200 Oleksij Rempel wrote: > This UAPI is needed for BroadR-Reach 100BASE-T1 devices. Due to lack of > auto-negotiation support, we needed to be able to configure the > MASTER-SLAVE role of the port manually or from an application in user > space. > > The same UAPI can be used for 1000BASE-T or MultiGBASE-T devices to > force MASTER or SLAVE role. See IEEE 802.3-2018: > 22.2.4.3.7 MASTER-SLAVE control register (Register 9) > 22.2.4.3.8 MASTER-SLAVE status register (Register 10) > 40.5.2 MASTER-SLAVE configuration resolution > 45.2.1.185.1 MASTER-SLAVE config value (1.2100.14) > 45.2.7.10 MultiGBASE-T AN control 1 register (Register 7.32) > > The MASTER-SLAVE role affects the clock configuration: > > ------------------------------------------------------------------------------- > When the PHY is configured as MASTER, the PMA Transmit function shall > source TX_TCLK from a local clock source. When configured as SLAVE, the > PMA Transmit function shall source TX_TCLK from the clock recovered from > data stream provided by MASTER. > > iMX6Q KSZ9031 XXX > ------\ /-----------\ /------------\ > | | | | | > MAC |<----RGMII----->| PHY Slave |<------>| PHY Master | > |<--- 125 MHz ---+-<------/ | | \ | > ------/ \-----------/ \------------/ > ^ > \-TX_TCLK > > ------------------------------------------------------------------------------- > > Since some clock or link related issues are only reproducible in a > specific MASTER-SLAVE-role, MAC and PHY configuration, it is beneficial > to provide generic (not 100BASE-T1 specific) interface to the user space > for configuration flexibility and trouble shooting. > > Signed-off-by: Oleksij Rempel NAK Open source projects have been working hard to remove the terms master and slave in API's and documentation. Apparently, Linux hasn't gotten the message. It would make sense not to introduce new instances.