From nobody Thu Oct 2 03:34:10 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