Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp278118lqp; Wed, 22 May 2024 04:35:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU86EJcwW0r5Ed3ubXL6D2KYjTuCuNW69fZprNJlgOgMAqXA21EfVN33NAKiRi/dl1abqz9AJh5RkR4u9xk4YI6zir/ISRT7U2hSQqgyg== X-Google-Smtp-Source: AGHT+IFTKxysfWsJHSW9KUTQgrlcbFzI3zGDQ6uv7eblB4dh5yPWcjh1RIidxL3fn0RtpKZCkTPz X-Received: by 2002:a50:ec88:0:b0:578:3335:6e88 with SMTP id 4fb4d7f45d1cf-57833356f5dmr1010234a12.0.1716377700834; Wed, 22 May 2024 04:35:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716377700; cv=pass; d=google.com; s=arc-20160816; b=Am1NpjTV4PNg80e9O8SUDINymc/kM5qghhh2XmIc3+zVPaK4+Vc1InhwJAcv9DTGqI wR4KeuY+RpChcixCubhdwzabTqZhBJkMcKYUwPL1RGWwFkX72mkLtyABxHhHK+P1SPTL QUr9SIDZ6jKD92zmWQIwezQyGroRe81BOcPE5mS4XHmhdnpA40L33NV84A1Mdhd8U9zp ALwDOtE6RH5B8hVpzIshAge5t9uRT/sR0dHcpnpZj1VupY2Wt7BhIjPCpND6e7OwjwxP hVxzeQqZPHb9a/KJsx+ckLZga7XS0q++hhezuW0xoSrXQBIIwV0MHNbfo1e/olXLSuS/ MPJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=jHXDFS8jE10MvO3dqqe8a2lzAyJl7YmuTURucoFb3UU=; fh=Ca+hkUv7OKAgADOE9uOuI2TiXWsg+DFWaNeAQf4Oa9I=; b=O14icMFqXRtcpodsZfirQihUM7TiYi0xkSgaNZnXmoKgAMEri8XvvMCfLzmb5lXcLj ow1jOJwZDLP20GV6G1EYL4/uyD4FwbgewWDFnInIAzT+5Mwlv3S5YtbxXCB/3PF9YEpc cwX41cSLAQBwMw8hIVCZZjT2ZFmERdQ+JKWK6nVAbAcWfTqSqfvZhCiIr936RWNWCLB8 MF6sLtwLCWpg9c3LnClWUb5QA/HY3nU+XOsP+RuaogmmWzoVizSsqk+EZPwq5WkWFQKw tI7yOqb+bsmkRvZ3qa7VF0X6bmJ5gnvJPDFsopyq3oG8yU4x4yGJ9uUpBZKaxXn5kNf8 VgRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gk3ZfjmA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-186146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57823a80806si1677637a12.201.2024.05.22.04.35.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gk3ZfjmA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-186146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8A7E91F22EC7 for ; Wed, 22 May 2024 11:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF15382D64; Wed, 22 May 2024 11:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gk3ZfjmA" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDDF956B72; Wed, 22 May 2024 11:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377688; cv=none; b=RGMKwCUcjdQhiQoxwhckNEmppjXvvdRpfDZbjzJtANbbACXrm42mGYumcSrE6IeeiOHTjsjh+ZYBDmvgyaNLfTLZrDE3IR0FZy7EEu4xKK7mbWGgKv3PMqWcbZrmAoXc9h/rpIfGYkdSCavT2JjCBQcmj4lh7QHkfsd7AjcP7xE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377688; c=relaxed/simple; bh=SqZv+J0FOQDs0+Dw6WcXgcuK2MUV7Z4FZPlHttKhaq0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J3XSgyACU7WD7BJeho6P41VcaQx8EKyewb/xa9yDBLcOgxj4coST/NUWsfnCDiTzTtatJ+yfrYuH2n1dH+tMbot4sZYCG2i7tSIqwY7hfMsahaZIv2HQsVjlAPopR42jqjZVBte2NVOP2/7/9mJxF+OK1NFE8m0QJ84TBXZXilo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gk3ZfjmA; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716377687; x=1747913687; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SqZv+J0FOQDs0+Dw6WcXgcuK2MUV7Z4FZPlHttKhaq0=; b=gk3ZfjmA4x1NHT24yb7pw43BdE78t67e0fQU0PofxWvqyZJo33Yo9NAl xpqficiV+SG5HrSWbxOB/vsUC1sEG9DjRmWMEtRG4DCHZ7k4HVbcgS4Gp SKlGlRbFXOVXrO+JYJNiMc2Si3TiIJbrfb2QEW7shwYQ8eL9+lHLvfG/U F5mP/KVmrgO0GlOqnGNRTn+qVkNiYU8ZLisdyE5APicoAEw8rC8rzUBQN ps/ipk9vSHi/mjFhEctH77ngnnjkeAwXNRPIIwXVv6b8bqfs8zsEmwBwQ kUcf+GDDyDUw7DNqNG4iOlZQd5oU/iD6pLaISqifWT43w+SloKBpjpbFN A==; X-CSE-ConnectionGUID: 96KBdVvWQpuCP0dbYht1WQ== X-CSE-MsgGUID: hysNcxrITaGWbnG3Oc0heA== X-IronPort-AV: E=McAfee;i="6600,9927,11079"; a="16450062" X-IronPort-AV: E=Sophos;i="6.08,179,1712646000"; d="scan'208";a="16450062" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2024 04:34:46 -0700 X-CSE-ConnectionGUID: K5DYVZXATbK33baoP3EKVA== X-CSE-MsgGUID: tBt9SnjkQxyCPbbg6PBdMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,179,1712646000"; d="scan'208";a="37841772" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2024 04:34:43 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s9kEy-00000009xO1-2DqT; Wed, 22 May 2024 14:34:40 +0300 Date: Wed, 22 May 2024 14:34:40 +0300 From: Andy Shevchenko To: Javier Carrasco Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Daniel Scally , Heikki Krogerus , Sakari Ailus , Jean Delvare , Guenter Roeck , Antoniu Miclaus , Jonathan Cameron , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH 1/2] device property: introduce fwnode_for_each_available_child_node_scoped() Message-ID: References: <20240522-fwnode_for_each_available_child_node_scoped-v1-0-1188b0da12dc@gmail.com> <20240522-fwnode_for_each_available_child_node_scoped-v1-1-1188b0da12dc@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240522-fwnode_for_each_available_child_node_scoped-v1-1-1188b0da12dc@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, May 22, 2024 at 11:18:07AM +0200, Javier Carrasco wrote: > Add a scoped version of fwnode_for_each_available_child_node() following > the approach recently taken for other loops that handle child nodes like > for_each_child_of_node_scoped() or device_for_each_child_node_scoped(), > which are based on the __free() auto cleanup handler to remove the need > for fwnode_handle_put() on early loop exits. OK as long as we have users. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko