Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1167728rwd; Thu, 25 May 2023 08:52:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ffdd5EYoBST146dPCPE1r0GiodBSoX9CjSRVvDz8lxGRl3uIXH9o1mY61aI0PKnd6E1AJ X-Received: by 2002:a17:902:b586:b0:1ad:e198:c4fc with SMTP id a6-20020a170902b58600b001ade198c4fcmr1964413pls.54.1685029956912; Thu, 25 May 2023 08:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685029956; cv=none; d=google.com; s=arc-20160816; b=bbCCNJsy/QyA5mrLkr9MU3Vm6Msl1scRRGXB1INQnpDwxLFNOoFiB+wBOkPAvwHVke cOsAtck4+OjxvZPpvH8Ok3CzR/DzByiktW7U69cWQhl4oAGD24Fmpqv0U0Eof7KpQJVr YtEahktr75Yi1464JtqfqLeg+Xg/VwrDp4H5Uvq+SxJQTPTGehnl/D5KJokyOdZixK8P 0Waz1lo/o0cKPvJ2XuxTOpDb4XdSsBvGQcoo8gSpOmtctMYFy4wI+zTSPAnDTmKt1qSa muhBbDMaaaYADWgpzyW4levvyVTkUneMuT8PGDm6gfrOwJDQkmVVVxYdzklnHKePKmHw xw6w== 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=9zPZPSkgvuyotoAA/KTUJbfPBjL1vH6aa8V0io941jQ=; b=xJM9NX3QxZYmxuf71VHEO3vyKE4BDaTxm0DPQzNfwEjirpVfR4uP19KRfi/DAfu5IN el6cYC6jMWTN2Pt7gYz+TdNXgdAdrRkQ9R2YfqmADkrwF1OxqTUnfZONWR2ZdjusxlRg FRPtTPSw2PJe2l7AU6K7i+pAXcuix9pcKsp3SwC32nX7iRepmeNVsGj+8vnlahw5/Pg+ WVaFTKVQWGYuU9gZdVugMAmoT2mEs4KuqIASDmCmtgsbT+ZQWSyPd0biKVmcl8D8e3kG iNCpqGSFSeFrYQxrVGvN5NOTTNktYuIY5TNIkyv/HBqhEGtTBobabhW+acJZ4pc2avW5 iwSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LDOqAV1r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020a170902760f00b001a9b29b675csi723893pll.317.2023.05.25.08.52.21; Thu, 25 May 2023 08:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LDOqAV1r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241245AbjEYPvJ (ORCPT + 99 others); Thu, 25 May 2023 11:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241186AbjEYPun (ORCPT ); Thu, 25 May 2023 11:50:43 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD32D10B; Thu, 25 May 2023 08:50:39 -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=9zPZPSkgvuyotoAA/KTUJbfPBjL1vH6aa8V0io941jQ=; b=LDOqAV1ryRWXbT+F5bkBsxp4rW 3yuiEn6uzp08iegx29y+n2fARDgg7gwGNPWdd5NKemk6BLw59COhjne3TSxgQlzX8uz9p/vA8cEjm JGrUHYHa6cHUxZRLnwxO++Y2ZYT+dgCF1qHQlpdBarooN9iOFtu6cV1W1kNjvBA7ydYA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q2DEL-00DuN4-UJ; Thu, 25 May 2023 17:50:21 +0200 Date: Thu, 25 May 2023 17:50:21 +0200 From: Andrew Lunn To: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez Cc: Parthiban Veerasooran , hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horatiu.vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [PATCH net-next v3 2/6] net: phy: microchip_t1s: replace read-modify-write code with phy_modify_mmd Message-ID: <99ccdedb-c2c7-4187-9fb4-b2047480e097@lunn.ch> References: <20230524144539.62618-1-Parthiban.Veerasooran@microchip.com> <20230524144539.62618-3-Parthiban.Veerasooran@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This change also invalidates most of the comment. I think this should be > reduced to something along the lines of: > /* HW quirk: Microchip states in the application note (AN1699) for the phy > * that a set of read-modify-write (rmw) operations has to be performed > * on a set of seemingly magic registers. > * The result of these operations is just described as 'optimal performance' > * Microchip gives no explanation as to what these mmd regs do, > * in fact they are marked as reserved in the datasheet.*/ I agree the comments should be reviewed in light of these changes. > > Additionally I don't mind it if you change the tone of the comment. This was brought > up in the sitdown we had, where it was explained from Microchip that > documenting what the reg operations actually does would expose to much > of the internal workings of the chip. They cannot care too much, or the firmware in the PHY would do this where it is all hidden away. Andrew