Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1570524rda; Mon, 23 Oct 2023 17:37:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrFrn7ihNmHdb3jAISe8aNQPpfi6CL6S6BVJSgabP1vA/8nPX38QlDNoipqGNoepJ8x7nz X-Received: by 2002:a17:90b:608:b0:27d:44ce:cf7a with SMTP id gb8-20020a17090b060800b0027d44cecf7amr9117579pjb.5.1698107873535; Mon, 23 Oct 2023 17:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698107873; cv=none; d=google.com; s=arc-20160816; b=rIbG0hjMdVoaAeboAld9cN+JWrGemcY7u0x2+uvgLyCfcwMLcr72M8yu9hIrUilzcO StMlyTcMiB4c+OmF88fvf+XEywoLCKoWdNMPuev9OmsmW5QPSfcgvKwuu+ap3Z+BoCg+ tRJ/QlG4+/Jc7Y9Lz1LXVjmz7256D8uj9WZ2o+YS6U1TM+Nx0xWhnW+ctMEEjqLvjbCa Qgn0MB1eJkj/LvMlqSmcwIEoKiO3t2ku7BISwgVpqBI3GVx/SH6Sce1XOD7dN4GdDyTU bcm2XJFt3yB46DSmqczndCLcSxkCgFaPpURXxLn69RJK/8lF0LJx83IDJTu8pULCMI1W mKgg== 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=IbkFeQ5G28rXN3aE/XpDlcgQ2XTNatnb7axQWP+p/D0=; fh=HP0u6UTDta/+GqBM4mahf5Lc0EVr0KtIYijFiIYMcHg=; b=mAL9GPdUAa82Z1hmezEalPxPDAo8z4l38iuDFQ/lldZsm8UqZb1tLi7ncpA0EO6eHr QDbcovxa2Hm3ZQiFLTBQQusoEnS3xlSJ06GzCosOXh8mMHohF6hRmVC8+mPz+0Lcmx9s 6cSv1SkfVlwao7WTloLHdzl2BQHRidOUMJ6Zso80B8dGF3vQlnr5geweQSCGFKvcQSq5 a1bZ+0evqvctpxdVgwoXlBNS95lE5en2rTmBbqmd6i1DT78J7EAF4yR+uojFQ3WEKNzl bOZ+WlTLhKfSi/WaMcLSSPYqMQHoMuTF/kg1wC49fA5V9q9HJIGpVQYo/eIR+kVRwBFn Wokw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Nh8j3vef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ci6-20020a17090afc8600b0027d0e78a0b3si9464472pjb.190.2023.10.23.17.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 17:37:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Nh8j3vef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EBC26804C674; Mon, 23 Oct 2023 17:37:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbjJXAhm (ORCPT + 99 others); Mon, 23 Oct 2023 20:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJXAhl (ORCPT ); Mon, 23 Oct 2023 20:37:41 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9551F9F; Mon, 23 Oct 2023 17:37:38 -0700 (PDT) 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=IbkFeQ5G28rXN3aE/XpDlcgQ2XTNatnb7axQWP+p/D0=; b=Nh8j3vefZI+3csLTxryBpWR3k8 cKuTeLWPVL7484mjPb+3/eKHtHWejpfh7sr22uTbdAnBfcTmUP6cI4ztdJzb4XhV/smisVvooS1it e+JpeC2TLh5Zd+zPaVru99f3tiMalghv8bZ52x9bbemWVACou7LnHFmp2NJ0BgVkAjwA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qv5QC-0001c2-Iw; Tue, 24 Oct 2023 02:37:24 +0200 Date: Tue, 24 Oct 2023 02:37:24 +0200 From: Andrew Lunn To: Parthiban Veerasooran Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, steen.hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, horatiu.vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [PATCH net-next v2 4/9] dt-bindings: net: add OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface Message-ID: References: <20231023154649.45931-1-Parthiban.Veerasooran@microchip.com> <20231023154649.45931-5-Parthiban.Veerasooran@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231023154649.45931-5-Parthiban.Veerasooran@microchip.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 17:37:51 -0700 (PDT) > + oa-cps: > + maxItems: 1 > + description: > + Chunk Payload Size. Configures the data chunk payload size to 2^N, > + where N is the value of this bitfield. The minimum possible data > + chunk payload size is 8 bytes or N = 3. The default data chunk > + payload size is 64 bytes, or N = 6. The minimum supported data chunk > + payload size for this MAC-PHY device is indicated in the CPSMIN > + field of the CAPABILITY register. Valid values for this parameter > + are 8, 16, 32 and 64. All other values are reserved. > + > + oa-txcte: > + maxItems: 1 > + description: > + Transmit Cut-Through Enable. When supported by this MAC-PHY device, > + this bit enables the cut-through mode of frame transfer through the > + MAC-PHY device from the SPI host to the network. > + > + oa-rxcte: > + maxItems: 1 > + description: > + Receive Cut-Through Enable. When supported by this MAC-PHY device, > + this bit enables the cut-through mode of frame transfer through the > + MAC-PHY device from the network to the SPI host. > + > + oa-prote: > + maxItems: 1 > + description: > + Control data read/write Protection Enable. When set, all control > + data written to and read from the MAC-PHY will be transferred with > + its complement for detection of bit errors. Device tree described hardware. Its not supposed to be used to describe configuration. So it is not clear to me if any of these are valid in DT. It seems to me, the amount of control transfers should be very small compared to data transfers. So why not just set protection enable to be true? What is the effect of chunk payload size ? Is there a reason to use a lower value than the default 64? I assume smaller sizes make data transfer more expensive, since you need more DMA setup and completion handing etc. An Ethernet driver is allowed to have driver specific private flags. See ethtool(1) --show-priv-flags and --set-priv-flags You could maybe use these to configure cut through? Andrew