Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2061267pxb; Sun, 17 Oct 2021 05:01:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPq719Nas1DMpvB9I1KbzYz6//WEpjZJsNnrjnLr7GIT5B54ibY84ZWHnT6Ik0mC5eu3ny X-Received: by 2002:a17:90a:191c:: with SMTP id 28mr26263483pjg.121.1634472084099; Sun, 17 Oct 2021 05:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634472084; cv=none; d=google.com; s=arc-20160816; b=dJkU8gtXgNyt/U3koKg1HT30QR3II2uWyQ+4JEF9DANyzR6QifKz+vZBtiAnMY+mVo r4sE9VMMHjsMKOamvdQPbNe/X5QA/PyS4cBJXj3r3wCs9kDS98eoatPn78LGlleb3KMh Vf6h7LVjM4BG8mA1GxJyaycouyFlHtlyKXOdf6QxdqyOSBQniM0mKGuX+8+j1q0JKjdw x6oXSZRZ9m93S5jS8NytXd73uBaz6jYFlpXQCyJ6eWaCM6pXsI3ZkcaRxjylcTB88By8 OySECqIwyMpwGrgrZthm7VhDx6skxF71Dvrlr+EvBV0ySeVY5+K1p3L/p1Ymq11MrC85 432w== 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=nNU/Jlv2Z8cbVRwF3uZFRercElyzOMBVYw9cMxYKxuw=; b=LGeaoymAJxI+FMLZ+3e6zsa83VZHMPfXeLQM8uzrzTcvwK6PN0uJC0iWV7Lvo1nQ6u zpcI98zcZDWCZ0bbJwgMY9Za9EUueUPEmoUOsNjRpZ//dVA41SPvONfs09S6AMO7g9EN AkIl6w/ruXQ770s2WU3GARlZRlg3q88Kcwb09XAG/aQzgixuEjKZjl1HCbW8WZWoxOzc T459Oytsw+xBorscTSxZQ3d/Varh3KibS9pN/jCLzERj18KEBUOI6Ytwpxtkb7BOzGy9 cXaeP5obDuC2LCAWThG6Mq+S6SrTwzWc2RkxK7Agy6eJ9b68AjBMGvJIGD06uKwsPjwp cqSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="hN/4clyK"; 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 oc11si30889392pjb.39.2021.10.17.05.01.11; Sun, 17 Oct 2021 05:01:24 -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="hN/4clyK"; 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 S242158AbhJORSj (ORCPT + 99 others); Fri, 15 Oct 2021 13:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242134AbhJORSf (ORCPT ); Fri, 15 Oct 2021 13:18:35 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71760C061762; Fri, 15 Oct 2021 10:16:29 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id e7so9190528pgk.2; Fri, 15 Oct 2021 10:16:29 -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=nNU/Jlv2Z8cbVRwF3uZFRercElyzOMBVYw9cMxYKxuw=; b=hN/4clyKdcquXclbvcXDjifrAC5C7tXFpaOABzlWCNUeB7sx8GJeIIVfww1oE8qv5b liFfVLF6kf5FaPoagCWeN4ED+NNt87xy+h3F9v2hN0aG+Lk75pi60xImfJ7AtKfVFGLI snkxk9OQ3XvTt0pV9TWnmd7HRcfN3b118uryDDLR8jQ1Jb+bousljKcKYdeAKOAlR7Cu /yTJhviiRaBHZjQY4Dq3I3edtMrplcdNHTruH0ilE2WzratxhXS9xfVXB2SCIenI/Rhm l/1fHaD2mc9DAgia0NJIzQD2JKH6n6RS8A7sJLFyvwpA1yHnHa/ESWWhA/oK/Ep9MTpP qR0Q== 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=nNU/Jlv2Z8cbVRwF3uZFRercElyzOMBVYw9cMxYKxuw=; b=bzbudXyAM+el9NNVNrXde5DUA+68Bn+uPyYfmPYJ6UXu3AHtQnziFbwzHZ0d4Q/oX6 X/b5hunxlPDSPfptj0SYLQvb/85CXWfary6CXnqGb9hW/mXhvNSZiFOf6SaQuJ7X6S9q PWG6r+NKT6s/9MHY/lP35vuyyfZqJBo0jaaBCK8jzgzsagN7uUgDYatPYjfnzMoCBg2j CyNknU0CpY6EMMdqHip1jvp0J9ueOs28B46CPqtEgOfqoG5lm8008lV+kGYekHmNlbsN JsLe/26BL8u3EvB8qsU6K1TeJGUGya51E2ajtKpClouwN+/cxa2ij0mNPKKDsV7H3W0M PVaQ== X-Gm-Message-State: AOAM531O56eIzzaqMA6FBWkMPZnjA4/3M0Qr+jCY09T6NtklxgEADD+K Ve8WlOGRnYXHgGVtKAW/HCw= X-Received: by 2002:a62:7506:0:b0:44c:efe8:4167 with SMTP id q6-20020a627506000000b0044cefe84167mr12897706pfc.59.1634318188961; Fri, 15 Oct 2021 10:16:28 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id k1sm5262100pjj.54.2021.10.15.10.16.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 10:16:28 -0700 (PDT) Subject: Re: [PATCH net-next 1/6] ARM: dts: imx6qp-prtwd3: 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-2-vladimir.oltean@nxp.com> From: Florian Fainelli Message-ID: <531b85ec-4227-85b5-f1c7-206f293ec0b9@gmail.com> Date: Fri, 15 Oct 2021 10:16:07 -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-2-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 apply both RX and > TX delays. To preserve that, add explicit 2 nanosecond delays, which are > identical with what the driver used to add (a 90 degree phase shift). > The delays from the phy-mode are 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