From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 062CFC433B4 for ; Fri, 14 May 2021 16:55:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBDD8613F1 for ; Fri, 14 May 2021 16:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235013AbhENQ46 (ORCPT ); Fri, 14 May 2021 12:56:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:40656 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbhENQ45 (ORCPT ); Fri, 14 May 2021 12:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=w3keSl2B5HgY8u/QNhVAdBWXdaZChxL4GYwk3d3Bt/I=; b=pkPGNdFp0/TinMHDFJvi2VQDog Yz85B3/d08OvpdpjI1I4DUA2tuANT3hJN52PRpGayMnACKys0xpHzS8hocv1oF19CAvy6jht9Cq3G ZeLaAGp60RyIOQHXodiItqEhHcEzHfchQaeoCSiQnc8lfoIcmPYK2zWO1IAsGCUgtatE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lhb6C-004DCm-RJ; Fri, 14 May 2021 18:55:40 +0200 Date: Fri, 14 May 2021 18:55:40 +0200 From: Andrew Lunn To: Ansuel Smith Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King , "open list:NETWORKING DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [RFC PATCH net-next v5 16/25] net: dsa: qca8k: make rgmii delay configurable Message-ID: References: <20210511020500.17269-1-ansuelsmth@gmail.com> <20210511020500.17269-17-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511020500.17269-17-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, May 11, 2021 at 04:04:51AM +0200, Ansuel Smith wrote: > The legacy qsdk code used a different delay instead of the max value. > Qsdk use 1 ms for rx and 2 ms for tx. Make these values configurable More likely to be ns not ms. > using the standard rx/tx-internal-delay-ps ethernet binding and apply > qsdk values by default. The connected gmac doesn't add any delay so no > additional delay is added to tx/rx. > On this switch the delay is actually in ms so value should be in the > 1000 order. Any value converted from ps to ms by deviding it by 1000 > as the switch max value for delay is 3ms. dividing. And more ms that should be ns. Andrew