Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3119630rwd; Mon, 22 May 2023 08:56:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56apxsoxYiSm/Bvw5ekLu32fGHE3LrFYCKRKyMu4PeJSlsYr0aarZ9xchCFFzu1QSeRLua X-Received: by 2002:a05:6a00:1816:b0:64c:ef3a:407f with SMTP id y22-20020a056a00181600b0064cef3a407fmr17176227pfa.29.1684770987678; Mon, 22 May 2023 08:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684770987; cv=none; d=google.com; s=arc-20160816; b=Uq6Vdwbw22lq7ar9qPe5ezpsO9aY4PXRGuovoCpKwfAQKcW6Mb1sxk1fxZXrU4LEfd wT3ElwcOr9v0F0yCkbxoc8QGFxCbWfJoufqSPqivtLgRfWKbfh/8KG0k0c0R3GYLGEi4 R/Yb6biah3TTSL2Fbu+P65z+xSbyy7SsiRWMLgT8+3AVjnG9plFI8mlmawhnj3ieHHtF 0uIlA1HlYmLTFmfOSLb4zHOZVzYlORS3yBmmoAg/DBSnSwTXacGhSCj4eabuFH2HlCGg g11hJGDNmbEkbFTLbOixoJHyCIrxEhYOv6rhSLtqTZyDyEYqdvIJzdNAWlHo0JChSjCq 1RYg== 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=R2uvdvik+ZWgrMacuWa8N+oGUBZ4UqdxP/XkyU0vVCU=; b=jHnMRx6G+FBxyb8dTS22SEKhCAryCR9BH2DNUfl+U2lldKjCryus9hBVuPnZXdekHp PWMAcN10Dv2+EJ6TlrVlLed7CytYMGZ/pg6pM0olPvVfG8r5Kr1R5qLozbsT/JkZGzzD G+6MtdNT71sbDyZHDj0bk0E2Z25bZxdYMdvNIFzXm4pUfUMcc3046Lg9BMTZrykFtt2v RwcljCRtfPBfd92MZxM+FyMAOWDmpGECYFzDUgBHrBejjN/6ojC3mOa1ZPNKZm7wSxCI 5m7MmPhI5Np++QxBwjR86xQHgSCohZpwstXpa9HReOe9TT1oVJWMqBOrcVcoshxyypI4 bPIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U2JdCWOl; 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 e2-20020aa79802000000b0063b54679d0dsi4964859pfl.44.2023.05.22.08.56.14; Mon, 22 May 2023 08:56:27 -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=U2JdCWOl; 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 S234225AbjEVPmY (ORCPT + 99 others); Mon, 22 May 2023 11:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjEVPmW (ORCPT ); Mon, 22 May 2023 11:42:22 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914F3BB; Mon, 22 May 2023 08:42:21 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-96f683e8855so542302166b.2; Mon, 22 May 2023 08:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684770140; x=1687362140; 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=R2uvdvik+ZWgrMacuWa8N+oGUBZ4UqdxP/XkyU0vVCU=; b=U2JdCWOlAEnxMrpCk0ohuQN/dmFIlp+/a2HFjzth/IhAI4ofWxOMTwC8R/sAE9Nry0 Mw5JFqba8dRi6JgL65PToml4YMSUQnogCWk8wny9+eHDbeJ5YivWA6p5VWJS1TJA9TIb DHUvMOMfbDOnvA/Tj0G+Jpc+3k6TQ0j7y//VvW9+oCMGvjwclp34566ocC/nwPxRicGu xWYl58sZ4o1xRR/5+GNcQB4tAmmnFkPr9mHS5jlHrVePZxI30LJ2qJcHPkBDjE2sUfbn DNtI91EIfZMR9kxC/I3SW1XTDbYRGJ/c8v9DMmbGKy/o8wyhQ/sgeHWFmxOnDx/gM+vl TtSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684770140; x=1687362140; 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=R2uvdvik+ZWgrMacuWa8N+oGUBZ4UqdxP/XkyU0vVCU=; b=GcN4tqFre8gdgc+t6mXHNq4bm82yTXZSRsjt2BGC+phNoT/YYPyGDVQWo6SExBdNAk Mswd+XtqoUGw6JTTZ+wQ+40GlBVY+4E7V9W7Dive5aJi3zXGGtpOYbfC8x5WDvUx0Msb ZzOm8HBHKBboB/Q1F1Bewv5syIIc+Gds7h0QLrEg8Sm1lgZgvxfwpm+BfRkUrp1pxU9H cL5JWJT52OiXQCXpc3b7WPz4fahk4P+NRN9iNyx+4uiM1qR9b4pGziRzCBmPovDspV8/ ZWql6gopydoJaoxPkTpm+FNi1t5AaKTG89rQtVktyp7Ef5Vl/+UuKcHFZdnona0Bbux2 Vkyg== X-Gm-Message-State: AC+VfDwZn0gGbYZNIsLuL26Id0gyC7I3XoPjgKrDbGJUsW5cMc9Tn8st 0L4R8/0rBJUTYtSblngxtzk= X-Received: by 2002:a17:907:2da7:b0:970:10a9:3ca8 with SMTP id gt39-20020a1709072da700b0097010a93ca8mr1576740ejc.22.1684770139610; Mon, 22 May 2023 08:42:19 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id w20-20020a170907271400b0096a16761ab4sm3279674ejk.144.2023.05.22.08.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 08:42:19 -0700 (PDT) Date: Mon, 22 May 2023 18:42:17 +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: <20230522154217.ganjnt2bng5wxng6@skbuf> References: <20230520160603.32458-1-david.epping@missinglinkelectronics.com> <20230520160603.32458-4-david.epping@missinglinkelectronics.com> <20230521134356.ar3itavhdypnvasc@skbuf> <20230521161650.GC2208@nucnuc.mle> <20230522095833.otk2nv24plmvarpt@skbuf> <20230522140057.GB18381@nucnuc.mle> <20230522151104.clf3lmsqdndihsvo@skbuf> <20230522152221.GA21090@nucnuc.mle> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522152221.GA21090@nucnuc.mle> 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 Mon, May 22, 2023 at 05:22:21PM +0200, David Epping wrote: > > > Also we don't want to enable for > > > all PHY types, and the differentiation is already available at the > > > caller. I would thus opt for a separate function and fewer conditional > > > statements. > > > > I don't understand this. We don't? For what PHY types don't we want to > > enable the RX_CLK? > > I meant all PHYs using vsc85xx_rgmii_set_skews() via vsc8584_config_init(). Aha. By "PHY types" I thought you mean "PHY interface types" like RGMII/GMII/MII, not PHY device models. > As you pointed out they don't have a clear definition of what bit 11 means > for them. And I wasn't suggesting to make bit 11 part of the modified "mask" for them. > But we can easily differentiate using the condition you suggested. > I'll do that for the new patch version. Sounds good, thanks.