Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2081521pxb; Sun, 17 Oct 2021 05:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0dVQlXYbaf1Bcoh/5R6Xu/wKVovdE2XEPfrb/TQiVd7r0XYiALw2I87j4N7jdr9mZIS0g X-Received: by 2002:a05:6a00:887:b0:44b:dee9:b7b1 with SMTP id q7-20020a056a00088700b0044bdee9b7b1mr23533122pfj.84.1634473853026; Sun, 17 Oct 2021 05:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634473853; cv=none; d=google.com; s=arc-20160816; b=jdFtP0Edz/d2bOmB/jJ5vLkoDvX5hnG1dgPTP32FM0qPpoAMkup3tDZ44oEVXML4W9 5o/vgAojkT7AMNbJXxvGVVnocXNz5kC41s3DnG7DKcr840sL7rS7lkco6HxJHlKAf/E5 zmq42m2VYIsAve0jJZ21XLewsfH4ZJBsyZZYNmpQRu2ehO/PR2i1IZ1MNv0Wion0mVPk vealMQNnFB+zoCjfSarn7GpkiKjvKNww7yQp0EOv2NXMs/aD/TNGpNj7O0cVVVQN5l2n kRyTt9xh7YOthWFpnCNX5v5EyNugv2sPfJ3FZhpNEI/8AGXxSdXWz7GH991x9PF+T94k HfgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=h1OfWNmPxnvZMni+hSGr/aPakXoUDhVv2xUOS4WlYDg=; b=ZLPOcgt6D9Qz7rc/aumkELVhKMfhagqpzMS0/kaqZyzOY4Rz3ygch4qpQFQ3N/oGLR 834emm8Mj2j7EFnE42BoKAqHtUHAjzcVgDTdvV6k5ATSAlLkczUBxNWBXkWmSlKTLFRX Bv/dZu/ZId+mRFp1qY1s9Si4R0QEFwD80mTGWYB4huMci3XqQYd4yUzJCy4YLPFNAika 86Ao5CRBp2bMmcZ0OOOEwCNb8ZAP79g5JmHYMzjKQrcpP6t7VWI9qZFmxYNBVXtpjChf f04UeZNvvVB+7PydBRSqbPTiDJjeJkKGsM8Pj8RG78T0y06NjzZJTW/wvlexTjN6eQ6I NnQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kyPHGZmr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si5419608pll.107.2021.10.17.05.30.38; Sun, 17 Oct 2021 05:30:53 -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=pass header.i=@gmail.com header.s=20210112 header.b=kyPHGZmr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242192AbhJORS4 (ORCPT + 99 others); Fri, 15 Oct 2021 13:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242176AbhJORSu (ORCPT ); Fri, 15 Oct 2021 13:18:50 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98AD8C061767; Fri, 15 Oct 2021 10:16:43 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id i5so555477pla.5; Fri, 15 Oct 2021 10:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=h1OfWNmPxnvZMni+hSGr/aPakXoUDhVv2xUOS4WlYDg=; b=kyPHGZmrPOS/mviCT0sz87P/tWmUvHvWTyD0U+V5YZoy+eLX3dOTwgcgrYP/ebIhX6 koEADONUdH4BLJPtn8C7gYcbgPz5XTOyogtmKNh1Xgm54h0qwlS7fhqPAYZ93oDeOxqg TrbShyJoma34MXNXE8WuNuvNqDjGwwgOoENO1JKNZkyAlHMkJhmc3VZK+3wRKVLCSvAo AsMqqyoCn1Ybb68clUy6OtA3YUqcCbKXaK4WN6ej3ca2F+gKrfY7+nZsEhqwF2m7N1dB jKuxjODzZjst70vMF+ETB4asYF4+2pjULbLZf4kufZfTjaoUCe5rQGPF171sZfOg4fN8 PFEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=h1OfWNmPxnvZMni+hSGr/aPakXoUDhVv2xUOS4WlYDg=; b=xft/gXjatTmgZc5+mrheuZyMGe4dSHZ1NNAK3aLYFkOoqEGxkVAqavKrXsjZojCLWa p18MzmAI4KHRTRZ4INxg3GgEhA05ULENwd8e/YbeV9DwBxkzBs8a93DUKM548fV7dmqb PrKaKSuKlLN7PzeFrSe+moCxQMt9GXpLWt/IU3W28n7wsQZcZR6pjCGU14nsn++iNglM PFVfUZsecHUGTwifjhISxPQiavK0lc+QZPkXRFkd36iJfgPtJKe+sNVWur3tioz/Su/d kf3pCZO1M40yGI8SYHFqcRsoHDzdBAqtiW3DGEk5wb0I20DLhSIVlMcriXBFKaa0Tfsb OUWQ== X-Gm-Message-State: AOAM531F9Fia0mCt0RUuCFkUJnDoIVDTjjipM1WQKJ/gOMYxIw8+QSxm NKDfQW5lZFzmxPPLE07j4lA= X-Received: by 2002:a17:902:e74a:b0:13f:3538:fca0 with SMTP id p10-20020a170902e74a00b0013f3538fca0mr12160835plf.22.1634318203132; Fri, 15 Oct 2021 10:16:43 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id s17sm5666597pfs.91.2021.10.15.10.16.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 10:16:42 -0700 (PDT) Subject: Re: [PATCH net-next 2/6] ARM: dts: ls1021a-tsn: update RGMII delays for sja1105 switch To: Vladimir Oltean , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring , Shawn Guo , Andrew Lunn , Heiner Kallweit , Russell King , Vivien Didelot , Vladimir Oltean , Prasanna Vengateshan , Ansuel Smith , =?UTF-8?Q?Alvin_=c5=a0ipraga?= References: <20211013222313.3767605-1-vladimir.oltean@nxp.com> <20211013222313.3767605-3-vladimir.oltean@nxp.com> From: Florian Fainelli Message-ID: <28551a3d-541e-8538-6a2f-110eeacd0500@gmail.com> Date: Fri, 15 Oct 2021 10:16:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211013222313.3767605-3-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/21 3:23 PM, Vladimir Oltean wrote: > In the new behavior, the sja1105 driver expects there to be explicit > RGMII delays present on the fixed-link ports, otherwise it will complain > that it falls back to legacy behavior, which is to apply RGMII delays > incorrectly derived from the phy-mode string. > > In this case, the legacy behavior of the driver is to not apply delays > in any direction (mostly because the SJA1105T can't do that, so this > board uses PCB traces). To preserve that but also silence the driver, > use explicit delays of 0 ns. The delay information from the phy-mode is > ignored by new kernels (it's still RGMII as long as it's "rgmii*" > something), and the explicit {rx,tx}-internal-delay-ps properties are > ignored by old kernels, so the change works both ways. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian