Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2601659rdb; Wed, 15 Nov 2023 05:45:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRLPbdydQ34l4Zt5R6ePe7t8brukVtB9TQy13JAsJhBF3aNPaiH62yBJ3EVhGTtIUmkwOf X-Received: by 2002:a05:6a00:8e06:b0:6c4:d311:4cea with SMTP id io6-20020a056a008e0600b006c4d3114ceamr11881047pfb.5.1700055903677; Wed, 15 Nov 2023 05:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700055903; cv=none; d=google.com; s=arc-20160816; b=QuEqGEQXm6DpXlxDhksQKwuuTB3SHi9ihezVgpMOEkOnq8XcJ5tfYFOunPzg/OZ+7e /aWRvggM1m2gB3TjR6BYPwgeE+ZZYr+pq67oLucy1UdZQppIHj7VYInt0n/0KMf1jixA q2Ufd5ykLc+RdH63ejbzbFyrMHRrxzwasfSqxv18YP6bA9Q5dwZBM52AQ/88nSSykm8F LhZH1Jvkp6VJhso+1I3Ir6TMSXFztRLfeLkppTcMcHFfAP6I1dQ32RFIlYnWchwVkUAG SwOzdxAfrq/+WBXYAdcH953wEckzREuHZ4UyGBzeQuuH/4d/0Ar4NF/YH1oEfALWvTFc hiZA== 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=gtHdcKH61L06S8styF2hP6URbouJS+Q9N5ufE6csYpc=; fh=4gpfRGcGnp+CfSXRmR6id0uiB/MqlRnmFc1qe8IoiFE=; b=KDhTxJsoQ7L4NpRT2eMiNlFmDMg8V3tzh22R75TFhoDclOrCg1OKnrq6vpwzKWIT/V COZDTHr9QYKLiF+t90tK4Q5UW0dodTbydhKv9HKC4tAvG4XZa6WwPUBO1VnY2FjDtsMg C0OrWCld62UPC0ATe/m5mtlmtnEnrSYra1DPg/AIqB/CfCeRnNxMQnd64jyZKjvQDfow H7wrQTPgNW2UvvcWWPj55LU6wl1JgMpDCJkPzDRVYn0BeNjY219UfwLZsGlqk9O1eA50 R8kjsRE7povuszl81PT5I1Da3xIB1Sd179qVMiUB4H18ctjVhhRqs719IK3o6gExZMbr abCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UREF5loC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d19-20020a056a00199300b0068fea05ecd7si10346316pfl.164.2023.11.15.05.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:45:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UREF5loC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3513180CA0B5; Wed, 15 Nov 2023 05:45:01 -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 S1343979AbjKONos (ORCPT + 99 others); Wed, 15 Nov 2023 08:44:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343698AbjKONos (ORCPT ); Wed, 15 Nov 2023 08:44:48 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AC499B; Wed, 15 Nov 2023 05:44:44 -0800 (PST) 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=gtHdcKH61L06S8styF2hP6URbouJS+Q9N5ufE6csYpc=; b=UREF5loC4B3svBkFjSgazmXSJT /F42CuDfxkaZK/c992Gr/Bba/NDRaILkogzJ/ZMDChRgKXPorQAa/cPg3+hYc4t05PwXF5B8P/jwJ OLEP0zmjF+jSQ6qtmnNFmmijON2TdoUKqR0AUZ7sCFQ3rPFTWwu+YXWtyNOlkagSbX+0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r3GBy-000F9b-1Y; Wed, 15 Nov 2023 14:44:30 +0100 Date: Wed, 15 Nov 2023 14:44:30 +0100 From: Andrew Lunn To: Luo Jie Cc: 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, hkallweit1@gmail.com, linux@armlinux.org.uk, 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 1/9] net: mdio: ipq4019: increase eth_ldo_rdy for ipq5332 platform Message-ID: References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-2-quic_luoj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115032515.4249-2-quic_luoj@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Wed, 15 Nov 2023 05:45:01 -0800 (PST) > + for (ret = 0; ret < ETH_LDO_RDY_CNT; ret++) { > + if (priv->eth_ldo_rdy[ret]) { > + val = readl(priv->eth_ldo_rdy[ret]); > + val |= BIT(0); > + writel(val, priv->eth_ldo_rdy[ret]); > + fsleep(IPQ_PHY_SET_DELAY_US); > + } Please add a new variable, rather than use ret this way. > + for (ret = 0; ret < ETH_LDO_RDY_CNT; ret++) { > + res = platform_get_resource(pdev, IORESOURCE_MEM, ret + 1); > + if (res) > + priv->eth_ldo_rdy[ret] = devm_ioremap(&pdev->dev, same here. Andrew --- pw-bot: cr