Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1068084rdb; Fri, 20 Oct 2023 07:38:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiECijsbNvQB1iQqJmJsdj+BqfKdqtr/rTr82KDtYzYdrZBsNGVoLlapeusUbkQWn0iv20 X-Received: by 2002:a17:90a:94cc:b0:27d:af4:c8b with SMTP id j12-20020a17090a94cc00b0027d0af40c8bmr1996372pjw.36.1697812694820; Fri, 20 Oct 2023 07:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697812694; cv=none; d=google.com; s=arc-20160816; b=r51FDPQeXmZHZupBgFLx1Z9eGrvL+MO2isvcPARqxmj5MpJG7+PQC06BSsrYt+sybV b3YW4Gx/5Tqai89a0xq/nktLlufagGCW5KFJt87uBMlGlst52t/3kmuT13YXll1RBW0t kPouUWbXz9kUVinsE1WZ3yCvIg+fyTsnUYdbOtI7CVAGj2w1UDNZJyAeZYMkhIc2rWyK WKUkghyBk11/t17mraFLh2FhWg38eTinUF/jSzIgbb3nzeTAAzzkA8J6Rbd8v9CrEu1/ nc5RN3jzTdfD5x44L3DHsZu+tTDS7tOr4XwiVXcuRvVkKMI8nmDMSileapqKwDar48vo YLuQ== 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=pjBwNWpR8uoTt7yL2JwXrNyMkZDaAsBp9vs5MsXaXcU=; fh=Xs23xU3j+bkTLBHyjgV9Zbrdh6QexKatpobjw7kLhVI=; b=LXSYnIeisACQ+cwE6BcZCOyLFmzwx45mSxGV/tuNPuNGHTNkMCGsB+UHGg+dV8QsY5 /1PveOpR4rpG7mDrxlPUbB3nP9YhWCMnnl9ff1ShoIiaiLqphsTAD3BA1oWdFfFiEyEQ 0BqXHXr0nJ14kMy+Viv0M9puaQnMNvwPjcON3u6+npGGhwODnF2vEhSAwvSkgXb+ffbx GMxBkm9OUJwweEnTNt8kiigFRM5bJHC1PfdCuvn0tErMtmqZ5T8rCh9Iyo4exOXtLdaD U2DfIbCObI4fg4mYVz9UtwAmElBpBAE/oOcG6JqZwKkTC9JNPlP9Y0oFsrMVgQnl4J96 +c/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OTQMGTIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id mg12-20020a17090b370c00b0027652755c21si1982990pjb.142.2023.10.20.07.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OTQMGTIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 67AB782999E7; Fri, 20 Oct 2023 07:38:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377562AbjJTOiH (ORCPT + 99 others); Fri, 20 Oct 2023 10:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377527AbjJTOiF (ORCPT ); Fri, 20 Oct 2023 10:38:05 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED9B114; Fri, 20 Oct 2023 07:38:04 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53e08b60febso1326716a12.1; Fri, 20 Oct 2023 07:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697812682; x=1698417482; darn=vger.kernel.org; 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=pjBwNWpR8uoTt7yL2JwXrNyMkZDaAsBp9vs5MsXaXcU=; b=OTQMGTIzrAWeHA4Fbnq8BJzSAj/+kqztQ30eJsy63bozcry7GpvrrjUqYhj6ouDcRi WP/YTCeXDcoNhN1hyyyw96eh+aXJfNpEJzAUH+F6/7TgtXHiXL0F8gaADmmCqjSk2XHK e8PKsOwW9q6e5r8KDLdegvnr5faM5GT7MXlGZU0ZxG/bzbRFPmXg4brl9g0kEwuNMpb/ cCDYlYgRUJ/KMGmqb3Jm8P/Xt11rwxgRF4rFFF4uXjFAm+3P9caVFc9TIpNaSSG9uajR qFq9xUy9vTRcf6V5BqxWvnCT081TwyklRR+MBNDw7hthsqX/OguyWvpFvfcWpGuKwTRu L2Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697812682; x=1698417482; 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=pjBwNWpR8uoTt7yL2JwXrNyMkZDaAsBp9vs5MsXaXcU=; b=slkk5MMg3mFxzVB88eyHLg5ob0MUrOYfBAOFGiYNqWPUwcqax/3EgdFnkJy/MR+TGb M+3jsHo99xuKdJKrR18VNCMfn0GsYPygDsSTa6aUUUpEaj8yt2ICpI83RLyQHS7HRvJ2 KU481Zuf+npoNDX363I6QUhepezKNSTN7GWnJw7VsaIEZPVztz74iNp5gGKiHm/hW/MF GXxvGK13O65+PKGH54kyCewYEm4uorzM4xRP+Ipnc/Qk+d0BgtEnwzOZQdYs4tu4ZLEt beZV0LMvFd1LmlyzAoAWvcsekTZC0oWvUOgPvMkz4QChXurPoodOCqxGIk2w+CY+yg0V BtXw== X-Gm-Message-State: AOJu0Yz4EDwdfpOPrE1R9AaUsFhk3equDDsIE2MJ//GvwvEQF/HJODz6 o7HF6GO2SK+pZi+nH1/aTxQ= X-Received: by 2002:a05:6402:518e:b0:53e:332e:3e03 with SMTP id q14-20020a056402518e00b0053e332e3e03mr1923675edd.4.1697812682378; Fri, 20 Oct 2023 07:38:02 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id s14-20020a05640217ce00b0053e625da9absm1565214edy.41.2023.10.20.07.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:38:02 -0700 (PDT) Date: Fri, 20 Oct 2023 17:37:59 +0300 From: Vladimir Oltean To: Ante Knezic Cc: netdev@vger.kernel.org, woojung.huh@microchip.com, andrew@lunn.ch, f.fainelli@gmail.com, 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, marex@denx.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, o.rempel@pengutronix.de Subject: Re: [PATCH net-next v4 2/2] net: dsa: microchip: add property to select internal RMII reference clock Message-ID: <20231020143759.eknrcfbztrc543mm@skbuf> References: <492ba34018bd5035bcc33402746df121df172f73.1697811160.git.ante.knezic@helmholz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492ba34018bd5035bcc33402746df121df172f73.1697811160.git.ante.knezic@helmholz.de> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:38:12 -0700 (PDT) On Fri, Oct 20, 2023 at 04:25:04PM +0200, Ante Knezic wrote: > +static void ksz88x3_config_rmii_clk(struct ksz_device *dev) > +{ > + bool rmii_clk_internal; > + > + if (!ksz_is_ksz88x3(dev)) > + return; > + > + rmii_clk_internal = of_property_read_bool(dev->dev->of_node, > + "microchip,rmii-clk-internal"); > + > + ksz_cfg(dev, KSZ88X3_REG_FVID_AND_HOST_MODE, > + KSZ88X3_PORT3_RMII_CLK_INTERNAL, rmii_clk_internal); > +} Sorry, I didn't realize on v3 that you didn't completely apply my feedback on v2. Can "microchip,rmii-clk-internal" be a port device tree property? You have indeed moved its parsing to port code, but it is still located directly under the switch node in the device tree. I'm thinking that if this property was also applicable to other switches with multiple RMII ports, the setting would be per port rather than global.