From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 CC7712DCF71 for ; Mon, 25 Aug 2025 09:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756115511; cv=none; b=SyiWa0yLZZxpoIf+5cgilxe6fwmeNUg4ySpqhierw2K4aZlGP04pEb4Ttw5DLLE2U5VrBCxI1RLevnJdAYlggKyDMPA7M6BND0c4/8KVg+nnxF1b/38m8kp4gpVYDSkNb4qZRsgFydVwve7CBPIYXK4UocKmbTSe2gjlcBlZ4l4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756115511; c=relaxed/simple; bh=LSIjfHfqlUiZa2Hig9SCzH08HSgnkvlbUDElXWvj6Jg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rzUeRJ/NEOLfjAzSxhkM1Q5eZwsGzbxwWMXpy71Wk+znUl4WFoiXE7oXmucVdAOSWTeI6QL/BwO6K3he7RT+5Ys3622tVypE10jW6RUN2dfAWkoyWf/GHlUhWQ3wA/M3M3Czmo5xAH4Zo7P8NSxfZitwBBgr7Jbcq+Cvv0WISGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Nkmnm/rW; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Nkmnm/rW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1756115510; x=1787651510; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LSIjfHfqlUiZa2Hig9SCzH08HSgnkvlbUDElXWvj6Jg=; b=Nkmnm/rWGiVoWqpsHPlJyOh9QBVjxw9J2CTNNNLW3Lv+ZVkMFmcMNPFV qruc43AKiTWjnFRbZGke5ZB6A8KaEIW7dfX6ibpzaKiUXWE5sNkT9F8xp 7J2dE4+Aqd7fh5pynyPijHXGuZ2o0C0l7bxtG8f49j1BNXEGuiMeT0eW2 vVMAOvMaEzOblfVdkkDIX4rRo1tGQFCDIv+g75AKFjA+PdvubPvUmZTvB P/DTfcflAqHa47aZdXkjqB07MzlaT3yLmUPpKQpswPWN4M8yJ+c4/Yryu K+spWDweouHtkdFzCVatMY+wVn6JLB5c+46iciscKfMjh/8bCs7I6vqyr g==; X-CSE-ConnectionGUID: VNUNlrRmThinvJXWTAveUA== X-CSE-MsgGUID: l1pz4uO8SRiIVlX2j5PjvA== X-IronPort-AV: E=McAfee;i="6800,10657,11532"; a="58032230" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="58032230" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 02:51:45 -0700 X-CSE-ConnectionGUID: 6Xq5DmwhTES/dLTHC6ur6A== X-CSE-MsgGUID: fjed4ut7QpKyY2lmyt4Cig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="173431080" Received: from vpanait-mobl.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.7]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 02:51:38 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id D6D58122004; Mon, 25 Aug 2025 12:51:08 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1uqTr2-00000005ahP-3XHs; Mon, 25 Aug 2025 12:51:08 +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-media@vger.kernel.org Cc: hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Prabhakar , Kate Hsuan , Alexander Shiyan , Dave Stevenson , Tommaso Merciai , Umang Jain , Benjamin Mugnier , Sylvain Petinot , Christophe JAILLET , Julien Massot , Naushir Patuck , "Yan, Dongcheng" , "Cao, Bingbu" , "Qiu, Tian Shu" , "Wang, Hongju" , Stefan Klug , Mirela Rabulea , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , Heimir Thor Sverrisson , Kieran Bingham , Stanislaw Gruszka , Mehdi Djait , Ricardo Ribalda Delgado , Hans de Goede , Jacopo Mondi , Tomi Valkeinen Subject: [PATCH v11 52/66] media: v4l: Add V4L2_SUBDEV_ROUTE_FL_STATIC sub-device routing flag Date: Mon, 25 Aug 2025 12:50:53 +0300 Message-ID: <20250825095107.1332313-53-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250825095107.1332313-1-sakari.ailus@linux.intel.com> References: <20250825095107.1332313-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 | 5 +++++ include/uapi/linux/v4l2-subdev.h | 5 +++++ 2 files changed, 10 insertions(+) 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 0b90be43af57..3c7fde673b34 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst @@ -151,6 +151,11 @@ wants to retrieve the missing routes, it can issue a new - 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. + * - ``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. Implies + ``V4L2_SUBDEV_ROUTE_FL_IMMUTABLE``. Return Value ============ diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h index 839b1329afb2..cb353fa4a4a6 100644 --- a/include/uapi/linux/v4l2-subdev.h +++ b/include/uapi/linux/v4l2-subdev.h @@ -209,6 +209,11 @@ struct v4l2_subdev_capability { * unset. */ #define V4L2_SUBDEV_ROUTE_FL_IMMUTABLE (1U << 1) +/* + * Is the route static? The STATIC flag of an immutable route may not be + * unset. + */ +#define V4L2_SUBDEV_ROUTE_FL_STATIC (1U << 2) /** * struct v4l2_subdev_route - A route inside a subdev -- 2.47.2