Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1453266pxj; Sat, 8 May 2021 18:35:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMuYDc4kdeT5t4cS0C94zL0BRmW/soAVxv9RBnMUK294MsXA1JD338Ql+CM4+8mnmNKJKp X-Received: by 2002:a17:906:1fca:: with SMTP id e10mr18045572ejt.486.1620524150867; Sat, 08 May 2021 18:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620524150; cv=none; d=google.com; s=arc-20160816; b=qJb1WmKnUmAca+Fbs7jkpFOpTmVSN3E5vq+IN2IlUrKUGMk0EIijx4c1Jj+i1Lz4bl LBtF6fZiwD6HqGDlidBQrL9Rs/AGNUIW6DC/YT1R0kr6QQn9mFBocriy+cRww/FA7DuP MSMdrl42boB5IaNp1V//af+IUHEzn6pPr9QJ1jTw3MGquyokhr0/75IFYIczb0CWn6oi DYECU5+rAj1rOodxknp/cbBX5kjEy0j6tOrKgHhhzrtqt1BJPhp1TALQCWgtnSZ6oCl3 pPStnl++kuxMqyM7MezCezAJVnY5akBt6MGoA3qrMrfDzEDDECqsH3CTNK6padIvdwHk gWFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1b24zNaVFFBYFVzwJpUgjrHNNdNi+opTsx8fHsrr8zc=; b=ybWOrFzx8PlYUBBfLMyjHJfT44MpXDycHn90GpwGq3V4igKo7Mo5zLtXpgB/Y3FNQW 567XMbk15GjkSpSSNqE45gghkLZRpqdD7io64srSeo7q0xC2I1KiOrNd6ddOSe9cJEog ygtxHvXmlzPlwpA3JW48YlyFa+3nAQ6aEp1Sxdz0uxiaT5lEAK8FmnX2AKA1Z1HWNKfm 3S/z7BuDoPhdzeGiAYP2BZVamazCLo6qRi63KuNC7h73E1dqIVONd0rNeWcRbEMHGBIj tEIcBwEJjCgOI3utMdqxl2xpZM3X25PistgUiDTRMZiFOdV9hbGw9rCF2VLwk9rb7g0y mVDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5ZarRVBN; 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 p12si8912954ejb.381.2021.05.08.18.35.27; Sat, 08 May 2021 18:35:50 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5ZarRVBN; 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 S229732AbhEIB3G (ORCPT + 99 others); Sat, 8 May 2021 21:29:06 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:59770 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhEIB3F (ORCPT ); Sat, 8 May 2021 21:29:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1b24zNaVFFBYFVzwJpUgjrHNNdNi+opTsx8fHsrr8zc=; b=5ZarRVBNm1xcD4+YleoljQ5nme B63CdlsC0EgYVHvgIlzIKQdxiBA6Al5zesq0vw2jIbyH3g67jnXGVokOvk62UjF+JqwW29/bQ3veV lQT6ptC7ThoDZ4vwSC9+WhpoVqX/bhldcirSrJRIwtn+bZBuy9wjiRnUxLW3Fx11GirM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lfYEg-003Ka3-EL; Sun, 09 May 2021 03:27:58 +0200 Date: Sun, 9 May 2021 03:27:58 +0200 From: Andrew Lunn To: Ansuel Smith Cc: Florian Fainelli , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v4 19/28] net: dsa: qca8k: make rgmii delay configurable Message-ID: References: <20210508002920.19945-1-ansuelsmth@gmail.com> <20210508002920.19945-19-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > And that is the intention of the port. I didn't want the binding to be > set on the switch node but on the rgmii node. Correct me if I'm wrong > but isn't what this patch already do? > > In of_rgmii_delay I get the ports node of the current switch, iterate > every port, find the one with the phy-mode set to "rgmii-id" You know this hardware only has one RGMII port, and you know which one it is. So search the list of ports to find that one particular port, and see if 'rgmii' is set as phy-mode and if so, what the delays are. This is a port property, so you need to look at that specific port, not any random port that might have rgmii set. Andrew