Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp697663rdh; Thu, 26 Oct 2023 13:07:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEt+VaPLC9A9U5Oa1E+sCO8QEfcnFejBp8myy3T2YfBJ15iVIWVPU7aAQ88N0VnFTkrl6xL X-Received: by 2002:a81:4313:0:b0:5a7:af97:c787 with SMTP id q19-20020a814313000000b005a7af97c787mr534689ywa.11.1698350821500; Thu, 26 Oct 2023 13:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698350821; cv=none; d=google.com; s=arc-20160816; b=pz/x76Rs1sOfRJQx+U6qEKhPu88qmwAQjK3DvjEe3xZvVgGuGJG3RRRczZYgZh7z1u kzzpIYmvm5rgk1S1Dtwsp1lko+3YGBHNL2G/a7WPzgajHHmnJhD9o8tDzBs2sGUxL2Cr cRlP8qeQ9R8371rtUkQ8kom4nsHet7Mp4bEsVTVqi35FMD17nhQ6YV/VtmBPTL6QuLD1 DyXAbVLAHTAfqu5cK4cPCVyeLyHRTIIPAUIoW/P2qTBgPENbaLRq8Fe6vXCCHB5V67xO xO2+UdnWoSocv270TY/HAoygs17HuSYcppFd1yGzztHPAKGyF03DESw6I81opY4ixg5o 2/QQ== 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=H+x7KSFCuyoVLXZIAzbFV9Xg0+lArjXJ8IqhdbCVoFM=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=yqowI/q7L57b4gdRKtcbYgW0/NYWdFZCMWemP84DbNZLD/8uaN+6xjb+GjlWs8uTla Slk0s1hlBTNQcisTy+CIJDXj4cupEWg/tGwgDcLkiAmc13uWaGeZm6bSGr1izt5AldNp t2qcMZJIxNLxSAL+a+/oZIK9Zx4wE5T4X0PcG6ckpcdW95VncKoGTLr97VW4x3/i3Y+Z D2+NdLrjshN3L+rpMVDQFUcBOpTkDysg/MgHRmrbLjkwjvT3iEQ+o796vGAO+E1VA1Td 904IN23rfcz9EgiH73HUzTQill38Bvk1EaR6pGUsNbfjAYGK92YMuZPJzWadY+hTrgDT O3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=48YEcNME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f129-20020a0dc387000000b005a7aef2e19dsi74563ywd.156.2023.10.26.13.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 13:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=48YEcNME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 743728292BDF; Thu, 26 Oct 2023 13:06:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231861AbjJZUGx (ORCPT + 99 others); Thu, 26 Oct 2023 16:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231546AbjJZUGv (ORCPT ); Thu, 26 Oct 2023 16:06:51 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34E9129; Thu, 26 Oct 2023 13:06:49 -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=H+x7KSFCuyoVLXZIAzbFV9Xg0+lArjXJ8IqhdbCVoFM=; b=48YEcNME9rmeMScPY9mah6GKwW zIbJ0k6hQjOUpgS1q4Ro2dylENYfj3K1HBvLSpMWttzxRow3uULdMrlaAdnqCsUldcFnfDMDlLAzq OasZQoR0VMSLiZFaU6iJYbBdxav3qiFe0ASgqmIVCGIRjczgRgj6EmzKYKLyLtI1j3oI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qw6cq-000HHJ-C1; Thu, 26 Oct 2023 22:06:40 +0200 Date: Thu, 26 Oct 2023 22:06:40 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com 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 3/9] net: ethernet: oa_tc6: implement OA TC6 configuration function Message-ID: <7b3179e2-ac53-497e-94c8-ac364f5b47c6@lunn.ch> References: <20231023154649.45931-1-Parthiban.Veerasooran@microchip.com> <20231023154649.45931-4-Parthiban.Veerasooran@microchip.com> <423e0b42-a75e-4104-b445-7d9ff0991acf@lunn.ch> <97872e83-1490-4f1a-81ff-3f7692571dd1@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97872e83-1490-4f1a-81ff-3f7692571dd1@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 13:06:58 -0700 (PDT) > >> -struct oa_tc6 *oa_tc6_init(struct spi_device *spi, bool prote) > >> +struct oa_tc6 *oa_tc6_init(struct spi_device *spi) > > > > Was there a reason to have prote initially, and then remove it here? > The reason is, control communication uses "protect". But in the first > patch there was no dt used. Later in this patch, dt used for all the > configuration parameters and this also part of that. That's why removed > and moved this to dt configuration. > > What's your opinion? shall I keep as it is like this? or remove the > protect in the first two patches and introduce in this patch? It will actually depend on what goes into the DT binding. If using protections costs very little, i would just hard code it on. Maybe you can run some iperf tests and see if it makes a measurable difference. How fast an SPI bus are you using on your development board? If you have a 50Mbps SPI bus, it does not even matter, since the media bandwidth is just 10Mbps. Andrew