Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6719606ybf; Fri, 6 Mar 2020 03:15:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vv3aRdkvlKNSXBtuhcJyicRPv7TkI1v69UO3l/vDh6rPEX8IcxwObnZq4EKwrEsqrqhNjyt X-Received: by 2002:aca:52c1:: with SMTP id g184mr2212333oib.154.1583493322395; Fri, 06 Mar 2020 03:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583493322; cv=none; d=google.com; s=arc-20160816; b=b9AdT5zBIuI6nt27GTYgEjxkFKuZ7m3A11ln/ncnIrqsM7E8StqR+/gX/2lDiPHJ4m jkjWlXEilP5MePHgN9P7jpiimpKybOtO9Mroymp7a+HqKWcbXURmxeyF9Y7mXxGeDxma F5zWWW47UH0J6AgK48/6bpLiSBxOuTlDkNdS59OYl3zkt4T8mmbEXTRngI7GxO2qzRTG gEi08jlhQH+bxXl91GTldAfaUUsq9fbSxwe+2tl/wtBLj2tz0ogiUJk757Jm9VcHwN1p E8tCaGuoDzGztCBGMRLByMpTL2uf7G3lcEusipX2kDXlTckKciYmUwUaZLXxpa4M+09J g+kA== 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=j8xtexf4/vdMP8Mv3EMWtWZ6BtKtCAJfma+gUfOoOYY=; b=o5fZWqZcVwAtOflnuM76kHRBQvuo9uWd5xS0fKy0JmH9K/qo5nn+J5hiJqN2J7pUEQ 6IJh9X+P7IqYaJaZ1qjIqamdTq0SorQpNYAPMgQuZG8vNMVATfH/88yCH7bCsQ1AnTwT A6bTn55wNQzfT4sav6NWurNXBeBnSCBoc1XpvyyQsX9hxzBQ8R1f7R4lWzbD1RmoBxpz 9gtZ6o/xz3bgrowjyUAO8UIXDgsAD+vvCVhjbfJa/VICTR7dcVNb+49dx0WdWJd6DcEF BVDS4YjVK9cl52FtOF0XkgumLZ2LihIRMCavqxr9ShobP0MSkIk9JY4joipcN+T4AoKY IIIQ== 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 l15si1132369oic.220.2020.03.06.03.15.10; Fri, 06 Mar 2020 03:15:22 -0800 (PST) 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 S1727060AbgCFLO3 (ORCPT + 99 others); Fri, 6 Mar 2020 06:14:29 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44357 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbgCFLO3 (ORCPT ); Fri, 6 Mar 2020 06:14:29 -0500 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1jAAvv-0007qh-Fv; Fri, 06 Mar 2020 12:14:23 +0100 Subject: Re: [PATCH] ARM: mach-imx6q: add ksz9131rn_phy_fixup To: Philippe Schenker , "o.rempel@pengutronix.de" , "andrew@lunn.ch" Cc: "shawnguo@kernel.org" , "kernel@pengutronix.de" , "gregkh@linuxfoundation.org" , "festevam@gmail.com" , "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , "linux-imx@nxp.com" , "tglx@linutronix.de" , "s.hauer@pengutronix.de" , "allison@lohutok.net" , "linux-arm-kernel@lists.infradead.org" , "kstewart@linuxfoundation.org" References: <20200305134928.19775-1-philippe.schenker@toradex.com> <20200305143805.dk7fndblnqjnwxu6@pengutronix.de> <20200305165145.GA25183@lunn.ch> <7191ffe6-642a-477c-ec37-e37dc9be4bf8@pengutronix.de> <4e48d56f184ed56d15d2ae6706fdb29e4c849132.camel@toradex.com> From: Ahmad Fatoum Message-ID: Date: Fri, 6 Mar 2020 12:14:20 +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: <4e48d56f184ed56d15d2ae6706fdb29e4c849132.camel@toradex.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Philippe, On 3/6/20 10:46 AM, Philippe Schenker wrote: > Hi Andrew and Ahmad, thanks for your comments. I totally forgot about > those more specific phy-modes. But just because none of our driver > supports that. Either the i.MX6 fec-driver as well as the micrel.c PHY > driver supports this tags. > What do you guys suggest then how I should implement that skew stuff? I think implementing them in the Micrel driver would make sense. When more specific skews are supplied, these are used. If not, the rgmii_[tx]?id applies the appropriate timings for length matched lines. Device trees matching your use case will then only have to specify rgmii-txid. > The problem is that i.MX6 has an asynchronic skew of -100 to 900ps only > enabling the PHY-delay on TXC and RXC is not in all cases within the > RGMII timing specs. That's why I implemented this 'weird' numbers. I am not too well-versed with this. What's an asynchronic skew? A non-deterministic internal delay..? So, you try to be as accurate as possible, so the skew is within the acceptable margin? Cheers Ahmad > > Philippe > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |