From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933808AbcKPDMX (ORCPT ); Tue, 15 Nov 2016 22:12:23 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:35488 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965004AbcKPDMT (ORCPT ); Tue, 15 Nov 2016 22:12:19 -0500 Date: Tue, 15 Nov 2016 22:12:17 -0500 (EST) Message-Id: <20161115.221217.2076182289174952941.davem@davemloft.net> To: alex.g@adaptrum.com Cc: f.fainelli@gmail.com, gokhan@adaptrum.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/phy/vitesse: Configure RGMII skew on VSC8601, if needed From: David Miller In-Reply-To: References: <20161114.161818.1460191406108019273.davem@davemloft.net> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 15 Nov 2016 18:12:50 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Date: Mon, 14 Nov 2016 13:54:57 -0800 > > > On 11/14/2016 01:25 PM, Florian Fainelli wrote: >> On 11/14/2016 01:18 PM, David Miller wrote: >>> From: Alexandru Gagniuc >>> Date: Sat, 12 Nov 2016 15:32:13 -0800 >>> >>>> + if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) >>>> + ret = vsc8601_add_skew(phydev); >>> >>> I think you should use phy_interface_is_rgmii() here. >>> >> >> This would include all RGMII modes, here I think the intent is to >> check >> for PHY_INTERFACE_MODE_RGMII_ID and PHY_INTERFACE_MODE_RGMII_TXID (or >> RXID), > > That is correct. > >> Alexandru, what direction does the skew settings apply to? > > It applies a skew in both TX and RX directions. Please repost your patch, making the intent clear either in the commit message or a code comment. Thanks.