Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp457772pxa; Wed, 19 Aug 2020 06:20:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwip4U8y7snyOKB4OGIAxlijjqZns6oSY4+ec5SCAe2c+F6p00O1w0RJ9GoIZL+2IOP8YAj X-Received: by 2002:aa7:df8a:: with SMTP id b10mr23838819edy.62.1597843214656; Wed, 19 Aug 2020 06:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597843214; cv=none; d=google.com; s=arc-20160816; b=ymMsvITDOT+0yEVgcKBodg5IE9PzmU6rN73gWbUjlzMGNaSfk+QizYdjhLR7hxv/BU dJTn4gsZbZHrOA/mVLrw4bWCFajoYc7Jn+okk7o6Jw377NVIv+iOkZrpXiZ84blwX3Ln e0QDPS2eK90Jn3tz6bExOX/7JKt9hD7W07hfWdUC6wTXmIg85LJAFM8kMbrU/k1fOqNp ZPzAKCOWrYI+6wMPYCAUEmXCr1t8KKp8ibkCYNpW8GimCk2A7/88h9DjYisUk7J5n91z K4+MNzNdIiTil4HTUKjXZmyMFAtIkSj5jL4h1IUZVvlFL/XvIssZKn0ZTN+fZR2KbC0/ FcoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=V2uo/ZR8HLYEkUYCuG5M8jOQqT1SYjocRuZ0/XgAuMk=; b=tql4H6sjvVVgoGiRllxpsYsjsMyBxsjiOX7i0/EoVmiSVsyOTG1NYseBs5lRqLYzYw HXTEk0qZGbAuNgRFTIImOfiSsAotPBqw74MsoxXzFHpuF99ZfNh0DCD4ImUIK2fdtWe/ FZiMICWB74qGgWPZZ9ZazdtlNBrxyk3IoBWvOsJMHfonbxHacm3ndjcpbIINortoKPr2 AT8eSRqoCq+B9aRhPgYV65eVkP1YOx3gKUtULA1XNCyX2yKlTuMJck85xXtsfGJlHT7G uESez2W7+KfTIHdq+J5ty3khsMJlMUek28ssHeZhjODIDBunbe9doKe2gbL7GLzJ4b4q yAug== ARC-Authentication-Results: i=1; mx.google.com; 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 b2si15792585edy.370.2020.08.19.06.19.49; Wed, 19 Aug 2020 06:20:14 -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; 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 S1728473AbgHSNSl (ORCPT + 99 others); Wed, 19 Aug 2020 09:18:41 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33328 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728477AbgHSNNQ (ORCPT ); Wed, 19 Aug 2020 09:13:16 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1k8NtJ-00A5Kz-Mp; Wed, 19 Aug 2020 15:12:33 +0200 Date: Wed, 19 Aug 2020 15:12:33 +0200 From: Andrew Lunn To: Landen Chao Cc: "f.fainelli@gmail.com" , "vivien.didelot@savoirfairelinux.com" , "matthias.bgg@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "davem@davemloft.net" , Sean Wang , "opensource@vdorst.com" , "frank-w@public-files.de" , "dqfext@gmail.com" Subject: Re: [PATCH net-next v2 5/7] net: dsa: mt7530: Add the support of MT7531 switch Message-ID: <20200819131233.GA2403519@lunn.ch> References: <20200818160901.GF2330298@lunn.ch> <1597830248.31846.78.camel@mtksdccf07> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1597830248.31846.78.camel@mtksdccf07> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > In general, according to phy.rst, RGMII delay should be done by phy, but > some MoCA product need RGMII delay in MAC. These two requirements > conflict. Is there any suggestion to solve the conflict? Implementing the delay in the PHY is just a recommendation, not a requirement. However, as i said, you need to be careful what is pass to phylib. If the MAC is implementing "rgmii-id", whatever makes it way down to phy_attach_direct() needs to be "rgmii". If the MAC implements "rgmii-rxid", the phy should be implementing "rgmii-txid", etc. If this is wrong, you get both the MAC and the PHY implementing delays, and bad things happen. Andrew