Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F831C433EF for ; Tue, 12 Apr 2022 13:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8I2Kbz3YwZ5h89QgXDsUPI93Uu9hNmk/BVu5PFJA77k=; b=RcRRXjWJkuwJIi IKnR4LA0z5yM30cs8Z3ZRf6p9oYQF1ipoAmwlF3HyLRRUofVVBuYZnIXYaY7aXrJqhBWQuOuWVtuz EWgs6NtEavC8pM8xsJcba4F6WFq9B+RJEhA10K0SJm30gRe2bOml+3a/ND/sy/gzHez5lTbqWtml0 pdjQxmAuWsFmW1ZRTLmmMZ5/OZwXDy4PsXljhjwHFR10SGox5VVYBm6j1Z/eOyK+4ahWY6FOXzwbP DvR8/ae7oaI4zS0HFx/I3m00P99CMUdKXkdDAnIimaxLkw8p6Ov6+Qh8bCravGsQYvyc+wRGo0RMs ydwff1F6BvGHi+Gvf+PA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1neGIC-00ESBh-Sb; Tue, 12 Apr 2022 13:10:49 +0000 Received: from vps0.lunn.ch ([185.16.172.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1neGI2-00ES96-GJ for linux-arm-kernel@lists.infradead.org; Tue, 12 Apr 2022 13:10:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=WuiFiHeMvZDkq8Q1J+rs3YTSaLxbzfLA/uH6C46aS9A=; b=SYbDldAR1Y7f5n17R+WO4UvgWZ 4t+btoG7FyDmhtSvTemy98cGzaqJcwMXRlrejM7/9s81cWnn2FznXZmZLA71pOGPbtwKsuZYAosJX oR87WRwmH+SdZYYSasxIZeM/MrV9xJ/y3zKaGzEi+wWUcNn16X1saCFl1ZfpX6s/9VBY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1neGI0-00FSJU-IF; Tue, 12 Apr 2022 15:10:36 +0200 Date: Tue, 12 Apr 2022 15:10:36 +0200 From: Andrew Lunn To: Grygorii Strashko Subject: Re: [RFC 13/13] net: ti: icssg-prueth: Add ICSSG ethernet driver Message-ID: References: <20220406094358.7895-1-p-mohan@ti.com> <20220406094358.7895-14-p-mohan@ti.com> <468d4d9b-44b4-2894-2a75-4caab1e72147@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220412_061038_596874_4F09C31A X-CRM114-Status: GOOD ( 18.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nm@ti.com, devicetree@vger.kernel.org, vigneshr@ti.com, mathieu.poirier@linaro.org, kishon@ti.com, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, Roger Quadros , krzysztof.kozlowski+dt@linaro.org, ssantosh@kernel.org, Puranjay Mohan , kuba@kernel.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > > > > + if (phy_if == PHY_INTERFACE_MODE_RGMII_ID || > > > > + phy_if == PHY_INTERFACE_MODE_RGMII_TXID) > > > > + rgmii_tx_id |= ICSSG_CTRL_RGMII_ID_MODE; > > > > + > > > > + regmap_update_bits(ctrl_mmr, icssgctrl_reg, ICSSG_CTRL_RGMII_ID_MODE, rgmii_tx_id); > > > > + > > > > + return 0; > > > > +} > > > > > > > > > > O.K, so this does not do what i initially thought it was doing. I was > > > thinking it was to fine tune the delay, ti,syscon-rgmii-delay would be > > > a small pico second value to allow the 2ns delay to be tuned to the > > > board. > > > > > > But now i think this is actually inserting the full 2ns delay? > > > > > > The problem is, you also pass phy_if to of_phy_connect() so the PHY > > > will also insert the delay if requested. So you end up with double > > > delays for rgmii_id and rgmii_txid. > > It's misunderstanding here. The bit field name in TRM is RGMII0_ID_MODE > and meaning: > 0h - Internal transmit delay is enabled > 1h - Internal transmit delay is not enabled. > > So here internal delay will be disabled for RGMII_ID/RGMII_TXID. And enabled for the others? Why don't you always disable the delays and let the PHY do it? That is what pretty much every other MAC/PHY combination does. Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel