From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC18E2D46B3 for ; Mon, 25 Aug 2025 09:51: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=1756115484; cv=none; b=TaAyPETLBSElo9y5NjjD6OLG4PhEDC3nkSsnzgThQ7JxUBc/5x9YNveEHuQV/fxx1luuK2gvR488bKoTgmf1/s3a9EX8a1fJwV5/FHgx5IJNuqdKvtSGFPiXwKI22e+/sOHc/pNxY7rZO4DpDCC4zqZURDYmQqu/ERUnT+MZBEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756115484; c=relaxed/simple; bh=TJpxzv+aTeHJgXT6dqi7wWphXEXmHl6pG2zHU0wchEM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dmxFMkGU9gtaKwFvlSjo8UNkL1s6QBSIooaPU/5EMwIh/ax7y/rx9Z/SFjt49a6lMdNufHzupmYuah1Djl1IJrTqGmPbsurMAKKDF0xi+fH+n/092L62GmLHSsdK509XgpOOQ8pmw50NU9ZZFVZw9wdVLO2R8AKhhhKKjAH3IUk= 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=GmyGZ2qZ; 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=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="GmyGZ2qZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1756115483; x=1787651483; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TJpxzv+aTeHJgXT6dqi7wWphXEXmHl6pG2zHU0wchEM=; b=GmyGZ2qZOxWpgF/9JKWkdCBwkWrtgKuUtr4dMJj4xbAWPenQS0nbKQF8 vdsZNFwQ+61vDVhGJOM+K09EHaBWEnWEgj3tUGt/nwOWXzLYg6zKj6yK0 wohLfguAkZJ0AV1as4q+0fzSe/hReIpx6NKdL8eGrJYl22J4tjXNBhlYI uE/JWuEl3zM5lVpk/vIWDZgga8fWiLJTrsL1HkBPo7GQRArPuip5thDSP GafgzKviIIP3q4rDf99p3GoOjZgd0hPm35GxcY5FmmOI019iJmMFdKmaR ephP16S0YpIYlCRjnl3eE1uyR2gcbXK7MH9t7jwcvl0EHJk2UVBqhKxbC w==; X-CSE-ConnectionGUID: 83c25XPBRJGU7DSCnfjRZg== X-CSE-MsgGUID: +kwkKIhrSbOJT3S6ZQtlDQ== X-IronPort-AV: E=McAfee;i="6800,10657,11532"; a="69695755" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="69695755" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 02:51:18 -0700 X-CSE-ConnectionGUID: g2pZqWQTSjKGMhhlw4/xGw== X-CSE-MsgGUID: 8Bonr/3YT7edfXaR99zEXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="200195361" Received: from vpanait-mobl.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.7]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 02:51:11 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 1948C121F6C; 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-00000005adU-0FSM; 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 04/66] media: Documentation: Document -ENXIO for VIDIOC_SUBDEV_S_ROUTING Date: Mon, 25 Aug 2025 12:50:05 +0300 Message-ID: <20250825095107.1332313-5-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 Document that -ENXIO is returned when the user tries to set a routing configuration not supported by the hardware (or rather the driver). The documentation details the exact cases of this, besides -EINVAL that is already documented for VIDIOC_SUBDEV_S_ROUTING. Signed-off-by: Sakari Ailus --- .../media/v4l/vidioc-subdev-g-routing.rst | 11 ++++++++++- 1 file changed, 10 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 1cf795480602..15f448664e6b 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-subdev-g-routing.rst @@ -155,9 +155,18 @@ appropriately. The generic error codes are described at the :ref:`Generic Error Codes ` chapter. EINVAL + The sink or source pad identifiers reference a non-existing pad or reference pads of different types (ie. the sink_pad identifiers refers to a source - pad), or the ``which`` field has an unsupported value. + pad), the ``which`` field has an unsupported value, or, for + ``VIDIOC_SUBDEV_S_ROUTING``, the num_routes field value is larger than that + of the len_routes field. + +ENXIO + No such link can be created or such link state change can be made. Either the + sink or source (pad, stream) pair or the combination of the sink and source + is not supported by the hardware, or no multiple routes from or to the same + (pad, stream) pair are supported. E2BIG The application provided ``num_routes`` for ``VIDIOC_SUBDEV_S_ROUTING`` is -- 2.47.2