From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795008538; b=qY5/4O8zmKG/1tKoyBxrMXvsSVSZzz9yptDq1Vj079SC6auLw9dB3nMZutgvwgW3Ou8S omwr+3mdih2kPcWQqnxV0ofwcrOwfLrC7IRG+zDXj6yIA8IMU4mVe8OI3DLDQtwgioWKe wNxQjCJp5PVrLuILmUwwetkI2HzQ6syiWsYfylavpaIQ3X6BKPqrrYSK25vcCfaMGM351 VsK0Q7juTXVrg6FEFq3WmuhX62YZfEbxzhlleXs9D9yUt60dNKSCoeaHcQngi25OgCsXc p3LqxbUTIMXUBX8BxfASm6ysJ7L+B0yWIuh6tIl+E/VXBcll1MQLLatt7YPAr7gsrUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795008538; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Organization:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; bh=5tkAd2YMp4cYK3U5qCt/XTbBBviVz3IjU+jTw9GO8+s=; b=Lyiv1weSiM9Q0GjkARJtZgriqjGx7iRtWLa6kxyciZ0hWyb8HY5CJlQUoyZ2fKxQG/FC e2QhMR/XuZQfwgDsDtvuqSBFprVDMMDZ45xL/DUDVD7eRAO+CTRICe4DtNBcBbKl3WCyj xqUsEaQ59bsWgZB9HQKiv9iI8UIA/tyKQ53OJ5r4iLlIGNY7jpqjWmpMp/ovwp8oqj9Nh jhteGY10yZa7kJltuVXsoo0BXfmAdmCbqKDByLM+Gn/kdYqKGXr+xIB8ixPe0gW3XSsr7 jshYXlHsfdLDyKKfsdYAjF1/gHIDgojGBQoCQFqirB3Ob6iDKcxl3aNIybZRqpfgncw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RPTLAGTA; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FE06606A33D for ; Wed, 18 Nov 2026 13:28:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0FE06606A33D 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.a=rsa-sha256 header.s=Intel header.b=RPTLAGTA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795008538; x=1826544538; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qM+P/YzzGYtUY7nAH3Z5S6tMNLP+UuEWg2Oa46pHre0=; b=RPTLAGTAYclGPj4cvQr8bYnPSIrBrBq/ne9YSwfq8lKi08luK9SU2DU8 ejKV58QXX+s4MfOgNIizs5QzO3k69FS1I5uQHyXSiRDuAzKgwf2WeWcwm BJ3teQt4H5RrJGBfxXt+iSkQETa8NBNWmoPmqs7wL+M6yYNf9Ew5VbojJ gGepSZvLBWesDis71B4UWzKJC5U+MKY1pgu5j0E+ln+uCcQkJE/OZNfs+ YHq00kwDaEQOAoWnyK1cR1PKS93oZr6r2Ta9dSsfIC1trivOfxmZE8Bv2 asEpP3xi9K7bxla3sCFgH+s1MniRL/YKO1lLYIzMoLB4NLpnl7FkR+H8S A==; X-CSE-ConnectionGUID: 7IU1ThhzTl29/My5MQR/mQ== X-CSE-MsgGUID: k4HwL3MBSFyh/HCP9mD5/w== X-IronPort-AV: E=McAfee;i="6800,10657,11969"; a="3808628" X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="3808628" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2026 05:28:56 -0800 X-CSE-ConnectionGUID: 3AcqbkDfSze8SwLrFUDUjA== X-CSE-MsgGUID: wQ975ZtDQGuGHByeQwOXfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="10376693" Received: from ettammin-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.183]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2026 05:28:49 -0800 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 5BCAF122F28; Wed, 18 Nov 2026 15:28:31 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1xTfhz-00000000tav-48z7; Wed, 18 Nov 2026 15:28:19 +0200 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-media@vger.kernel.org Cc: hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Prabhakar , Kate Hsuan , Dave Stevenson , Tommaso Merciai , Benjamin Mugnier , Sylvain Petinot , Christophe JAILLET , Julien Massot , Naushir Patuck , "Yan, Dongcheng" , Stefan Klug , Mirela Rabulea , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , Heimir Thor Sverrisson , Kieran Bingham , Mehdi Djait , Ricardo Ribalda Delgado , Hans de Goede , Jacopo Mondi , Tomi Valkeinen , David Plowman , "Yu, Ong Hock" , "Ng, Khai Wen" , Jai Luthra , Rishikesh Donadkar , Mattijs Korpershoek , Antti Laakso , "Bajpai, Manik" , Divyamani Tripathi Subject: [PATCH v13 20/73] media: v4l: Add V4L2_SUBDEV_ROUTE_FL_STATIC sub-device routing flag Date: Wed, 18 Nov 2026 15:27:26 +0200 Message-ID: <20261118132819.213473-21-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261118132819.213473-1-sakari.ailus@linux.intel.com> References: <20261118132819.213473-1-sakari.ailus@linux.intel.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a flag to denote static routes, V4L2_SUBDEV_ROUTE_FL_STATIC. Such routes cannot be removed as they are related to hardware features. Signed-off-by: Sakari Ailus --- .../userspace-api/media/v4l/vidioc-subdev-g-routing.rst | 6 +++++- include/uapi/linux/v4l2-subdev.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst b/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst index 1ef3bbf28091..72787642876f 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst @@ -150,7 +150,11 @@ wants to retrieve the missing routes, it can issue a new - 0x0002 - The route is immutable. Set by the driver. Indicates that the ``V4L2_SUBDEV_ROUTE_FL_ACTIVE`` flag of an immutable route may not be - unset. + unset. Implies ``V4L2_SUBDEV_ROUTE_FL_STATIC``. + * - ``V4L2_SUBDEV_ROUTE_FL_STATIC`` + - 0x0004 + - The route is static. Set by the driver. Indicates that the route is + always present and cannot be removed. Return Value ============ diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h index 2be7db814288..477d3ce3ddb4 100644 --- a/include/uapi/linux/v4l2-subdev.h +++ b/include/uapi/linux/v4l2-subdev.h @@ -212,6 +212,10 @@ struct v4l2_subdev_capability { * unset. */ #define V4L2_SUBDEV_ROUTE_FL_IMMUTABLE (1U << 1) +/* + * Is the route static? Routes with the STATIC flag are not removable. + */ +#define V4L2_SUBDEV_ROUTE_FL_STATIC (1U << 2) /** * struct v4l2_subdev_route - A route inside a subdev -- 2.47.3