Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2667454rdb; Mon, 5 Feb 2024 13:49:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2+dJrCp9AB8YwUm+Qojh7sks/hqL/erUM1aYyFQ5R3D+0NWs5p6NgMrin9TOJG8cexYm6 X-Received: by 2002:a05:620a:11ad:b0:783:e74f:66e6 with SMTP id c13-20020a05620a11ad00b00783e74f66e6mr822393qkk.22.1707169770676; Mon, 05 Feb 2024 13:49:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169770; cv=pass; d=google.com; s=arc-20160816; b=biw5luWyY7srT7xeCdiettDBf1bqxqmEGuFzmjazQ4br+Fy29tG5ENLBMN9eozKdee lMe5eyuKGzD1RiCy2uNs1JM94V7KkGIgeDTeVkdb8qkn1wbeDcPdOnKB/hufkSRp9Qt0 vKTHfqJqEyQ6k+Inr2wW9RqMmp4NtDyvtTob0GTdE4MDkxQC2dHQP6RtzgzDfZpn8wZJ RY5aCf0NHTQJI17P1SSpKGCwN5ll4uF9lJjw/t/lAXTt+tww8HWQ1LP7kqzwKUitPbl8 jYxG3suQlsYxBXsn7e/puVyvLw5ytb/xtkcNXMY/yTiJB32FKJwXN5fntDhfCgb6shoz pvDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V2vwy1xdN4YRuSNz0Zmeo13DlHz09nwHWjHo8V3zYIM=; fh=Rah3S01VO4abAVh+mzogtb5Hjqm2gKID/FRtCGprLkA=; b=LKTh+z/ny0A2M2efMq26euqrSkiwd9SusShoKN6/Mk1ABUPlNi7dY/N+uiin1O3r9s IjxmjD5uguT5x85jr2jK9tNwzlINZFKb+tECdtq3WI0xeBKlyrkWBjIiAZnPxMTKTPFM jzTRSzt2+DprpKhkn6K8t9Lpitx6Rth4XJvbbO40oiP1iJJO2RJED87hhDdv/03oTHRx TiYpPFvWKy7hsyM5WH1DBMY7H4NfYF9qFhRN2BPmhzZ8dzcZfq6P7ONIB3/TIzZRxVf1 n1sxCwVO6mRWuC8m5/lF/31a7d4dizR0LghiZLhnQhOSlSSPVsL+27kV8ZQ199hcqga5 VqmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ixbk6ZDP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXjp1uHcl7aN6GJznvmEMMCObSLmIVDrVJulnu8uOZluul8bclWvJkzDtYRDVVgUOe59uAFdGxC0O/SZ5tZC1Xq6pvfOJWHhOVV5+hGIg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v8-20020a05620a440800b007832fdba75asi780521qkp.356.2024.02.05.13.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ixbk6ZDP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 67A9E1C27E1D for ; Mon, 5 Feb 2024 21:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98D09134CC3; Mon, 5 Feb 2024 20:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ixbk6ZDP" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20FB8134CC2; Mon, 5 Feb 2024 20:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707164981; cv=none; b=GXn8Am9a/rvGHCGlejjubBaYkvWEgWiG5ZC6mz3xA8sjxmQvrjyiuQY33G1zVs7mpQ+xrC1S0vu3/VzaDsa1r/37juv7Jmgi3E2bOcBY1GlL7hmU045BE0DBODEYOlleM6jPzgDLxs66J1YAWNaLgRVrKSueMXkVpNDQrQYV3ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707164981; c=relaxed/simple; bh=S0GzZeJ7TZ/R3/NxtXdzMehouUj/A+/TyzKjx/Jvwj4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HagOOB0KrGknkeuBQ7Nwi/cY638Eypd1qw0RFEmqzUyxv/NicRyoVEhaJJ0IRzy96Yy2bg/TsGB6cDp4zdc1U+XAOsVMoCOuJtj398uUrNARnxNMBigMmog+9iZSSILKKX3vkf5zMST5vEtu4jZ9vBXHy2pTOyiL2JoYG/2Gi0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ixbk6ZDP; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-55cca88b6a5so5780893a12.1; Mon, 05 Feb 2024 12:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707164978; x=1707769778; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=V2vwy1xdN4YRuSNz0Zmeo13DlHz09nwHWjHo8V3zYIM=; b=ixbk6ZDPKuJP22PNH+aZijhR3MA5QYUXinplrgx64oiUg39ZnFfsSYEcODJYZYrkNe ktgGxD0G5rBK9GqlsgJeR9p37DfvQpsKs0O52XX9cXifpsiuKqWNb4giDUv42+5En3uZ 3rZaBddD39MDqeGdaWthsqogkyEC3/mBhinAUEOx1mzQrn5+Q4BuIUdHVc6bzS+5y+ME avJHr5ewQMqOODF7sSwCXwcSGK8PnLXjF+6iVQaaHWnesN3hBvdVB9iCLBV93kFr4bKo iuFvz6JbtVCUuAH0Mzw3tSb8h8lHVytqwIKiwHGPIQAZ5n45kvgImwcpo5pne8mia9v9 ypaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707164978; x=1707769778; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=V2vwy1xdN4YRuSNz0Zmeo13DlHz09nwHWjHo8V3zYIM=; b=NJuuuSEpzGWkCp6zIgj5JsGJOmdp4amFPgDHEVutmDkJJdgNQQxKAkzWt3dgLeUKJO bL31lmFZDUK389bjFvjjDriVGATrZW6cJCuO33a5CxgLkeG3/ru7If6q5QSLpyA8MVWc Z9rhga5Vvnmq0ZZBUth754Bkiu3hwd8H4s81VF27qznHkdoNqa4vK3o3HTNESshNfSAD c/9Jx6UtCsp+FwdzTgyL3S3drF2BWvdWO5qqa5kA2ZXdTz3Vv5Yl6rpRV0V/BH5dsCce AU7uaeMP3vfN4uiJvT6n1JEB8C9regJY+j1L+fzC7Pe+y3XztuIM8q8Z8qLTtINCm3NH p79g== X-Gm-Message-State: AOJu0YwzjivkfZhjoZBBFwNN1b6R2FpuCHRiK6OYzPRCFx3K/oKOk9h2 SahFzelxViDSY6qNOBuqRn76WjjOmhm+vbj/0GKeI56ZsZCzd+Ia X-Received: by 2002:aa7:c991:0:b0:560:535:864c with SMTP id c17-20020aa7c991000000b005600535864cmr300965edt.12.1707164978034; Mon, 05 Feb 2024 12:29:38 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUKrZurXEx9W3ZB7XvtgoqXBVoDOIiHWDUK0OxcbnUi1TvQBb6CqHTrO9FkFWqz66OVwTWge1zAbOwH8Xay+GG1fnqHREU/Plac7osLVVNe6J3OcVcKFONw8vGiWGnoC5EX8eSLZO+l2x3/AUHgM0scbA/Y+kTy8Klw3oNqwsVrgYrgn1YMLoOToLYIMryx3gKzPaNhCAlqVe81we1X2/Dm0eh4DDolBncvdnRRzfO1KIDJnrkUiX3IcIhUWgYp0goyUqEdfCDrnYlGZPcmxmRcqfOPEYpQzz6voNLSFvkv2KcpQiSeDrYRGhBcf27Wb5GMh2OU+RSh49vfiSFw8OrsZJUZTF3VqZXtlMJZAcgnUD8JF8D/OKM/I8AseGdelA3Br/w05YzQYPg/xovo1JoT4oa/2NNvIFk2hQjLqHhq8ayZZ8BlCWY6aJxUHkUaw9YD0wD54PQROFgp2W1PK8yNWLiUA1tEWvLa35hwKk6RSWUTK5aEs3H1aJSQ7Bu1Tz1zivVLr240evdu2sOw16xquFGF42BbW73B4/0fMc10tOhz6VfU+CEBvYWYQpxYL18BkHQrZL3RSXCf16RtjFPiUPEVn440SQj0Xn9B9nVOjh/9FmCwW2+GRXYTFwQK3hrAvnZDnKPFAY6K+Hq1YqbJg8ClLLLw Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id w13-20020aa7da4d000000b00560422bd11asm256428eds.30.2024.02.05.12.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 12:29:37 -0800 (PST) Date: Mon, 5 Feb 2024 22:29:35 +0200 From: Vladimir Oltean To: "Russell King (Oracle)" Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next v3 1/7] net: dsa: mt7530: empty default case on mt7530_setup_port5() Message-ID: <20240205202935.tolbbwbtrig32jlj@skbuf> References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-1-63d5adae99ca@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Feb 02, 2024 at 06:05:36PM +0000, Russell King (Oracle) wrote: > > > Given everything I've said above, the only way to configure RGMII > > > delays is via the rx-internal-delay-ps and tx-internal-delay-ps > > > properties. So, DSA drivers should _not_ be configuring their ports > > > with RGMII delays based on the RGMII phy interface mode. > > > > > > The above is my purely logically reasoned point of view on this > > > subject. Others may have other (to me completely illogical) > > > interpretations that can only lead to interoperability issues. > > > > I will address this with the next patch series. Thank you for explaining it > > in detail. > > This is a good time to point out not to rush with the next patch > series, as my email will _likely_ provoke some additional discussion > from Andrew and/or Vladimir. So please give it a few days (maybe > around the middle of next week) to give them time to consider my > email and respond. I agree with everything you've said. The only problem is that Documentation/devicetree/bindings/net/ethernet-controller.yaml is ambiguous on this topic (to put it mildly). @Arınç, there are ways to handle the "tx-internal-delay-ps" in mt7530_setup_port5() in a way that is backwards compatible. I don't know about RX delays - the function doesn't handle them, and I don't have the time to open datasheets now. You can take inspiration from ksz_parse_rgmii_delay() and sja1105_parse_rgmii_delays() on how to only fall back to the current logic to set the tx_delay if the more specific OF properties are not present.