Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp512755rwd; Sat, 27 May 2023 01:30:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ci4OPPk9NpgZpBrLCLM38cjO6AKYfJjMWPZ3Wric4xRvmL4zcoDcU8gYuRPHs0DLnucz4 X-Received: by 2002:a05:6a00:b8d:b0:64d:5cc5:fa67 with SMTP id g13-20020a056a000b8d00b0064d5cc5fa67mr7968312pfj.17.1685176243833; Sat, 27 May 2023 01:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685176243; cv=none; d=google.com; s=arc-20160816; b=szGkQmuCEAz/UjVS/heToMOV3v8t+IrRcGd07r0vwb2HjaVxiCYF+lh3acDti/yLDu znWQy2uIyM/84KndOEpKRfTBt6JFrrD0bYIYOvrbBa+s3ybmYmeXEBewhp35QApPoqgd KLbdpOb8LgB7tQqRtpKMFX1f1JXK14/ZlIgr6beS/7cP9iDDFc3KCdDT0Tl2Yr/t9Twd hlVb1Wv4H10oUQWa03So5f7fLfunbnZkocXgCYKJLD8LW/NghZNdNdVjlGl45W0VRHgV EpYhE9uYqmhfE4RH29wsbZewb1NV8kLzWuRFzhD5O5lBE6bhWo/zmHsX6HzBQTbnxqcr SEXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=R6OdaKwP7mn+P+CHtQVTxnm69efjnoXsnivXSXcbnbg=; b=PtQwaQs+pCuSJ1sH2STA54y7nAnCATImqZ4qaErxNS0CRqC2HhB6rrmqvPrTUACwcz qTSyMKqnXngDdTMxSI+/QWPhTm1T68S+Rwrx5P6hA9nfMDh44Sqtvd/TnYUSI/Eo49iE UGscNOqAgYyz7fUHdEQdO5eWhnDPQxGyhjlrPxc6NMqxj+JRCZyzbvWpasL7etnkBwE+ hZccIkJLcqR4LBNRZoCLZBl7a7917u8LJuisDtYn30zoPtWuBgjm3nn5Zg4hbzEJ9MVm PrBJrZfpplBiLfd4fO7MR2aI5j0WlPua27AMnsnnL7eseBcYTSi9NynP1qUXi4snZJUM 6KiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fEpdKUPC; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a136-20020a621a8e000000b0064fa153862fsi3276977pfa.113.2023.05.27.01.30.29; Sat, 27 May 2023 01:30:43 -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=@intel.com header.s=Intel header.b=fEpdKUPC; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbjE0I2m (ORCPT + 99 others); Sat, 27 May 2023 04:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjE0I2l (ORCPT ); Sat, 27 May 2023 04:28:41 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9311DDF; Sat, 27 May 2023 01:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685176119; x=1716712119; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m5Dgm34GX4qBJ01nGG2Ddz46agLUsvcgLlnRbhbhx0g=; b=fEpdKUPClII1LWfYhUIrl0gCDzHnwGFMf9rIXp6K3m1c1UQiMS3v06qC 7zV9/usL2RuPGk0t2GHwf39qy+AyqVu53f7icx+8vuD0O4jCsDDZAN+nv fETc3Ufu18gfrYopecnAmhrUjpBVxNuy2Rr2y7Qk9tbe32Ct1BXJ97LCn K9Rh3uR7oS9ClbLgGGKeHwz02kFpTOiIaxdyYt6XYIiLipaRrJ0v90Sgn zpHTk0WZNCpoW3BoIPJesba2VSBuDXUysk+QhIMpj0weH+CI5g2YJditc DfezNi2iv1oevmbdtzuEsZ3FfUFR1NhLPnAaiLnYaQLYE0lLT07PRdrjE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="343876274" X-IronPort-AV: E=Sophos;i="6.00,196,1681196400"; d="scan'208";a="343876274" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2023 01:28:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="879781595" X-IronPort-AV: E=Sophos;i="6.00,196,1681196400"; d="scan'208";a="879781595" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP; 27 May 2023 01:28:36 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q2pHv-000Ipz-0C; Sat, 27 May 2023 11:28:35 +0300 Date: Sat, 27 May 2023 11:28:34 +0300 From: Andy Shevchenko To: Dinh Nguyen Cc: Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, dinguyen@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net Subject: Re: [PATCHv2 3/6] hwmon: (socfpga) Add hardware monitoring support on SoCFPGA platforms Message-ID: References: <20230508212852.8413-1-dinh.nguyen@linux.intel.com> <20230508212852.8413-3-dinh.nguyen@linux.intel.com> <9459547a-0ff9-9972-602d-3098b616602b@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Thu, May 25, 2023 at 04:20:12PM -0500, Dinh Nguyen wrote: > On 5/9/2023 1:57 AM, Krzysztof Kozlowski wrote: > > On 08/05/2023 23:28, dinh.nguyen@linux.intel.com wrote: > > > + for_each_child_of_node(child, grandchild) { > > > + ret = of_property_read_u32(grandchild, "reg", &val); > > > + if (ret) > > > + return dev_err_probe(dev, ret, "missing reg property of %pOF\n", > > > + grandchild); > > Where do you drop child reference? > > Not sure what you mean here? Can you clarify? for_each_child_of_node() bumps a reference of the current (iterator) node, when the loop is interrupted it's a user (of for_each macro) responsibility to drop it. -- With Best Regards, Andy Shevchenko