Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1800275rwd; Sun, 21 May 2023 06:37:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5w/2ypmFLe75hO4cLJ83ukOLYeteQRJrQtKX2uAiG2M26HFt+eOW8VEwFsmkUzE5U0BShQ X-Received: by 2002:a17:90a:fa8f:b0:24e:3b69:a87f with SMTP id cu15-20020a17090afa8f00b0024e3b69a87fmr7983619pjb.25.1684676229693; Sun, 21 May 2023 06:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684676229; cv=none; d=google.com; s=arc-20160816; b=d8kp6+oOmvx+4JBvERQ316IMyH1bEpU6R6J7Nbf8rmShbG9f1DDWa7ZVfZuuwkFWql ekFuy/iicwgO462z1F6LUAWfKmBH+4X65MBy5SN3iqp8Ng+LbyLmoBalUntXD2Kw1V4Y jakSu2KVmGvMcXLgUuKnERu43b8RohzlRSa66xuqivHHApuRk9GV+4khyjcWbKCoZOsl GExAiqQJ0I/k+4N8rbmz2Ttsbao+5U/TxjVvPmFFsdKnfijdxdGWWUtgK+HHCdNNI7L7 Ns+rCUSA0rQT5hEyLg9TrY4JCQqQ3lILw5EtCnSy+pUFTrZOZoMRBlpT33fDQ8NXr92o IQnQ== 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=8iBg6fZcsLrOWyeykX+56jGb75hNNV7FJu88HNfeKOU=; b=kvPBL+7bfOqUUkXYVHUzdhwmg7WpR1Dno99O16mF5Tre44tI8EHZ8i0pZYms4kPbTk tEyQzGZDkAupl7f9ESUCSYFNjLgjlEPPSVURs2XDsjNPHcvTGvMvST84n1PvNQNJ7Jih EnZ2RHfQHd6S2JxzWUwN+cfCl1tcvp7Mtpp7fJlwTjjsFJ4D/Jtf6XuoyKXUS2FWcApx dpBUxJEddLalo8b/5BYGPuv2gLaykOSv7c6/xFy+BZHgCbnxIr8Bcmtf7aDZhRmuOVAK nMcxF9iDLsQUkC69eFGwR8ILs9QuAFNuitnp73B8YFfD3IK64PJ9BGGAD6a97guQSNZ4 gO3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eLCXHvu+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a17090acf0800b0024bfa14eaaasi3116314pju.51.2023.05.21.06.36.55; Sun, 21 May 2023 06:37:09 -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=@gmail.com header.s=20221208 header.b=eLCXHvu+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjEUNNt (ORCPT + 99 others); Sun, 21 May 2023 09:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjEUNMk (ORCPT ); Sun, 21 May 2023 09:12:40 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D5DD2; Sun, 21 May 2023 06:12:31 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-510d8d7f8eeso8800922a12.0; Sun, 21 May 2023 06:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684674749; x=1687266749; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8iBg6fZcsLrOWyeykX+56jGb75hNNV7FJu88HNfeKOU=; b=eLCXHvu+AUn1UenGQt31AhojUxR6fg3IytThxncsBLzz+958Qx0MEr/oCAi6XSRVTU bBaXK/rwS5gdy2End1Qyqg8DThD7ZMp1KRtfJw3c+lUOocGXyVyK3w27sPfxTHN2/HJS +Uo+s/8ZAQjk+AaNxx4I7MIvOQhqri/C0hV4qNCbkg2UuMYqEZAfsYb0xpdBC4IITexT 31OIDEsgi1xp9iKTG7rXOxqf0IagaK8X2v0bNjdwUMLxI82QaHVlPsAL8kcO0vu7gnlI qaBjQY8WKtTb8wLuMP7fF0Ln56MHHCAFTRxPUIVMH4yfshCFethJEVJGqlASfyTg3vZ0 6VAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684674749; x=1687266749; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8iBg6fZcsLrOWyeykX+56jGb75hNNV7FJu88HNfeKOU=; b=Hgig1A8X73kBkTomp05+zOgynCtIgpJR2RY1/3jllxtjRnw+2ogKdJInGKSpPKibVQ HvHLtp3vC1lfGZ6KPanoVv2WJqAWx9ni5n+eTrT/0DrVuylo1ipMaaVOJP959SbHxZwU sOJgTTNbwTi8HV6p0E3gLZE2XO+7nvsyv8WOpS7hSS0z3eHkyBafc6uU8lecHYw5JI06 0To6k0phwj5nx2FDMubojZijIyoZYiyW5skX7U4lXHTTK6hMzr7CeXyCGoXiV3IgZEf5 7rp89Wm9rhFLMI3z1fV8kOrGxz+WAyA+ZAISoF16ggBI3OtqDLaGr6lcM3KfrzW1/KnO pIDg== X-Gm-Message-State: AC+VfDxpaepITJ/uDe/aIFYHGdBI6N5Jsr8tLsCulMslj9FLQxyeOjPM XpJYMFjJ21L9GYKpI2pxtmU= X-Received: by 2002:aa7:c74c:0:b0:506:bda9:e063 with SMTP id c12-20020aa7c74c000000b00506bda9e063mr5643911eds.16.1684674749177; Sun, 21 May 2023 06:12:29 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id o26-20020a056402039a00b00509d1c6dcefsm1842830edv.13.2023.05.21.06.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 06:12:28 -0700 (PDT) Date: Sun, 21 May 2023 16:12:26 +0300 From: Vladimir Oltean To: David Epping Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net 3/3] net: phy: mscc: enable VSC8501/2 RGMII RX clock Message-ID: <20230521131226.bxk4g5gstprrvngp@skbuf> References: <20230520160603.32458-1-david.epping@missinglinkelectronics.com> <20230520160603.32458-4-david.epping@missinglinkelectronics.com> <20230521123512.3kpy66sjnzj2chie@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230521123512.3kpy66sjnzj2chie@skbuf> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sun, May 21, 2023 at 03:35:12PM +0300, Vladimir Oltean wrote: > Let's resolve that difference before the patches are merged, and write > some correct comments. > > I agree that the datasheet is not clear, but I think that the RX_CLK > output is enabled or not based on the strapping of the RCVRDCLK1 and > RCVRDCLK2 pins. Coincidentally, these are also muxed with PHYADD1 and > PHYADD2, so the default value of RX_CLK_DISABLE might depend on the > PHY address (?!). > > What is your PHY address? Mine are 0x10 and 0x11 for the VSC8502 on my > board. > > Not saying that the patch is wrong or that the resolution should be any > different than it is. Just that it's clear we can't both be right, and > my PHYs clearly work (re-tested just now). > > -- > pw-bot: changes-requested Ah, no, I think the explanation is much simpler. I see the datasheet mentions that "RX_CLK output disable" is a sticky bit, which means it preserves its value across a reset. In my case, it is the U-Boot driver which clears that setting, as part of configuring RGMII delays. https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/net/phy/mscc.c#L1553