From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 4830326E717; Wed, 24 Sep 2025 07:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699982; cv=none; b=Fa7aD9GrYAxZihPRjTUs4zEFI0Nnt8F7LwKmNgmbWvJqPcfTT5d4HGdAQSHt7D2tHtTfAk3X9eL99fjhQA08K5zRrA6N+0cuxvJrj/7hreeP1fwPCmpEh+EEov9IcIS1DPfaiGo90GXjaJLGTKVG+5MbD/wPf/a5vN2WSjbjH6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699982; c=relaxed/simple; bh=VTnJG0rKo/2WpkQDLq4ioVQABdICcc4+Ec4Y9M9EGQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fZ6tjZjiZwhaSS7CLfQn7dASLhzhLiLAZdLpYr8gqujCl4GZImY0ZSUWIs4G3LZpIfJXf54B2FGnKVz6/sv4l5KwNss1y9jjyN/WQjNPePxGhEd55TIws6Dk6u2/mA+HVbpGHNyKK6CkTc3v4ckqXStiQwp7U4LBDX5LVmlZcjk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SiunuxVv; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SiunuxVv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699980; x=1790235980; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VTnJG0rKo/2WpkQDLq4ioVQABdICcc4+Ec4Y9M9EGQc=; b=SiunuxVvwIx5wKm6/715I+d/juET58nesC3SpNLDNDaiyd5N3nLx8h8C GuA/f/VIY5v269M9jIvrQJmkycbD5iRchqyALEQrdRoWkpcaOTqv8dqkN P6wbS1GH2KE9VwMhLqGBYkxEk4GNOD6+7otBrlnNwxIq617hfUE1zC5x4 MRB2e/e/f64sOdjVtKqz5y11IACVE0bjvqckN2TnPQzaTlk1LMdcVjosY DfqYdmMkgVLEn1r0ylJIuWb1kcXyFbCRPCa+797bukhg7QE5NuPRtvdIm Vkk7GS9mIGC3dJSnaqtsofDs8kaGf0qhO4H+JlxhaQhLiANqnlyxUz+WF Q==; X-CSE-ConnectionGUID: E3ydl5tZQOq3vjhEC6eD0Q== X-CSE-MsgGUID: 7YKxFwPoRCuEKidfrExnTQ== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="72346942" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="72346942" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:14 -0700 X-CSE-ConnectionGUID: JPTGSjhPSfGfYalvmYHYlQ== X-CSE-MsgGUID: UgSjWPDDRnaNqCy21dnkpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="176552707" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:05 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 8B4371201E6; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Hn-26KI; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 01/16] ACPI: property: Make acpi_get_next_subnode() static Date: Wed, 24 Sep 2025 10:45:47 +0300 Message-ID: <20250924074602.266292-2-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" acpi_get_next_subnode() is only used in drivers/acpi/property.c. Remove its prototype from include/linux/acpi.h and make it static. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/acpi/property.c | 5 +++-- include/linux/acpi.h | 10 ---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 436019d96027..5435628c67e7 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1264,8 +1264,9 @@ static int stop_on_next(struct acpi_device *adev, voi= d *data) * @fwnode: Firmware node to find the next child node for. * @child: Handle to one of the device's child nodes or a null handle. */ -struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fw= node, - struct fwnode_handle *child) +static struct fwnode_handle * +acpi_get_next_subnode(const struct fwnode_handle *fwnode, + struct fwnode_handle *child) { struct acpi_device *adev =3D to_acpi_device_node(fwnode); =20 diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 5ff5d99f6ead..703323b9fe0c 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1349,9 +1349,6 @@ acpi_data_add_props(struct acpi_device_data *data, co= nst guid_t *guid, int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *pro= pname, void **valptr); =20 -struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fw= node, - struct fwnode_handle *child); - struct acpi_probe_entry; typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_head= er *, struct acpi_probe_entry *); @@ -1450,13 +1447,6 @@ static inline int acpi_node_prop_get(const struct fw= node_handle *fwnode, return -ENXIO; } =20 -static inline struct fwnode_handle * -acpi_get_next_subnode(const struct fwnode_handle *fwnode, - struct fwnode_handle *child) -{ - return NULL; -} - static inline struct fwnode_handle * acpi_graph_get_next_endpoint(const struct fwnode_handle *fwnode, struct fwnode_handle *prev) --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 CF1E527FB1F; Wed, 24 Sep 2025 07:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699981; cv=none; b=eOcNXkOHRI5ic20zWTlKX5AB8zvknsik1FqewDs6PCpOdOQM85BkgGsozEMFzSZ14Ohu+xsryEg3yeHow/sTPlD0xp7MLy9RS/N/lwHrLefJU9st0JFAF0VbAca/IEG5sQph98+u9gWhx2s/Yf4uddgKSfNbTk8fBpbrmnduuFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699981; c=relaxed/simple; bh=SVJiG61AeCGYEGwMyYhoNXYuyHeGsyQ90cGkNId9RNs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uzWkP64Yl/gHwN5Leu48+oXTON241hRpAtMgnlK5McJb8TsE/6ZYn2j4M5DfWafa1I2ghLBRtPWdeX7M768sYLVwncO5q/iPdZvT2fDtwgd9CnyDO/p0yBR/QEa4/JfkoSK5IyXT/d9eFemG8Wa4maGnEsY/cSrd2OVLS6GA4TQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CnUmOSH7; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CnUmOSH7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699980; x=1790235980; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SVJiG61AeCGYEGwMyYhoNXYuyHeGsyQ90cGkNId9RNs=; b=CnUmOSH7QgjsbWrcH9d7rRxnCnnyile2cA/F3kKnSQAbOc2FMImApZV0 e/O6aZdxfRBPipvCMrsrBMVp/KWtEY3LHifYZgMfNryxCfURk4Wut/vQy ynRoXmRsPeoPQUNGWMxYxtm026xvbUAGsWhM37hAI66xbVQr/nvSFSVK4 IRLT+VZ/yLL8c1CQ4J3BGx7BM6b4JV+D0dQVgll1OSJ/Wp6BQ7xMP19gK iaRfmzPdahbGxpWF+BOtCWZstkYOHWzGu7eOG4Oxm70JlL4RE+/LGWSyu Cvq5JDnQoaMH6dY3q1HJXPa4+N7jQdBKvOguLeX59n5EgsCd+FmFqASLY w==; X-CSE-ConnectionGUID: kOSG/UbgStq465NXsPswYQ== X-CSE-MsgGUID: XHekQQ2ZQ7Sk94SRJliXUQ== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="72346954" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="72346954" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:15 -0700 X-CSE-ConnectionGUID: TbSKI+o5RlmZhcDwedR77A== X-CSE-MsgGUID: 5s/EPqjSRJWLbnHoFkaz3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="176552708" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:05 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 8B5BE1210EB; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Hr-2DCP; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 02/16] ACPI: property: Use ACPI functions in acpi_graph_get_next_endpoint() only Date: Wed, 24 Sep 2025 10:45:48 +0300 Message-ID: <20250924074602.266292-3-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Calling fwnode_get_next_child_node() in ACPI implementation of the fwnode property API is somewhat problematic as the latter is used in the impelementation of the former. Instead of using fwnode_get_next_child_node() in acpi_graph_get_next_endpoint(), call acpi_get_next_subnode() directly instead. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/acpi/property.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 5435628c67e7..3e85900080ac 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1381,7 +1381,7 @@ static struct fwnode_handle *acpi_graph_get_next_endp= oint( =20 if (!prev) { do { - port =3D fwnode_get_next_child_node(fwnode, port); + port =3D acpi_get_next_subnode(fwnode, port); /* * The names of the port nodes begin with "port@" * followed by the number of the port node and they also @@ -1399,13 +1399,13 @@ static struct fwnode_handle *acpi_graph_get_next_en= dpoint( if (!port) return NULL; =20 - endpoint =3D fwnode_get_next_child_node(port, prev); + endpoint =3D acpi_get_next_subnode(port, prev); while (!endpoint) { - port =3D fwnode_get_next_child_node(fwnode, port); + port =3D acpi_get_next_subnode(fwnode, port); if (!port) break; if (is_acpi_graph_node(port, "port")) - endpoint =3D fwnode_get_next_child_node(port, NULL); + endpoint =3D acpi_get_next_subnode(port, NULL); } =20 /* --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 93260A95E; Wed, 24 Sep 2025 07:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699979; cv=none; b=o24iPE9hBAFfFYPF+G4awDiGjtsP4eXzZys/Z1JAUeINsaZDGLoXwbAi92OT5XCLx9ci92EfGPojHaMvJPPhJ996iiOpQJE0Vm6mChvPYqMOXfLzbprwMNdPEKmMigEk0S0YGoH1VzTq+MWbSxfH0Oo3T5fMTKKJ9Je3Yu2nSlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699979; c=relaxed/simple; bh=JvDek3868I+EgXDu4lEVZh0rf97VIgk/Snbhy8YIQcw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mTCbjTBvsB7QIwg7uxKDGqDuDWd98l0CSt4Rt0K1iCBiG3CrPcyiwqOfIB5iYj94TMbzelbm2p7WpuHHp1bjLLNkNi2hNOR4uscmbE1HfQz7gWgP0nkBuhtSfn8B1tUNrXxOEf1ZkAweGhb0yryIBKVndSYGALFOJVdGRUcigLk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cRGsFYix; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cRGsFYix" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699978; x=1790235978; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JvDek3868I+EgXDu4lEVZh0rf97VIgk/Snbhy8YIQcw=; b=cRGsFYix+th60d5bT9j2W5JeUssWOP5kIP2gD5kZlqT6YYx/nF6YbIZx 62tZRhS9uQcSK5WObFq6aH5Q0vS+Tc1Dywe4OzFh+9aO+rxgBNNzGw/No gWgT5laNADXlhamO/1G3EUwXeelV97f/DSLQankUu4Nop2K7e4xhRvp+5 owf8BZjN97gDe6ROCjS7yd3UGRuUcH59HJ5iQVybhkeWkHt1n/IynV1Hb qLHwrklpq2vr9xFMwkxthAyG8QL8v5TNGQVMEbbORkpVb2wYMO7/d45H5 Muf2KNh1Sj3DmfurB0yw7Uy7WraIo/G84bOfekRCXbVPysZw0xHXyH2fh w==; X-CSE-ConnectionGUID: QkFjiIWARxe36aJDpBOpmA== X-CSE-MsgGUID: pjtkPmsURESCjazbaB+b2g== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="72346910" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="72346910" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:14 -0700 X-CSE-ConnectionGUID: CScHHwNbR/K+jJNyCBGC2g== X-CSE-MsgGUID: O001B7FtQBqXhllo8rLSFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="176552705" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:05 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 8EB9D1213E4; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Hv-2IyK; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 03/16] ACPI: property: Rework acpi_graph_get_next_endpoint() Date: Wed, 24 Sep 2025 10:45:49 +0300 Message-ID: <20250924074602.266292-4-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rework the code obtaining the next endpoint in acpi_graph_get_next_endpoint(). The resulting code removes unnecessary contitionals and should be easier to follow. Suggested-by: Andy Shevchenko Signed-off-by: Sakari Ailus --- drivers/acpi/property.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 3e85900080ac..5438592dc136 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1399,14 +1399,15 @@ static struct fwnode_handle *acpi_graph_get_next_en= dpoint( if (!port) return NULL; =20 - endpoint =3D acpi_get_next_subnode(port, prev); - while (!endpoint) { - port =3D acpi_get_next_subnode(fwnode, port); - if (!port) + do { + endpoint =3D acpi_get_next_subnode(port, prev); + if (endpoint) break; + + port =3D acpi_get_next_subnode(fwnode, port); if (is_acpi_graph_node(port, "port")) - endpoint =3D acpi_get_next_subnode(port, NULL); - } + prev =3D NULL; + } while (port); =20 /* * The names of the endpoint nodes begin with "endpoint@" followed by --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 495CA28313B; Wed, 24 Sep 2025 07:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699984; cv=none; b=o5NoIeiokVrs0Byz3SVqbmzZaUZLuFy4lmGLeM5fPtYc+5JlZ68oW63U5nFxtV+Teg3T18qpWDFijCvbt95VNvohAa/fet8vrrmZb7ypbmg94PnbE38B2Yrq8f9GqhawhlPv/pAvGi+gh44XI9RpOeJYWpQW7+Td1f8dAQjMHTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699984; c=relaxed/simple; bh=9gKh4zZHKRjG5O5xZKeZNVKtn+qWdxGPT4mjimC1a7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nD909wt6t52inUMCgmrdXZS13gveTy2n1neIBvpujDdZkxzOmA/lV2746bJNOZV4m40J+SGlgOGwaoyf2MjhQGGzKvTACUDZIWvjeVilXcE24OCi0krDPjZRpbo47cmHhmaHP82tSX/uTjPmd/AjzekUKdsOeoAg2ndE7j8QYtc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FjR/Z1gT; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FjR/Z1gT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699983; x=1790235983; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9gKh4zZHKRjG5O5xZKeZNVKtn+qWdxGPT4mjimC1a7Y=; b=FjR/Z1gTHo8TVIzyIJsxEvFB8JSEGgabG2CRtYGOl7OUGGpGRlYCzH5t WkhwElbOjFfx91+31RwEppx4U+magjJpQjXuLHqBfRWstecORj6iB3wPu 7dTPpklMgL6NLQCh299dViKbob78ZKMf+0g06VGVMlOkuab5ZOWJA7pIk mAcBR4h2ybpjB6rmux14+mvtNJnehmqDKXbik9bNKqiWIxCcs5fwgSdRJ YKAT1UjgFvfa58yKrLjk9Il0Qwlf44XVyZoL7vGCpBYM2V+AazxYBeS93 sz+pog1sX+5ZNWjtYBI0KnI2B1CilHfa/TURebo89vhuG3q96ugH/70rZ w==; X-CSE-ConnectionGUID: AierEKxORdKx0mYNtvHnig== X-CSE-MsgGUID: DunrCuN6Tpe3K2r+ZfCtCQ== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="72346962" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="72346962" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:15 -0700 X-CSE-ConnectionGUID: HHoOIoHtTXqPU44JjbpKCg== X-CSE-MsgGUID: lLct0mbRRc6YVlxCXgiEiw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="176552709" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:06 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 925E8121ED5; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Hz-2N7c; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 04/16] ACPI: property: Return present device nodes only on fwnode interface Date: Wed, 24 Sep 2025 10:45:50 +0300 Message-ID: <20250924074602.266292-5-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_graph_get_next_subnode() may return fwnode backed by ACPI device nodes and there has been no check these devices are present in the system, unlike there has been on fwnode OF backend. In order to provide consistent behaviour towards callers, add a check for device presence by introducing a new function acpi_get_next_present_subnode(), used as the get_next_child_node() fwnode operation that also checks device node presence. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/acpi/property.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 5438592dc136..01f3880ffcce 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1319,6 +1319,26 @@ acpi_get_next_subnode(const struct fwnode_handle *fw= node, return NULL; } =20 +/** + * acpi_get_next_present_subnode - Return the next present child node hand= le for a fwnode + * @fwnode: Firmware node to find the next child node for. + * @child: Handle to one of the device's child nodes or a null handle. + * Like acpi_get_next_subnode(), but the device nodes returned by + * acpi_get_next_present_subnode() are guaranteed to be present. + * Returns: The next sub-node fwnode handle. + */ +static struct fwnode_handle * +acpi_get_next_present_subnode(const struct fwnode_handle *fwnode, + struct fwnode_handle *child) +{ + do { + child =3D acpi_get_next_subnode(fwnode, child); + } while (is_acpi_device_node(child) && + !acpi_device_is_present(to_acpi_device_node(child))); + + return child; +} + /** * acpi_node_get_parent - Return parent fwnode of this fwnode * @fwnode: Firmware node whose parent to get @@ -1664,7 +1684,7 @@ static int acpi_fwnode_irq_get(const struct fwnode_ha= ndle *fwnode, .property_read_string_array =3D \ acpi_fwnode_property_read_string_array, \ .get_parent =3D acpi_node_get_parent, \ - .get_next_child_node =3D acpi_get_next_subnode, \ + .get_next_child_node =3D acpi_get_next_present_subnode, \ .get_named_child_node =3D acpi_fwnode_get_named_child_node, \ .get_name =3D acpi_fwnode_get_name, \ .get_name_prefix =3D acpi_fwnode_get_name_prefix, \ --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 C53412868AC; Wed, 24 Sep 2025 07:46:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699986; cv=none; b=DVw+3yd6hWyOLVrhdPGCJ+CcbsgxwfP/uL9NKeRfH3TmfPJbtynj/YWJXmOBv62E13sULayxZCJtUrbplEhuUzWyDovPKIqOxBU93z6AjqgPG+HOpEntj6gzvk2X1wDvJ9fhKSMXc1yorQbXFm4ZX9OpAhiGz5rV4Osb4jzB2zE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699986; c=relaxed/simple; bh=Anz3rO9Mu9zPQ1DZfAdtLVxWTChRDh4jAfuNcWRNf9Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nWyM1mJLI+LG+CetRG3DvUVVRyxrXKQqZ8VpDU843I0+eIz6PzsDi6wOz1Qg5a87jomMBUGUxMQpe/XtV57n334QuVCfCWE8olEJiS5JmmSGxNRYedkYIUYN9EezLsIuWK/QdiMGmcSJbKrA8jRGDM1D55AXRwmT3vysg6snom0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kBgOw7Kp; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kBgOw7Kp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699985; x=1790235985; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Anz3rO9Mu9zPQ1DZfAdtLVxWTChRDh4jAfuNcWRNf9Q=; b=kBgOw7KpcL7sQ4cv8jb2oyJ3zpjusb/+T2WRJk2tOzNTJaVg+1BnbCrK PSa2GRP3HQ41OW6YPU8P1Eqpz/Xn0Ug/SrnuzdTj8R3Eyqb1T0a59pXjM dManixSJGV65kZwulujqE9H4aDeyzKfZS6+OK3bbVSRlR2CuqvcJpVWVD 9rhAqvxni8lCl/A2kdmhdPp7eLM6h10Jh77xqVHNMsIS0MjSrQE2ihws6 BN0S6XEfcBTHT/edl7RG1cOi7uDOtZfhS59My58aH+XgkpKCiAZyyEwHT CiA+R92KAoo6NRL8BDrmThUnOdNv1cTBL5QK/Y8m3F6hHFLZ15aW/7FAG A==; X-CSE-ConnectionGUID: 2Wl2ugOGRNmPzvxvv1kh1g== X-CSE-MsgGUID: az2/zTAsTGSMryuZem64og== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101840" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101840" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:23 -0700 X-CSE-ConnectionGUID: oUqsEg2RRQ+bTeq8JHf0iA== X-CSE-MsgGUID: 6FjHMBvbRmGDkR2nahiHzg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668532" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 95C37121ED6; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017I6-2RYT; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 05/16] property: Move Return: section of fwnode_graph_get_endpoint_by_id() down Date: Wed, 24 Sep 2025 10:45:51 +0300 Message-ID: <20250924074602.266292-6-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Move Return: section of fwnode_graph_get_endpoint_by_id() down where it habitually is located. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/base/property.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index f626d5bbe806..b52f7b3bbf84 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -1235,15 +1235,15 @@ static bool fwnode_graph_remote_available(struct fw= node_handle *ep) * The caller is responsible for calling fwnode_handle_put() on the return= ed * fwnode pointer. * - * Return: the fwnode handle of the local endpoint corresponding the port = and - * endpoint IDs or %NULL if not found. - * * If FWNODE_GRAPH_ENDPOINT_NEXT is passed in @flags and the specified end= point * has not been found, look for the closest endpoint ID greater than the * specified one and return the endpoint that corresponds to it, if presen= t. * * Does not return endpoints that belong to disabled devices or endpoints = that * are unconnected, unless FWNODE_GRAPH_DEVICE_DISABLED is passed in @flag= s. + * + * Return: the fwnode handle of the local endpoint corresponding the port = and + * endpoint IDs or %NULL if not found. */ struct fwnode_handle * fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode, --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 E640C2877EE; Wed, 24 Sep 2025 07:46:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699988; cv=none; b=A/9LUwvokkGM5w4FD/HGkb5GlgFBfon9rwrNKJmEhLR8HVl+mWbN2P6oZdYdQ1yV+I3uzfFfSZ2G7Ew3ewotMrAc/Dbdstr15D4z2YM/5klUTOq4fcBnIgKdGUCEC1rwJOeN6C4fRhDSKCeftXGixp5IntDhlE8umWHmAKsIIN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699988; c=relaxed/simple; bh=pXWEgYXLU9fXaadHSr8OOdbMen5ZCVGmiu6kQZwpv3w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TRwfo8yrZup+sr1MbfbppEnk2vpDX0jJLrRqY5+Tb6IstIQFOcBiGs2cB2Oe0Ez1PDYGIJkksLCtlInK3PFqjFunem+RYnllW8Vnss84JCpAlvH7T5l7uUEA3oYew+wQZR6nJB2pyTgwhJ8yV5TcpZ2PKSj7PQrGcldgv9rE1qA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LMPlNoXR; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LMPlNoXR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699987; x=1790235987; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pXWEgYXLU9fXaadHSr8OOdbMen5ZCVGmiu6kQZwpv3w=; b=LMPlNoXRHWQhg6uZay3isy8PVrFd22T+JBTwlU0+9P5eCE92Qo9XV8yz g1wbALhINQ9gQpLql9RznX9FkGHpk/+yeQAYugNJMIVWMLZtESVJTGFZm XL10GJC9OMc1Ak42M282bnGmsGpVOIxwSJc8/zQQo/3PdWmAA/fACtXow 6z9OPlFEsiJtwZKm9F3xswnecAe1x1CLsbZsqrd1DnLQEue8zonF9k38A JXSHC3pIJPsMaZGrA8nbB5uFAILiuMoYVDtMlVcAraGG2+eiTY6cAKoAb DDknPO9Y2lLB9MVePiwsavKMmMYhx59iIvpemKYfs1Y2kApUBoKS9IjPA Q==; X-CSE-ConnectionGUID: 89xpmAfJSXi5OFobKpcz3Q== X-CSE-MsgGUID: lCqknGwiTeOyfO0yGzUKpQ== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101894" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101894" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: +JlRilW3Qbq323C1oDG+GA== X-CSE-MsgGUID: 3H72Q930THGvSOjZgEHIow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668534" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 9A02A121ED7; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017IB-2WYI; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 06/16] property: Drop DEVICE_DISABLED flag in fwnode_graph_get_endpoint_by_id() Date: Wed, 24 Sep 2025 10:45:52 +0300 Message-ID: <20250924074602.266292-7-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" No caller uses FWNODE_GRAPH_DEVICE_DISABLED flag when calling fwnode_graph_get_endpoint_by_id(). Drop support for the flag entirely and remove it from the documentation. Signed-off-by: Sakari Ailus --- drivers/base/property.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index b52f7b3bbf84..7fc3257f223d 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -1239,9 +1239,6 @@ static bool fwnode_graph_remote_available(struct fwno= de_handle *ep) * has not been found, look for the closest endpoint ID greater than the * specified one and return the endpoint that corresponds to it, if presen= t. * - * Does not return endpoints that belong to disabled devices or endpoints = that - * are unconnected, unless FWNODE_GRAPH_DEVICE_DISABLED is passed in @flag= s. - * * Return: the fwnode handle of the local endpoint corresponding the port = and * endpoint IDs or %NULL if not found. */ @@ -1252,13 +1249,12 @@ fwnode_graph_get_endpoint_by_id(const struct fwnode= _handle *fwnode, struct fwnode_handle *ep, *best_ep =3D NULL; unsigned int best_ep_id =3D 0; bool endpoint_next =3D flags & FWNODE_GRAPH_ENDPOINT_NEXT; - bool enabled_only =3D !(flags & FWNODE_GRAPH_DEVICE_DISABLED); =20 fwnode_graph_for_each_endpoint(fwnode, ep) { struct fwnode_endpoint fwnode_ep =3D { 0 }; int ret; =20 - if (enabled_only && !fwnode_graph_remote_available(ep)) + if (!fwnode_graph_remote_available(ep)) continue; =20 ret =3D fwnode_graph_parse_endpoint(ep, &fwnode_ep); --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 0262028EA56; Wed, 24 Sep 2025 07:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699991; cv=none; b=AW37chp3KiC51KvVHLhQ8QZ4Xj7UwJKv1B20rXBv+7v/vpG51cU3Ms+qSRTj3kJE0/gRbxxhWJcya2iDs6qoBpAGcP1wLvuuC2Z7xGIBGSP7u3WEfzmaEFrcUnb0Pz9QWmD2gZ4kWdxIxsSmGW9H0RMIpGrPp7fYjMuGvb+PVAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699991; c=relaxed/simple; bh=YEMoVFGRIKr3yaB/85GG8MMYozAqXqP6oP6pAgVZzg4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eQqp9uPqDFk+7ee7ilLU0tAbN2jMbeK0+qk/ZfWyWw3+tUBT0q4ILp8M+Wj+oilWtJ5TrYUM2VgmxBo6KlmZVTzrklt7P5kDdRLs1WiGd7G1UYg4TyYMwOwmdHqHn4YwJY2Jz5I94A6nnyGDEXirlE4wE6KfSMUNBRIvD3qx8W8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=favdTWGj; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="favdTWGj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699989; x=1790235989; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YEMoVFGRIKr3yaB/85GG8MMYozAqXqP6oP6pAgVZzg4=; b=favdTWGjx8arqDGV7E8eEGMvvPAC5fsP/Hw3BmgrvY4RJodzXfqCvf9L Muz8qmSJTEE5lqI8kOp1zQK9xSkGkdBgqaQ/KILXGm8hAiAWx8b+aNtkI qgZ7GX6NCLKc/qycdDolI1of+0y1q3rE/JE1GYkjYM9wpxMnkoUNoPbee VWwVO/hZIAmkMXlqXqxYpW0syycJ/djyGubZs8CF7ywbCVPbfg+hfAA5a VpLwCUSINuC+xa7InO5WLDXOc39ecdnPtsqHXsZtmQMzlSauTQEjsMl0c +YHqYipQ0vHVQF9hbB7Nx+uj8jgTlVQM9kT63EHe/oOsmrmUNtSTYEA4W A==; X-CSE-ConnectionGUID: 5OHhM+N8RxaLGFM/QrVm+Q== X-CSE-MsgGUID: ChS9j1pxQLa99MLutlcfiQ== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101964" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101964" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: /Q0sT1IITEK5WggO2sxDXA== X-CSE-MsgGUID: nWAah8PQRUu8rgp1kZfFiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668535" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 9F9DE121EE6; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017IG-2aP6; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 07/16] property: Drop DEVICE_DISABLED flag in fwnode_graph_get_endpoint_count() Date: Wed, 24 Sep 2025 10:45:53 +0300 Message-ID: <20250924074602.266292-8-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" FWNODE_GRAPH_DEVICE_DISABLED flag isn't used anywhere, drop the flag and support for it in fwnode_graph_get_endpoint_count(). Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/base/property.c | 10 ++-------- include/linux/property.h | 8 +------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index 7fc3257f223d..4bd64e729431 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -1291,21 +1291,15 @@ EXPORT_SYMBOL_GPL(fwnode_graph_get_endpoint_by_id); /** * fwnode_graph_get_endpoint_count - Count endpoints on a device node * @fwnode: The node related to a device - * @flags: fwnode lookup flags * Count endpoints in a device node. - * - * If FWNODE_GRAPH_DEVICE_DISABLED flag is specified, also unconnected end= points - * and endpoints connected to disabled devices are counted. */ -unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *f= wnode, - unsigned long flags) +unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *f= wnode) { struct fwnode_handle *ep; unsigned int count =3D 0; =20 fwnode_graph_for_each_endpoint(fwnode, ep) { - if (flags & FWNODE_GRAPH_DEVICE_DISABLED || - fwnode_graph_remote_available(ep)) + if (fwnode_graph_remote_available(ep)) count++; } =20 diff --git a/include/linux/property.h b/include/linux/property.h index d1e80b3c9918..8b8bbbe6b5b7 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -503,19 +503,13 @@ static inline bool fwnode_graph_is_endpoint(const str= uct fwnode_handle *fwnode) * @FWNODE_GRAPH_ENDPOINT_NEXT: In the case of no exact match, look for the * closest endpoint ID greater than the specified * one. - * @FWNODE_GRAPH_DEVICE_DISABLED: That the device to which the remote - * endpoint of the given endpoint belongs to, - * may be disabled, or that the endpoint is not - * connected. */ #define FWNODE_GRAPH_ENDPOINT_NEXT BIT(0) -#define FWNODE_GRAPH_DEVICE_DISABLED BIT(1) =20 struct fwnode_handle * fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode, u32 port, u32 endpoint, unsigned long flags); -unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *f= wnode, - unsigned long flags); +unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *f= wnode); =20 #define fwnode_graph_for_each_endpoint(fwnode, child) \ for (child =3D fwnode_graph_get_next_endpoint(fwnode, NULL); child; \ --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 6752B27FD56; Wed, 24 Sep 2025 07:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699991; cv=none; b=UyQ9i6/Wg3QV3qDDvT04+G4A50lSfd6soqbeo/tmsW9x/BKe11KnhHlqlIAm+tid649ZbgXWSbp2qBbkQVB+7COzl2Ohg/CI0mTCSbKxFFHew9x+YbU5gqzvw4Wb7wiOQm8k1E1Bly1X1aB2Jm7MGxZyHAXrFvzmESfTfFbCELs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699991; c=relaxed/simple; bh=PJ/0flzXVWcNhnUEcXMEKNKkeTXGBw9Rsb6c3sMfa+U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mCWoCyyrPweehVH7IWogAGCLnfiU4x5pQCZfjvLW47T7+1CB5ocVE2mXfU866U1OSWnfJIOiFhY01OljU/HMx8v3GcO2w7hyXPTzPwHNXwCoZtKpeRul2l991bVz3O0jY3HCInjMZdrE21NawWRrrKQc1Ua6Cm/wtt+5HJAASZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WcYAS+Ha; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WcYAS+Ha" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699990; x=1790235990; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PJ/0flzXVWcNhnUEcXMEKNKkeTXGBw9Rsb6c3sMfa+U=; b=WcYAS+Ha6cl2RlsOhyzBKPMIW+tukrKXj6I4J+4wlnSTASVZocwhldgk G/cF4xSd7vd29OVkyhwpZcuhxVTe6neH0k+lazoCG4Rj2zg5g00Ais44f Po8oTe++5X/i5SaiDfcVKTHUw4iC9bSxKZirg/D23HzH0SRczbIbHcVVt ya9gAzPGfIbBywKSKZjvk+vfLT4DBZapbjxp8UrigV/MkTh8k05FIDxYh 613NdrrrxZ98LG8i8a0+NsoNUxQJ/gyG4bP4xAYpAsqqaDPn24fswX0vA Gu1xk2++QZv+i3ZJDzPEvUAcqKyhp1QrHyWa9uFUs/0j+KEp3e8/KkZlZ g==; X-CSE-ConnectionGUID: 0OcDQgPkTDuTyTfaRSOY2Q== X-CSE-MsgGUID: KkNQUfZPToSmCftgEpQGXw== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101970" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101970" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: LX4BoujZRLGq+JWqCpaCfQ== X-CSE-MsgGUID: 7uNsXV0cQn+ZjY09fP/IdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668531" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id A2508121EE7; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017IL-2ew1; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 08/16] property: Document that fwnode API returns available nodes Date: Wed, 24 Sep 2025 10:45:54 +0300 Message-ID: <20250924074602.266292-9-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The fwnode API has historically provided two functions to iterate over a fwnode's child nodes, fwnode_get_next_child_node() and fwnode_get_next_available_child_node() whereas all of the fwnode API has always worked on available nodes, apart unavailable ACPI child device nodes could have been returned by fwnode_get_next_child_node(). Now that the availability check has been added to ACPI side as well, document that the functions in the fwnode API return available nodes. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/base/property.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index 4bd64e729431..ff440456af7b 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -785,7 +785,7 @@ struct fwnode_handle *fwnode_get_nth_parent(struct fwno= de_handle *fwnode, EXPORT_SYMBOL_GPL(fwnode_get_nth_parent); =20 /** - * fwnode_get_next_child_node - Return the next child node handle for a no= de + * fwnode_get_next_child_node - Return the next available child node handle * @fwnode: Firmware node to find the next child node for. * @child: Handle to one of the node's child nodes or a %NULL handle. * @@ -830,7 +830,7 @@ fwnode_get_next_available_child_node(const struct fwnod= e_handle *fwnode, EXPORT_SYMBOL_GPL(fwnode_get_next_available_child_node); =20 /** - * device_get_next_child_node - Return the next child node handle for a de= vice + * device_get_next_child_node - Return the next available child node handl= e for a device * @dev: Device to find the next child node for. * @child: Handle to one of the device's child nodes or a %NULL handle. * @@ -858,7 +858,7 @@ struct fwnode_handle *device_get_next_child_node(const = struct device *dev, EXPORT_SYMBOL_GPL(device_get_next_child_node); =20 /** - * fwnode_get_named_child_node - Return first matching named child node ha= ndle + * fwnode_get_named_child_node - Return first available matching named chi= ld node handle * @fwnode: Firmware node to find the named child node for. * @childname: String to match child node name against. * @@ -874,7 +874,7 @@ fwnode_get_named_child_node(const struct fwnode_handle = *fwnode, EXPORT_SYMBOL_GPL(fwnode_get_named_child_node); =20 /** - * device_get_named_child_node - Return first matching named child node ha= ndle + * device_get_named_child_node - Return first available matching named chi= ld node handle for a device * @dev: Device to find the named child node for. * @childname: String to match child node name against. * @@ -928,7 +928,7 @@ bool fwnode_device_is_available(const struct fwnode_han= dle *fwnode) EXPORT_SYMBOL_GPL(fwnode_device_is_available); =20 /** - * fwnode_get_child_node_count - return the number of child nodes for a gi= ven firmware node + * fwnode_get_child_node_count - Return the number of available child node= s for a given firmware node * @fwnode: Pointer to the parent firmware node * * Return: the number of child nodes for a given firmware node. @@ -946,7 +946,7 @@ unsigned int fwnode_get_child_node_count(const struct f= wnode_handle *fwnode) EXPORT_SYMBOL_GPL(fwnode_get_child_node_count); =20 /** - * fwnode_get_named_child_node_count - number of child nodes with given na= me + * fwnode_get_named_child_node_count - Return the number of available chil= d nodes with given name * @fwnode: Node which child nodes are counted. * @name: String to match child node name against. * --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 38D9C287515; Wed, 24 Sep 2025 07:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699988; cv=none; b=NhKjY29UK90KDP4Uf2SO5Mk3IhyHP1U2UDUZe03+YTUlqouu48omhOcFBO3ySc/sGN6VRn93wv8tixFdrYREhJtc6H+bDyg7Qq3W+DGlJ3A597kPVUygLenlO+8uTGV/x57pVIqKMuABEC6d8OTxL4VfdyP5mI7mFlM20r90Nac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699988; c=relaxed/simple; bh=/leBFCw4LZOfJtYhFEIL/GjAyRMTnUr/74r6sRTj9lw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k8BlN/ye1kuBkkEdTwBcDfkEMgSi2i4nf8dNnA5IHoSTw9wjuTOzeeccwCPaD/IhoSJWVLVzB2rZa8/qlSzKdfNPkq2Y/pZqbT/LF5aZNigsZf3chOSeawjqY/aONIeVCAnLLCtdm4PXl9YIJ03hc2XuqFWvgqf1h6OcZ8aIyi0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NL4kY5gb; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NL4kY5gb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699986; x=1790235986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/leBFCw4LZOfJtYhFEIL/GjAyRMTnUr/74r6sRTj9lw=; b=NL4kY5gbDsSsuZipuXDi3KerZ7+y44wBcJtbxNsptJq/KP7E9m/JQY+6 vZwhmh63TFIRm3Ttaz51ODPjtx9dS7ZbzavndbX6pgYSETmcVsyo7fFvM /sbsjPEKOY3q2W+ktixklZdmdIzmjd8+Y2dNeb+s8qnXX1kWv2ANijZYY H8ZLav+Na7oJuBpAT5qhQ8Umw7Uq7x9px8wsQ6JVBjf9RR23RceQBeR15 rXjyjba3tQ4yTlEMfWujhAxxPj3Go2oNEkCIqgMq/QOPrvrF6mRQZfxGm ANk2mqXxIxnCisjPukGEDBhp5hguTtVOiKdXVaLndxmAqOq/Dt1/JEdKV w==; X-CSE-ConnectionGUID: 3f+EyDJ+TVOSOHSO+XMlDw== X-CSE-MsgGUID: gcLtTAdvRLy3vFT6iuHFtg== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101868" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101868" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:23 -0700 X-CSE-ConnectionGUID: M1zj3XpKTDyaHMROBz1OuA== X-CSE-MsgGUID: Bj4xj9R7SeuVCm3d0gjGWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668533" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id A6506121EEB; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017IQ-2j6B; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 09/16] driver core: Use fwnode_for_each_child_node() instead Date: Wed, 24 Sep 2025 10:45:55 +0300 Message-ID: <20250924074602.266292-10-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_for_each_child_node() is now the same as fwnode_for_each_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/base/core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index d22d6b23e758..4bffd347e2f9 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -185,7 +185,7 @@ void fw_devlink_purge_absent_suppliers(struct fwnode_ha= ndle *fwnode) fwnode->flags |=3D FWNODE_FLAG_NOT_DEVICE; fwnode_links_purge_consumers(fwnode); =20 - fwnode_for_each_available_child_node(fwnode, child) + fwnode_for_each_child_node(fwnode, child) fw_devlink_purge_absent_suppliers(child); } EXPORT_SYMBOL_GPL(fw_devlink_purge_absent_suppliers); @@ -231,7 +231,7 @@ static void __fw_devlink_pickup_dangling_consumers(stru= ct fwnode_handle *fwnode, fwnode->flags |=3D FWNODE_FLAG_NOT_DEVICE; __fwnode_links_move_consumers(fwnode, new_sup); =20 - fwnode_for_each_available_child_node(fwnode, child) + fwnode_for_each_child_node(fwnode, child) __fw_devlink_pickup_dangling_consumers(child, new_sup); } =20 @@ -1318,7 +1318,7 @@ void device_links_driver_bound(struct device *dev) =20 guard(mutex)(&fwnode_link_lock); =20 - fwnode_for_each_available_child_node(dev->fwnode, child) + fwnode_for_each_child_node(dev->fwnode, child) __fw_devlink_pickup_dangling_consumers(child, dev->fwnode); __fw_devlink_link_to_consumers(dev); @@ -1736,7 +1736,7 @@ static void fw_devlink_parse_fwtree(struct fwnode_han= dle *fwnode) =20 fw_devlink_parse_fwnode(fwnode); =20 - while ((child =3D fwnode_get_next_available_child_node(fwnode, child))) + while ((child =3D fwnode_get_next_child_node(fwnode, child))) fw_devlink_parse_fwtree(child); } =20 @@ -2309,7 +2309,7 @@ static void __fw_devlink_link_to_suppliers(struct dev= ice *dev, * case where the supplier is added before the consumer's parent device * (@dev). */ - while ((child =3D fwnode_get_next_available_child_node(fwnode, child))) + while ((child =3D fwnode_get_next_child_node(fwnode, child))) __fw_devlink_link_to_suppliers(dev, child); } =20 --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 58D12288512; Wed, 24 Sep 2025 07:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699989; cv=none; b=a1tdnd69f68IujeiJEq/Ttdt6YrNU2Kd824LOoZzs6QzzD6jlEp0FMlvYdWLEo/YTh8bymqYDIHeVSOPKKxhcZwKDNdSMMFVRyMfEfFPl7QixT6hKutXb9bfWrIxbOyMnqcim0oGMJX1RrfNGZ22IKAigl023Ns+gNilYFt4GnM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699989; c=relaxed/simple; bh=cf6lF7LyfM0LBjXxUF4rOsMMBytA+CYr8xHGZ4FGSls=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L8iwYEWWBY9l5WlNWJ3WbgPtzgSCAuiyYZ9N6XOQTWebj8Ff90Wg/le4veydb8EJ2q4XxbH1G6I9Bzo7/54z3Nm4EFW4fdqpin/gSHtkB0EN/edhjJdIXgY243MVC20dyhmVoInqf0rpxvobiFWb03DGwfyWKol+CCjQJQkfLlw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=JwGIHt3h; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JwGIHt3h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699987; x=1790235987; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cf6lF7LyfM0LBjXxUF4rOsMMBytA+CYr8xHGZ4FGSls=; b=JwGIHt3hPS4fkG6CwJOReDmeL7W0Y1uTnzaZ7hCKHHRng1CqTw2Pn0S/ gt9aaxq+oTvno9bY8Hi770AgFreEWPfKf2KPc/hoT9zjF1Q9aqirK6AMC SqR5Vx5AcUP5PKU5sGbl4PrKN+nqecL3w6Jpyw+jI9D5nwPR2U5/TloeO g57kEU+rcrrOMPHemF/ICpFCbD5pQZlOKvTU4551iNMkmjEHiuQiHLOQZ pYZs8oQrqA0Qne9eKjFKroc4jCxP+GpzbJh4CaBT1jcet91ZYlusr4W48 8WkMXW3UYpqE8tPpX84lRwdUZVgJ8LqUvRSbBNiTGs34Eb8JOi8sQuWtR Q==; X-CSE-ConnectionGUID: kAPoBRqnRiaamu0i1fbjHQ== X-CSE-MsgGUID: 1U/m7iRRQh6QwGPeAPUFIw== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101919" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101919" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: gKeYukLbS/SvV6GFWp/bTQ== X-CSE-MsgGUID: NJ7DhTidRr21pUzOmcQ97w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668536" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id AA074121F10; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017IV-2nEt; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 10/16] net: lan966x: Use fwnode_for_each_child_node() instead Date: Wed, 24 Sep 2025 10:45:56 +0300 Message-ID: <20250924074602.266292-11-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_for_each_child_node() is now the same as fwnode_for_each_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/driver= s/net/ethernet/microchip/lan966x/lan966x_main.c index 7001584f1b7a..e8f9bf96a63b 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c @@ -1190,7 +1190,7 @@ static int lan966x_probe(struct platform_device *pdev) lan966x_stats_init(lan966x); =20 /* go over the child nodes */ - fwnode_for_each_available_child_node(ports, portnp) { + fwnode_for_each_child_node(ports, portnp) { phy_interface_t phy_mode; struct phy *serdes; u32 p; --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 3F5B729D26B; Wed, 24 Sep 2025 07:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699992; cv=none; b=VDSjG6QFcfO5EEsTVLiW5mDeJ0qOdl3+kCX3eeNrqspMqRiT5s3U5JFM+FYY6jTEm0LBkan+/WIX3OVq8qOtENrytTqgxl5JAE+x/Xblcbo7lKJ10xHVTbgLTXkF0LDEJBPytMAdJ1Lhi9QhC6gok250oa7XPERV6bwFRRrOhJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699992; c=relaxed/simple; bh=jCyeJsf2r0hmAqCSjDUfebbgI9PEHOizoRXrfnF8aSA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=malT8EdWfdSCh1V88j0oX1ZcPu3tijCJot6TLp2MKWaoaPyMy3Jtli1I53udbE56Bb9dOvGF1+Aw987WfkBAW76wqUHnQNm+T/wHdBeeV7kxhbbIP1DL5K7i0QxPj+XezG7CZmBjOsQfXqWL3NspbSJiF2jurF3MCTd/v5aTGek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=G4RyIyvN; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="G4RyIyvN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699990; x=1790235990; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jCyeJsf2r0hmAqCSjDUfebbgI9PEHOizoRXrfnF8aSA=; b=G4RyIyvNFwJliUP5JEOjFEy+LBQKhyNjSx7J+LeOJBmnZUU1FmvVyh3/ QBsRNFTP6fjKi49Ak+gs1silCsxFyJ79BLM6IyagO0F+65VlNEeOPaDbb +Db8utBj2Wk05JU1vnWc1tmFSA+7kHQFBASUFwU66Y8KIVl0w9xdBZqJh FlyWhAfqT59SIkH3+MEIuHrehNB2FN71jwJy85hfKNx11rQwOZ7j5e9AC 3ciXFOF1xgg8h9ewRDWEnsIv71iYkFfQErECCeiOvRJhgjF4m1WXloYo0 dEAat4eqxWf5tA67i1YaD1Au2MHCRbLyxQ3Z4WKPtVx7xdZuDuxZvy75/ g==; X-CSE-ConnectionGUID: 1D+s+atCRQ6I61KOG3+X+Q== X-CSE-MsgGUID: uNxlcQ1eRKOKXFRsvvFf/Q== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101968" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101968" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: 6OsWXskpThWmG08nWd7ZNQ== X-CSE-MsgGUID: vp2lfI5bRq6us49iugMGcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668542" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B0988121F11; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Ia-2rXt; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 11/16] Input: touch-overlay - Use fwnode_for_each_child_node() instead Date: Wed, 24 Sep 2025 10:45:57 +0300 Message-ID: <20250924074602.266292-12-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_for_each_child_node() is now the same as fwnode_for_each_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/input/touch-overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touch-overlay.c b/drivers/input/touch-overlay.c index b9fd82c4829d..7eaaaef1bd82 100644 --- a/drivers/input/touch-overlay.c +++ b/drivers/input/touch-overlay.c @@ -82,7 +82,7 @@ int touch_overlay_map(struct list_head *list, struct inpu= t_dev *input) if (!overlay) return 0; =20 - fwnode_for_each_available_child_node(overlay, fw_segment) { + fwnode_for_each_child_node(overlay, fw_segment) { segment =3D devm_kzalloc(dev, sizeof(*segment), GFP_KERNEL); if (!segment) { fwnode_handle_put(fw_segment); --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 408D728A704; Wed, 24 Sep 2025 07:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699990; cv=none; b=LUbZ5cGlrwv+Ed0DcRSBvRKKARO57ErAM955wJ6fnsrZFeRModefdJvyBAFGXKhX4dATEfBonqLZMQ6CXqNib8evWuJaQSBT01YCpTWYcFOrwLBdALriLT35d6OHUKh3UPkEv1wJ7eeNehaZavKIjOn/Z6Pgz32VnmJimprUfL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699990; c=relaxed/simple; bh=SOIIxPHN0pMKXry68YzKaQyiVojN7g77KKyrfmEqRek=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tngQCqL2hE+J145/hhNcJtBEdAQzJnjuv7Ps0zuMc/DsMBF9Nat7ETt1ejsq6Onm41jpvdLuiXjvhVngL2x5hT8A9t0rLiWQoeHsRsE9UwPKZtPezXsAKhdZgPPt8u29Y5Yje3sG5T2dqDH8/jxavAIH3iFtOm9gahmZQsnmBfw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VBbmdSws; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VBbmdSws" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699988; x=1790235988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SOIIxPHN0pMKXry68YzKaQyiVojN7g77KKyrfmEqRek=; b=VBbmdSws2F7Xq2g3tM1I8OtSVtPSE0yAgyjSnM/s5ICqKja5kWF/JOVh VNjQaCyMXgGMZvhT4lYUt5y3LekGF3H5a9PjY8lAfvx2aFquqxyADwUuM 3VZt3P5AtOr5Ok8rse4ZXZrWig6zDk7n1TwG4fTH/XQRK0Zm3ernLnkqE iT7wyckQYTuQhhwYumQqVgNeyoP57rpY0GWCm1A4PP67uoXZ2hhb8EtY3 +sbk4rk2Fyqb1/CSYgB+jRczNWF6eFzn36ke5ghQcoeKzNCpqpY3iqqp1 HmQ1P3ob9YEX7pDBGPd9qhm+tVxH7lp6sPVWh8d+AGB07oZuOTrMANeos Q==; X-CSE-ConnectionGUID: UWxWn5F7Q6qSSVrHENMwWA== X-CSE-MsgGUID: vYzl/ogdRjueZon6rGbd0A== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101939" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101939" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: kOvLmrUXR7mewE4Ks/imKA== X-CSE-MsgGUID: nEYBz1pHTYG/vba7Qv0hWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668541" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B3757121F23; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017If-2vJX; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 12/16] media: thp7312: Use fwnode_for_each_child_node() instead Date: Wed, 24 Sep 2025 10:45:58 +0300 Message-ID: <20250924074602.266292-13-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_for_each_child_node() is now the same as fwnode_for_each_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/media/i2c/thp7312.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c index 775cfba188d8..86208a47f472 100644 --- a/drivers/media/i2c/thp7312.c +++ b/drivers/media/i2c/thp7312.c @@ -2064,7 +2064,7 @@ static int thp7312_parse_dt(struct thp7312_device *th= p7312) return -EINVAL; } =20 - fwnode_for_each_available_child_node(sensors, node) { + fwnode_for_each_child_node(sensors, node) { if (fwnode_name_eq(node, "sensor")) { if (!thp7312_sensor_parse_dt(thp7312, node)) num_sensors++; --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 BAEE32C026E; Wed, 24 Sep 2025 07:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699994; cv=none; b=Pu/3Qpic5o8GzatG/bJ0EjLoZlIKS6lFvPaWjLUGnRBskI8WF121CDmohR9xTNjHl16lYwHAR1JT9kh0lZtlB+F15P10qQ7eSFruWX77bhaq3gqB+Q34Gb6y3GzDNS4o1P/FG+lY6xYHmXeWteCkAUY7WOvrOF23FD6Lb4xSGfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699994; c=relaxed/simple; bh=m3EgVXjs4Dtr5qYQxifEIBFpl8KtZPRL3QVvAO6C2R8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o7OmRj+YrAZX7uP3/39GAt64RO0uYdobOwRc3hVN3PXZ0pgCJzdWkGH8dmhr0t2/w4YoRRb+7NaLQiHag7OXIoa7rnCfWaCGOES/rzbIM9AuzDkKBKSz0YgVorXnTk8PfKxFa5EnbR4sjrD6JIqrWUgJuW563xBI47VwrjaJ+yc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MAbtFB1I; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MAbtFB1I" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699992; x=1790235992; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=m3EgVXjs4Dtr5qYQxifEIBFpl8KtZPRL3QVvAO6C2R8=; b=MAbtFB1IJr5uztp0GXxymYr+b9/iDbRnW6dVOcXLwd6NIoZYusILazl/ 339DpffhB96z+hODorOhK6GulS/5AdbX4gha4eBeTvyrBDv7g22bI8+KH 1c4ws2Zy2anItxrwvOYquTCOjBmALmKcV+0lbKw9wf9sbfx/gpNF5oEWi 1wrVxwKI2slsci4yVpKMVUz5Tl41tEiLGuz2mJxd8q8kPnlUuJ2cqecWM zlsmw+3VSHHfGx43CO4SHzYE9jG0H8GsNszaN6U/TQ9ibZaGOrwovJD3c nj8tJFCIRgBd26cqbJsVS1afO7BkyKoX3pKS/a+EDBvhB0yuFLy2kdWHB w==; X-CSE-ConnectionGUID: ZhyUr+wYT62MBYmwqWQjfg== X-CSE-MsgGUID: 23Rlw6bITlSZMNpBCf06hw== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101985" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101985" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: sc7S38WfRLCdn03e2z0hOA== X-CSE-MsgGUID: VjiWZhgESNCz0S79ET0sfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668543" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B7551121F24; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Ik-30dE; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 13/16] leds: Use fwnode_for_each_child_node() instead Date: Wed, 24 Sep 2025 10:45:59 +0300 Message-ID: <20250924074602.266292-14-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_for_each_child_node() is now the same as fwnode_for_each_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/leds/leds-max5970.c | 2 +- drivers/leds/leds-max77705.c | 2 +- drivers/leds/rgb/leds-ktd202x.c | 4 ++-- drivers/leds/rgb/leds-ncp5623.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/leds/leds-max5970.c b/drivers/leds/leds-max5970.c index 285074c53b23..a1e91a06249c 100644 --- a/drivers/leds/leds-max5970.c +++ b/drivers/leds/leds-max5970.c @@ -60,7 +60,7 @@ static int max5970_led_probe(struct platform_device *pdev) if (!led_node) return -ENODEV; =20 - fwnode_for_each_available_child_node(led_node, child) { + fwnode_for_each_child_node(led_node, child) { u32 reg; =20 if (fwnode_property_read_u32(child, "reg", ®)) diff --git a/drivers/leds/leds-max77705.c b/drivers/leds/leds-max77705.c index b7403b3fcf5e..1e2054c1bf80 100644 --- a/drivers/leds/leds-max77705.c +++ b/drivers/leds/leds-max77705.c @@ -191,7 +191,7 @@ static int max77705_add_led(struct device *dev, struct = regmap *regmap, struct fw cdev->brightness_set_blocking =3D max77705_led_brightness_set_multi; cdev->blink_set =3D max77705_rgb_blink; =20 - fwnode_for_each_available_child_node(np, child) { + fwnode_for_each_child_node(np, child) { ret =3D max77705_parse_subled(dev, child, &info[i]); if (ret < 0) return ret; diff --git a/drivers/leds/rgb/leds-ktd202x.c b/drivers/leds/rgb/leds-ktd202= x.c index 04e62faa3a00..e4f0f25a5e45 100644 --- a/drivers/leds/rgb/leds-ktd202x.c +++ b/drivers/leds/rgb/leds-ktd202x.c @@ -391,7 +391,7 @@ static int ktd202x_setup_led_rgb(struct ktd202x *chip, = struct fwnode_handle *fwn int i =3D 0; =20 num_channels =3D 0; - fwnode_for_each_available_child_node(fwnode, child) + fwnode_for_each_child_node(fwnode, child) num_channels++; =20 if (!num_channels || num_channels > chip->num_leds) @@ -401,7 +401,7 @@ static int ktd202x_setup_led_rgb(struct ktd202x *chip, = struct fwnode_handle *fwn if (!info) return -ENOMEM; =20 - fwnode_for_each_available_child_node(fwnode, child) { + fwnode_for_each_child_node(fwnode, child) { u32 mono_color; u32 reg; int ret; diff --git a/drivers/leds/rgb/leds-ncp5623.c b/drivers/leds/rgb/leds-ncp562= 3.c index 7c7d44623a9e..85d6be6fff2b 100644 --- a/drivers/leds/rgb/leds-ncp5623.c +++ b/drivers/leds/rgb/leds-ncp5623.c @@ -180,7 +180,7 @@ static int ncp5623_probe(struct i2c_client *client) goto release_mc_node; } =20 - fwnode_for_each_available_child_node(mc_node, led_node) { + fwnode_for_each_child_node(mc_node, led_node) { ret =3D fwnode_property_read_u32(led_node, "color", &color_index); if (ret) goto release_led_node; --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 2C9D52BE632; Wed, 24 Sep 2025 07:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699994; cv=none; b=lAz7+47RzeqmjizUblAlRhD4lc6+Ggps2tETzsqOrelmYtE9JfdjTjQLR2n05lKJz597fD/ytcU1GtPFT1HZJe7LGZKa6fv8RRe27iTfgGURol62iagwb1qoURxJnJ5q9C76kbsELy9/YjT6LWNbN3ks2fNWsWi2wbWD7mKxUtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699994; c=relaxed/simple; bh=Z7kbp96iiS7jPxB2qIweq0saq/r/Z6ptZfNljAcJzG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SqkP+ME9f92eeXXU0WVBSf1Er/0M+kWW9PaO7f07RcbquP563CZ+6tuSEeJM7+tF9ShRzrdAzNiLnzEb6Mv4d3nJ3xJwf4JDRL1iSwJsXWN6TwA0dviXNR0I7K7DZ0A90fsQAFlWMHEX9ZB/OHxVDd3SfaEt4DZ5fg8JvWPhmKE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dF6r6VkU; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dF6r6VkU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699991; x=1790235991; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z7kbp96iiS7jPxB2qIweq0saq/r/Z6ptZfNljAcJzG0=; b=dF6r6VkUHC/93mVjElTg8sg/tTFSz5QHa2uYLsnGBlNQ9KmlZaAJA8NJ BWMnAu5DXGzSZLHKZi4DFCQhQdxxeUZWiJdNy9MSsACU6zXoEH3Y7qxrt vHQQRXwdA3jroyfcqQ3MAiC8keGIkgsokFeF1PnAF3Op+OLFXGiJOStrQ 2M/Wm1F8QjQ+VWZmJDSZmWSpkGpoq5o7GAd/1/B8XN9w5e4OmwA2rjE01 XKc7aMrrqokXlOWKiKId2njnXLhbprjxwNQkQziiBKbnIAwF4dGw2QG92 LS4oIQFSjdOAFHqBfNG0ArpgKOMG/2Jsj+m3ZB3OGskXa/9tZJoiUnQg8 w==; X-CSE-ConnectionGUID: 7C5b6ea1RyekuECc7Kb6Kg== X-CSE-MsgGUID: CeaiMyOWT0aG71hut7YtSA== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101986" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101986" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:24 -0700 X-CSE-ConnectionGUID: eJlUmF9/Qte7PhGtsPvMxQ== X-CSE-MsgGUID: /p0bHzVmQ5mQK1KNwYzcAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668544" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:16 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id BAC75121F25; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Ip-35Qt; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 14/16] leds: Use fwnode_get_next_child_node() instead Date: Wed, 24 Sep 2025 10:46:00 +0300 Message-ID: <20250924074602.266292-15-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_get_next_child_node() is now the same as fwnode_get_next_available_child_node() on all backends (OF, ACPI and swnode). In order to remove the available variants, switch the uses to non-available variants (device_get_next_child_node() in this case). Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/leds/flash/leds-rt4505.c | 2 +- drivers/leds/flash/leds-rt8515.c | 2 +- drivers/leds/flash/leds-sgm3140.c | 3 +-- drivers/leds/flash/leds-tps6131x.c | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/leds/flash/leds-rt4505.c b/drivers/leds/flash/leds-rt4= 505.c index f16358b8dfc1..18fd5b7e528f 100644 --- a/drivers/leds/flash/leds-rt4505.c +++ b/drivers/leds/flash/leds-rt4505.c @@ -365,7 +365,7 @@ static int rt4505_probe(struct i2c_client *client) return ret; } =20 - child =3D fwnode_get_next_available_child_node(client->dev.fwnode, NULL); + child =3D device_get_next_child_node(&client->dev, NULL); if (!child) { dev_err(priv->dev, "Failed to get child node\n"); return -EINVAL; diff --git a/drivers/leds/flash/leds-rt8515.c b/drivers/leds/flash/leds-rt8= 515.c index 6af0d2c7fc56..f6b439674c03 100644 --- a/drivers/leds/flash/leds-rt8515.c +++ b/drivers/leds/flash/leds-rt8515.c @@ -304,7 +304,7 @@ static int rt8515_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(rt->enable_torch), "cannot get ENT (enable torch) GPIO\n"); =20 - child =3D fwnode_get_next_available_child_node(dev->fwnode, NULL); + child =3D device_get_next_child_node(dev, NULL); if (!child) { dev_err(dev, "No fwnode child node found for connected LED.\n"); diff --git a/drivers/leds/flash/leds-sgm3140.c b/drivers/leds/flash/leds-sg= m3140.c index 3e83200675f2..dc6840357370 100644 --- a/drivers/leds/flash/leds-sgm3140.c +++ b/drivers/leds/flash/leds-sgm3140.c @@ -214,8 +214,7 @@ static int sgm3140_probe(struct platform_device *pdev) return dev_err_probe(&pdev->dev, ret, "Failed to request regulator\n"); =20 - child_node =3D fwnode_get_next_available_child_node(pdev->dev.fwnode, - NULL); + child_node =3D device_get_next_child_node(&pdev->dev, NULL); if (!child_node) { dev_err(&pdev->dev, "No fwnode child node found for connected LED.\n"); diff --git a/drivers/leds/flash/leds-tps6131x.c b/drivers/leds/flash/leds-t= ps6131x.c index 6f4d4fd55361..f0f1f2b77d5a 100644 --- a/drivers/leds/flash/leds-tps6131x.c +++ b/drivers/leds/flash/leds-tps6131x.c @@ -544,7 +544,7 @@ static int tps6131x_parse_node(struct tps6131x *tps6131= x) =20 tps6131x->valley_current_limit =3D device_property_read_bool(dev, "ti,val= ley-current-limit"); =20 - tps6131x->led_node =3D fwnode_get_next_available_child_node(dev->fwnode, = NULL); + tps6131x->led_node =3D device_get_next_child_node(dev, NULL); if (!tps6131x->led_node) { dev_err(dev, "Missing LED node\n"); return -EINVAL; --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 27A9E28A704; Wed, 24 Sep 2025 07:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699996; cv=none; b=P/HeOC2oxmusNpUWP/GFJ2tM7+WKXgxVUfJ2K+AqHwIMWZXSTOpfCWEcOY7LA/7b1uOKnkCXxU1y8iSyP7TrTYAU60weMgQQ/+Irkq5QlvlmiS16o8pZoIiMJPaLVpy9jEwyjHvv7ZBV+ypFz/WnYDIgouHu/Et7YMequB90T8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699996; c=relaxed/simple; bh=DEsvqN+aBMQ45x0c2XUTSeXzx/ACOxvknwYyxF7Xw/o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G+EMumFjEM0YbWr3jEwAkC0NxG6YnoQ4v/HvnTvWXRMETwHHMYWrPfYb9DFuATWlNbDgfZSIL0xkzvAZ+cqw8GtwNVIGItNab8X9g8Clg02FXcu+gTnhU4n17UUyS1TdUEgglTkhk8riaScXU4d0h+YCwaSIkpnuGuiTav+usH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZIWEnti9; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZIWEnti9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699994; x=1790235994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DEsvqN+aBMQ45x0c2XUTSeXzx/ACOxvknwYyxF7Xw/o=; b=ZIWEnti9PkxWG5NjanxU9XiSS/C2o4oe8wz7+b3JrQMkRy8iC+EGCavB vZ6rChS6yUYXq/D7kR4ci62VA10xVCukycNmuEukInxVRy1EbbF7fnjpT M43xWI0lmB/DdXTrdBM9G92Rszq/SdfeUYS9LKhExxysPaX1GxPCuxjEm BwpSMrMF9x9HyBaJnllA3WLxHuYHt3cJFpcTw/4+9ncHDP9UGpdU+8H8V 3yMEpdIGXUzgNSXN50rEHfzDEhqeg5dOAbkkmdVWeSjGX5Uy03ncXj3qI ld1/M203tYc9vUrdYEVUy2tQcaWDIWUE8Q+lOL7HSi8By9ipbSwUtlwVH Q==; X-CSE-ConnectionGUID: 4vAcmkrgTFaSz+rHpl9Fdg== X-CSE-MsgGUID: ACLFPF5oTg+P6NSeO0W4Vg== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61102022" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61102022" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:33 -0700 X-CSE-ConnectionGUID: vj85M55sQOGjQui+XduTvQ== X-CSE-MsgGUID: jG8ldA/TQO26Wu5fr7J/bg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668598" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:25 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id BE3F3121F4D; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Iu-39En; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 15/16] property: Drop functions operating on "available" child nodes Date: Wed, 24 Sep 2025 10:46:01 +0300 Message-ID: <20250924074602.266292-16-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" fwnode_get_next_available_child_node() and later fwnode_for_each_available_child_node() were introduced to mirror the OF interface operating on OF nodes. Now that these two are functionally the same as the variants without "_available" part, drop the "_available" variants. Signed-off-by: Sakari Ailus Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/base/property.c | 30 +----------------------------- include/linux/property.h | 6 ------ 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index ff440456af7b..75c3283fb5ca 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -802,35 +802,7 @@ fwnode_get_next_child_node(const struct fwnode_handle = *fwnode, EXPORT_SYMBOL_GPL(fwnode_get_next_child_node); =20 /** - * fwnode_get_next_available_child_node - Return the next available child = node handle for a node - * @fwnode: Firmware node to find the next child node for. - * @child: Handle to one of the node's child nodes or a %NULL handle. - * - * The caller is responsible for calling fwnode_handle_put() on the return= ed - * fwnode pointer. Note that this function also puts a reference to @child - * unconditionally. - */ -struct fwnode_handle * -fwnode_get_next_available_child_node(const struct fwnode_handle *fwnode, - struct fwnode_handle *child) -{ - struct fwnode_handle *next_child =3D child; - - if (IS_ERR_OR_NULL(fwnode)) - return NULL; - - do { - next_child =3D fwnode_get_next_child_node(fwnode, next_child); - if (!next_child) - return NULL; - } while (!fwnode_device_is_available(next_child)); - - return next_child; -} -EXPORT_SYMBOL_GPL(fwnode_get_next_available_child_node); - -/** - * device_get_next_child_node - Return the next available child node handl= e for a device + * device_get_next_child_node - Return the next available child node handle * @dev: Device to find the next child node for. * @child: Handle to one of the device's child nodes or a %NULL handle. * diff --git a/include/linux/property.h b/include/linux/property.h index 8b8bbbe6b5b7..da6202053862 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -161,8 +161,6 @@ struct fwnode_handle *fwnode_get_nth_parent(struct fwno= de_handle *fwn, unsigned int depth); struct fwnode_handle *fwnode_get_next_child_node( const struct fwnode_handle *fwnode, struct fwnode_handle *child); -struct fwnode_handle *fwnode_get_next_available_child_node( - const struct fwnode_handle *fwnode, struct fwnode_handle *child); =20 #define fwnode_for_each_child_node(fwnode, child) \ for (child =3D fwnode_get_next_child_node(fwnode, NULL); child; \ @@ -172,10 +170,6 @@ struct fwnode_handle *fwnode_get_next_available_child_= node( fwnode_for_each_child_node(fwnode, child) \ for_each_if(fwnode_name_eq(child, name)) =20 -#define fwnode_for_each_available_child_node(fwnode, child) \ - for (child =3D fwnode_get_next_available_child_node(fwnode, NULL); child;\ - child =3D fwnode_get_next_available_child_node(fwnode, child)) - struct fwnode_handle *device_get_next_child_node(const struct device *dev, struct fwnode_handle *child); =20 --=20 2.47.3 From nobody Thu Oct 2 02:15:17 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 7EFA62BE04C; Wed, 24 Sep 2025 07:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699995; cv=none; b=DDMQ7nF70KnF4VQJRSzvKwqlr/TK+Zglmv6GrJpwZxuKUDa4ip8MfNbR9bj+NwYyFVu7ncAyUDvcNTwy1yVIkpU5IIiu78irToTX1XGCvvzaO/ldvzm75fkKwMJdljEZRU53tkI7plNLJTUtUluTw31i+d3LGaQi+rM4ZMhA8EY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758699995; c=relaxed/simple; bh=B2qYXoILk/DYIyxK+5+jce29Axc6iUgAh2GsD4B1DdI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eItqpirYLLDTlOWPzR5jWTPR7ash2fEa+WF73ymkZ++ZfAMpFSYBOsZ7GvtzrLBtqW0k0CeNvPoBfGJnW29Px5rN1DP0BmzHp9zVEXwHE7tLXigPp7eHSWO54GmuOXX0NdpeuR27c1HUxJn8RGrbLvvDDomT63VyyMg7gK8+W2U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kHmEPVPn; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kHmEPVPn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758699994; x=1790235994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=B2qYXoILk/DYIyxK+5+jce29Axc6iUgAh2GsD4B1DdI=; b=kHmEPVPnN1aP2hC5rnfJ+UADE/DxFGyskCfyWBdZionCrB0qWvvTFLXh wiH7uPJdbcOC0ggQu6tBYVA4esN/LbG0Hz70k0D88SB/bUwYy26rptcLv kGHkN4uAE3SKHrhMHjlLqsfXYh18xTQfASz+3dGz/lyHhJ2FEs/A20rqx 2oxAz0WNMQHlfaRrnQBnfcPTE1JI9mPR33u+jDzFEYELoEGQyKnUMkEs+ EHI48a/qZFj2Gjy9wX9OqJ6G2XMkvORwKmN1yayOb0NGaW9cFSPFH/55c x0YJ26pi51bna0L0hHGIxJTvQ4sbTJqLmpztujpEoI4lct8z011LzyTks Q==; X-CSE-ConnectionGUID: BAjlYahOQkW9/VEoo1vA8Q== X-CSE-MsgGUID: zXaj7L88RyW9j/RRUbw92A== X-IronPort-AV: E=McAfee;i="6800,10657,11561"; a="61101995" X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="61101995" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:33 -0700 X-CSE-ConnectionGUID: aQ/ramG2R9C1HZvxu+uodw== X-CSE-MsgGUID: YLDbUcQOSiCcEGj8VSTxeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,290,1751266800"; d="scan'208";a="200668599" Received: from sschumil-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.128]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2025 00:46:25 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id C27EA121F51; Wed, 24 Sep 2025 10:46:02 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1v1KCQ-000000017Iz-3D1s; Wed, 24 Sep 2025 10:46:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Javier Carrasco , Dmitry Torokhov , Lee Jones , Pavel Machek , Matthias Fend , Chanwoo Choi , Krzysztof Kozlowski , Laurent Pinchart , Paul Elder , Mauro Carvalho Chehab , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Thomas Gleixner , Ingo Molnar , Jonathan Cameron Subject: [PATCH v2 16/16] spi: cadence: Remove explicit device node availability check Date: Wed, 24 Sep 2025 10:46:02 +0300 Message-ID: <20250924074602.266292-17-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250924074602.266292-1-sakari.ailus@linux.intel.com> References: <20250924074602.266292-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Don't check the availability of child device nodes explicitly as this is now embedded in device_for_each_child_node(). Signed-off-by: Sakari Ailus Acked-by: Mark Brown Reviewed-by: Jonathan Cameron Reviewed-by: Laurent Pinchart --- drivers/spi/spi-cadence-xspi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c index 6dcba0e0ddaa..23e426ef9b9c 100644 --- a/drivers/spi/spi-cadence-xspi.c +++ b/drivers/spi/spi-cadence-xspi.c @@ -908,9 +908,6 @@ static int cdns_xspi_of_get_plat_data(struct platform_d= evice *pdev) unsigned int cs; =20 device_for_each_child_node(&pdev->dev, fwnode_child) { - if (!fwnode_device_is_available(fwnode_child)) - continue; - if (fwnode_property_read_u32(fwnode_child, "reg", &cs)) { dev_err(&pdev->dev, "Couldn't get memory chip select\n"); fwnode_handle_put(fwnode_child); --=20 2.47.3