Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4860373rdb; Tue, 12 Dec 2023 11:13:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKttVx7tF4LSLNCoEL/HaRTtMSmFp6m6mabi7LrSF0mLH+22UPjQ/dTGMy79aA7nrNNA3q X-Received: by 2002:aa7:8586:0:b0:6ce:f651:283f with SMTP id w6-20020aa78586000000b006cef651283fmr2444171pfn.25.1702408414762; Tue, 12 Dec 2023 11:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702408414; cv=none; d=google.com; s=arc-20160816; b=MUVt2ZOr6kdd7rTUf4pZDtk/NnEP3DK9klKz8gOaWjhmGkRcsp2tkPLpO1KvE4qax2 pfUzZQG6PUyx9HB4qyHrGSQEd4kACqoKsO/8hGmdiHKvcay3xBkuasW4e35UjYLUnsI1 4nWkWxjMnJUxPuLICk4gupdN7OFbuHYLGEnZAQJvAViDCXOjORjr6fj3c41ja5sG8RoS Vvk4ipgZpdjtDXj+DRYYE0qe3X8ig5YhP6qVDJAFmdMW7sctKHJDV9BRuhUYO7mrV4bP 4novEorcYlYsBRDTEifyTPTTeoJGZbWMr054bVqc4oyEMPNdkU76PE4zLIK2KuJiJeqs 2WeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qpEUckSGc7ggePcRYae27HGr8y3eNljZxImsxdDOJIM=; fh=rPdNh8GFVy3eQk+8Ai4sqjLp00OhxaeL7ucMcBj7j4c=; b=YlZAdp7JVt4Me7UKAbCBm+VyOn6FDtY8XDiB74/OdnIgKuUySaaU+JcBwV/U8zQ4p/ 1wPPfCf1BEAhaqLtEp+QDfDad7ZLubtRewslFOm482tJt1JiwC/RBrdB7P7i1l5JJm45 v1YcMII4kdv23YbK5FiOknluG4bZAWirRxNyxb6jwFZhenjO27qLkqzD0zB5EyFBdBU1 A3uAD7cib14fbTafgEguJKUMMDsywQXtfNOWI8e+WW9MOJO4XHeV+WubYGgsA6ryyF7/ xYhx9UG05CFJJv1M+OPCfBGfe+p/Ls3IwHdbQePV0aKtrQ6/KkhAEwfT5gV4S1ZHkM/o SoOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zxKdCh8u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s42-20020a056a0017aa00b006cec77b95a3si8137473pfg.279.2023.12.12.11.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 11:13:34 -0800 (PST) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zxKdCh8u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 337EC804C571; Tue, 12 Dec 2023 11:13:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235308AbjLLTNS (ORCPT + 99 others); Tue, 12 Dec 2023 14:13:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235134AbjLLTNH (ORCPT ); Tue, 12 Dec 2023 14:13:07 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECB4127; Tue, 12 Dec 2023 11:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qpEUckSGc7ggePcRYae27HGr8y3eNljZxImsxdDOJIM=; b=zxKdCh8uTLT2S58p+CI+1L4rla qhxaieC+LkURfKvqOsW533AvoCBQudLWklzyAQjmzt72gaNJlIlJDzml6Eakm57Izb7tbm7ADejfu DJK8mFr6OC+uhPsqG1JIwX2LlmVvFhNwwL94MIAlO0rlpXC+uUJQffyHGMdVq+Yd7Ng86NWPUZWau lb2Jh+iAfbYC+qchT4gxwL5UP61hYUHYzt1SwxjY+oNPhIfLW1rofLsdf21Dhun2XEk8lYbGuiXiC V0Rz7vhyoP9G9cG7a54bRODE/bWXZXXGse+dcRlM+Up9GMTDRPkH9/z6epERJTl2188PkBlM0abG4 bepoJFdg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51180) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rD8BW-0007Ib-0t; Tue, 12 Dec 2023 19:12:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rD8BX-0000hC-Kq; Tue, 12 Dec 2023 19:12:51 +0000 Date: Tue, 12 Dec 2023 19:12:51 +0000 From: "Russell King (Oracle)" To: Maxime Chevallier Cc: Luo Jie , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, 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, andrew@lunn.ch, hkallweit1@gmail.com, robert.marko@sartura.hr, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com Subject: Re: [PATCH v2 3/5] net: mdio: ipq4019: configure CMN PLL clock for ipq5332 Message-ID: References: <20231212115151.20016-1-quic_luoj@quicinc.com> <20231212115151.20016-4-quic_luoj@quicinc.com> <20231212135417.67ece4d0@device.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212135417.67ece4d0@device.home> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Tue, 12 Dec 2023 11:13:32 -0800 (PST) On Tue, Dec 12, 2023 at 01:54:17PM +0100, Maxime Chevallier wrote: > Hello, > > I have some more minor comments for yoi :) > > On Tue, 12 Dec 2023 19:51:48 +0800 > Luo Jie wrote: > > + /* The CMN block resource is for providing clock source to ethernet, > > + * which can be optionally configured on the platform ipq9574 and > > + * ipq5332. > > + */ > > + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cmn_blk"); > > + if (res) { > > + priv->cmn_membase = devm_ioremap_resource(&pdev->dev, res); > > + if (IS_ERR(priv->cmn_membase)) > > + return PTR_ERR(priv->cmn_membase); > > + } > > + > > And here you can simplify a bit by using > devm_platform_ioremap_resource_byname() Not if the resource is optional. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!