Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp461382ybb; Wed, 25 Mar 2020 03:21:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvpTK8Ghbk/bZpUOnEbZEqHZbFLsncFWm/FE2mhrIStOZaEDc63rAoq60feDv8bKvpSwLZe X-Received: by 2002:a05:6808:16:: with SMTP id u22mr1937556oic.127.1585131715767; Wed, 25 Mar 2020 03:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585131715; cv=none; d=google.com; s=arc-20160816; b=zD58PFus+BQG5azIKZzLxq8ptkYQK1hCM1YzxYfWxuw3xdMov1jxAHJbTrab3yOKMh V0uHhEObluiNdmL3dgcWTBUh2q1SK3UtHzjlTu0tKVmmArrYtcZVfp0MW4ReZ83WcEZL AI3/hoe3l70UDfsjz6Eo5WyxTNtXzRRekwMK6xbktAvLTmu93C9au1mnsqjmMwUrOv8v ApsbnU4HWmhaHBxVhoC4M6ndLkGsghkSVdat7/K0JLwRDPUygFb7haKh0cC44DnEzxNG wwuWXKCm9EMcT9Zeh3AsvgGBlIm5/SSsCMWcI3UbMYWAE3qyh3Z99WSxj+P/mdliWhxl RJew== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=wm8DqSi6NuyqiFaBEsZUNHr6sZ9fik8x9wTbmsveHbs=; b=FWG3Iq5doF7HU/aSdVdPCPa29k6L4Mb0e11G7an/JlE28aEyMYoJlc6LqigceHSdhB XFEvqDrGWNVbQ47zr6NRwlrStzNTxTPwy5g74qC5vG6CkkRhJDum7jWi6i5nWHDramrV nCMFGg2UqbYHuZNFVNIUhsixmlPTuC+H5mnHQ4PJlVLOLJ5okwIrUiQ8oaI4qjM1KFdy hLHGy78aF4oWaNZUOuebfWi4lEiUs8ogcy9NrN+5QY+qRJC4MjYfkUzgNvtCbX0CguTR G1U8Y4OhDp4Mip9ubl6eLMjwHmwOKpfmNH/9zTFgGftKMKwuFo7b+XFgtjtIha1++Jvw 5wXw== 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 v9si10759474otn.120.2020.03.25.03.21.44; Wed, 25 Mar 2020 03:21:55 -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 S1727434AbgCYKVS (ORCPT + 99 others); Wed, 25 Mar 2020 06:21:18 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:33664 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgCYKVS (ORCPT ); Wed, 25 Mar 2020 06:21:18 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48nPKQ3GY0z1qy4M; Wed, 25 Mar 2020 11:21:14 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48nPKQ1HrGz1qqkK; Wed, 25 Mar 2020 11:21:14 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id c9fCxwBNxHKC; Wed, 25 Mar 2020 11:21:10 +0100 (CET) X-Auth-Info: Jk8AWD3vuXK/N+e+qyBjxYOdVRAvzUbptF9rayGrzfo= Received: from [127.0.0.1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 25 Mar 2020 11:21:10 +0100 (CET) Subject: Re: user space interface for configuring T1 PHY management mode (master/slave) To: Oleksij Rempel , David Miller Cc: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, mark.rutland@arm.com, robh+dt@kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, david@protonic.nl, devicetree@vger.kernel.org, linux@armlinux.org.uk, olteanv@gmail.com References: <20200325083449.GA8404@pengutronix.de> From: Marek Vasut Message-ID: Date: Wed, 25 Mar 2020 11:21:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200325083449.GA8404@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/25/20 9:34 AM, Oleksij Rempel wrote: > Hi all, Hi, > I'm working on mainlining of NXP1102 PHY (BroadR Reach/802.3bw) support. > > Basic functionality is working and support with mainline kernel. Now it is time > to extend it. According to the specification, each PHY can be master or slave. > > The HW can be pre configured via bootstrap pins or fuses to have a default > configuration. But in some cases we still need to be able to configure the PHY > in a different mode: > -------------------------------------------------------------------------------- > http://www.ieee802.org/3/1TPCESG/public/BroadR_Reach_Automotive_Spec_V3.0.pdf > > 6.1 MASTER-SLAVE configuration resolution > > All BroadR-Reach PHYs will default to configure as SLAVE upon power up or reset > until a management system (for example, processor/microcontroller) configures > it to be MASTER. MASTER-SLAVE assignment for each link configuration is > necessary for establishing the timing control of each PHY. Thanks for reminding me of this. I sent out https://patchwork.ozlabs.org/project/netdev/list/?series=166575 maybe it helps.