From patchwork Tue Apr 16 19:33:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 13632496 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 16C5D13C3CF for ; Tue, 16 Apr 2024 19:34: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=1713296074; cv=none; b=rK94UM9arONEZCFtsdVj3kBoaKmwMhpW8jILUu69AQoMe1ET58j2DfGGS6g4wBNCT+e531BGqyQvpAlYOTwCnBKYnU5AK6xPuQ5WuPwJCBNPeIhn5eoczKklH1HPd32k01r2ZLGDUnJWHU1JxFoPD3slj/2mZVaOeQfeHAfuA7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713296074; c=relaxed/simple; bh=OX023vCDSksV4n94n8TNZmtzkek33LCJzZFZ+Xt33C8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qb1eqwoLJ4QguknDk3DDoDIa/V8Mw7hbtN4kJdRnKsK/xaqeusOOoKqejJHEbRLC9fX1mXhr16fPMci3M6mkK0ACUoHW9qj/Ta3hnQEaXL9mzG+yD4jCq5OuKeiWjvEKC5BcZU7JEX6cuKNVZvaH1VSfB/g5X4gQh+RcB+UUeBE= 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=IeB8kjTX; 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=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="IeB8kjTX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713296073; x=1744832073; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OX023vCDSksV4n94n8TNZmtzkek33LCJzZFZ+Xt33C8=; b=IeB8kjTXcPQ3uTLcH1qgwbbKum/uscSzDSJkNBCcyIJlVo2xEzMPCDz6 qF1abHUGN0XBMzTJqE8lzbiFVlcSCkvCZh/BKtf+Eqpi0nyUxqukx+cUb 0d5u76oXZZ4uwrBNhPBkrRMOPpipNPyIGEq/joPF/N43LYSDto3zphvH4 sGyJdHkk+W6w4JJpuevjAjim5wwlTS8lufwaaTNLtjcEziDhIhBF/+lUN L5daIk5kdyAbtsJzUCjiQ8RDbMq/kKaUOcOSiWagXt+pYnqkmodqDw5rb sHBYpGeHH2nkAtNVs2n9WKpgxlyhPjnL4NCtrDrtGC3AO0I1VZfCZ/QiF w==; X-CSE-ConnectionGUID: na5X6uiwT8aIkcyJslA4/Q== X-CSE-MsgGUID: zinJLPhKRYKKbynkt8/zaA== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="8929946" X-IronPort-AV: E=Sophos;i="6.07,206,1708416000"; d="scan'208";a="8929946" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 12:34:33 -0700 X-CSE-ConnectionGUID: AyKuSJZkQFmm7rYtQ1jJ8g== X-CSE-MsgGUID: KfhjWzIfQdSkChMvgAXnug== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,206,1708416000"; d="scan'208";a="22244803" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 12:34:30 -0700 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 6D77C12053D; Tue, 16 Apr 2024 22:34:26 +0300 (EEST) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: Laurent Pinchart , tomi.valkeinen@ideasonboard.com, bingbu.cao@intel.com, hongju.wang@intel.com, hverkuil@xs4all.nl, Andrey Konovalov , Jacopo Mondi , Dmitry Perchanov , "Ng, Khai Wen" , Alain Volmat Subject: [PATCH v9 46/46] media: ov2740: Add IMMUTABLE route flag Date: Tue, 16 Apr 2024 22:33:19 +0300 Message-Id: <20240416193319.778192-47-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240416193319.778192-1-sakari.ailus@linux.intel.com> References: <20240416193319.778192-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 Add immutable route flag to the routing table. The driver does not support disabling the embedded data whereas the sensor itself does. Signed-off-by: Sakari Ailus Reviewed-by: Julien Massot Reviewed-by: Laurent Pinchart --- drivers/media/i2c/ov2740.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c index 6e355e986b88..d6b4533a834a 100644 --- a/drivers/media/i2c/ov2740.c +++ b/drivers/media/i2c/ov2740.c @@ -1185,12 +1185,14 @@ static int ov2740_init_state(struct v4l2_subdev *sd, .sink_pad = OV2740_PAD_PIXEL, .source_pad = OV2740_PAD_SOURCE, .source_stream = OV2740_STREAM_PIXEL, - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, }, { .sink_pad = OV2740_PAD_META, .source_pad = OV2740_PAD_SOURCE, .source_stream = OV2740_STREAM_META, - .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE, + .flags = V4L2_SUBDEV_ROUTE_FL_ACTIVE | + V4L2_SUBDEV_ROUTE_FL_IMMUTABLE, }, }; struct v4l2_subdev_krouting routing = {