Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795975665; b=rIky4LwoF0PcZhIcM61GUCQJ2OWOPapiWotIAUPKpRrT3/C494Eeddif+zPR3inu4E/7 k7zfUXtLXYN6ASgHvOHzt4wHn2slKmN5I8ahXqaAqdxIhCb6JWL2FlpvepWzcHICoj4sh jQ7bilh752CTemcWQunPfzJXRfOw82Ma1XdKTWVMf/CX7ZuFZLAodfbm0a9Pld1Wi/UJl ZetW3bfe7JE5PUmz+RojB37lBxONZlEMdMiyzjYg3asHE7VdlrC/ycuaNn0vDAVHv1EtT VbO0GjXU/zPvpvG7uWiWmu7gnLkxUrmqa9NCu1tM9Gyk9ca9RcGO4guTMaY6/nDRvCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975665; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=XXRJcpTU9QjIzfFe4B7wSxdmLX/xKKkJafzMNhCePhM=; b=yWorrA2bOR3cBYIcsBX/yDyEr89Whf3/ao5AF2Ypzqh9n6od+b8+hev+FC2tb0kCnhIP 1SjSIAaEOXUJH+gHBXydSOpf7UMppPRIa8bHEYmUaTrmI+448r5RGjL4u/EPh385Km0n1 lx+fSXGIHCWQ9z8+Lw0IOqCAM2sJPOcGYvFX/6HfAr4pFL5FqpTeou5BPZ0LnelhLzFR8 ubFJhEH4Q8khUGF4qtNT63eVUciXbuG00s0wbiLdpI26Vzv1IOXngaYq/OdrXgLOXV+7f E6E+aNn9Tg9n7+WgErYYI9E6j90CZ88C6E5Y9dH4Fl9DxrXrcTY6kwnxzQgB9nxa2Lw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fu8IRn9r; arc=none smtp.remote-ip=209.85.218.54 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F01B606A687 for ; Sun, 29 Nov 2026 18:07:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1F01B606A687 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fu8IRn9r Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-c516a1623d0so1163478266b.2 for ; Sun, 29 Nov 2026 10:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795975663; x=1796580463; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XXRJcpTU9QjIzfFe4B7wSxdmLX/xKKkJafzMNhCePhM=; b=fu8IRn9r2reaDjGM2VHfVoDbWJxqeudysYQ0tdZm6N/tMRldHkW3xkTpxiVA3K1qMH t5rijFednyhxv+VsupI9g2cRH4aFFZdk+pI246xmhkJ2fesZ+81NkNCLF1tCVsbTViyo in+Ow9vWEh5Evo2bsQAvS2B+PKWgDhsSg33bSf1o0Xn1Wm6sVKcGOZ4719YhXjGHP3tv /zJMgmTECHVsKzYyl2gLMlT8xjNSi3CX9XPO732buxg3YZWtVkPANG4IM2NZQDAdxDWm Cw02z59jvlJyVk5IL6kLM4QohgZ8XEbT3/hsNbye3g74w6AdewWL1za6TGffJdzuUScc P5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795975663; x=1796580463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=XXRJcpTU9QjIzfFe4B7wSxdmLX/xKKkJafzMNhCePhM=; b=GuqzXNppSSjbNodcHOznfg4FVpaSkeLrKgLC99cMZm7v9YzoBRwTKvTrUeYq4YrPtk xCS+YeAx1PM3E1fR2nAbpWOB8ep/+FHVliX5L/79c6mGwrofg12Uqi50NmCovyADysHx g6+ZQUnosr0x3Jgt2j5dix+jtGvlff7aEPGaU4Ci+9bkelTunf0Q6omHkMB5zkIs/wxV HRuezSO6sSrClkvVQ8BHSa+pKw6VjyEN7cgtLsA05Uq/VIVZg5G8VUX5ABN+XiVN8rSd YaMKv/KjiqO2TODmw9NI4gK5D9Avc1WqylkPFg6xmfW28LgT+nZorp8EIk2079kFPXz4 iLoA== X-Forwarded-Encrypted: i=1; AL+hErHgn+eVO8Kfe4mG9kTrz4z3B16jfm8CTMWJQBRnC6Gn+qDKXepGeup3+szpkByEpsuhrvQSrMbqDdiyOQ==@vger.kernel.org X-Gm-Message-State: APuU4Z/EN8HDc9zG1j8a5yKH4JI5hks+Sr8IVm7C4g5Gyord98+wBf1i Aih+irsbGOqLVkD5q6U4kfBDaoJUHn4rZ0pyNd2EOlXvoIGUu++CNDcu X-Gm-Gg: AZFdTZf4ofVeB77ZIg5s/M84hT4XfLzOWQZQgslGOZhuYwU/xEyNt1rvBsKHJlX40Tk YoTgMowpDAcPepHimVhFB/HQy7rXolsmSj728C3s/teCrB2l4Bxj2Z+XpXyzD6lowCs61mvJtHA 8bKxyMDa84D0iUfut82eMTsucaoJaTs1IweM+wqbWl+RMwZuNtgn1TBuITmM0CmAYX+tIUvJ5Yw STqRWbVxBfTOIW3/L1+2mrSJ2JJLxapDrHzXawusYsAiyWQLr1+ycmkoaICeuetK1Wn9H/ZDlqg asTXDWHa4AlwChALfZRl4YAL8w1d/lAIBfqW68Hv0plvdT04C+zWqmJyPtnyvwnvrlnYUIcUih6 euXFA21kOKM5wgA1LYyvv8DyOr34WZOmTRMJ+94/Q3LGQFmi98MDUmbFYpi0ntIEyp5VX3PiRsM 5L9tqraDYcwiGvKcb9jF1TADsfVraK8TdIsIhB/MaM9OUfCxAB8twZmtqp5xSEY1qk3KNdpZaxe ytB87tCcWqnAg99l4hK+m9x14oG/ao39fkeS4y5is0HnvARXXfPV0/M2xCFtI+o34sqSiU659Hz iqHeSdmckOCn9nH8I1SQABWXHZmfON6szEJ8ora03Ymzh5iHBWe0OaV7RcUlXDJfz267Jfauuxl ihratgcXl7yicO7KLKWyS7kN0nd3Z5Tk= X-Received: by 2002:a17:907:a892:b0:c51:5589:355f with SMTP id a640c23a62f3a-c515589b2e2mr2546388266b.5.1795975663411; Sun, 29 Nov 2026 10:07:43 -0800 (PST) Received: from xeon ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae8ce16sm1061518266b.37.2026.11.29.10.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 10:07:42 -0800 (PST) From: Svyatoslav Ryhel To: Mauro Carvalho Chehab , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Greg Kroah-Hartman , Svyatoslav Ryhel , Hans Verkuil , Mikko Perttunen Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v2 02/15] media: tegra-video: vi: Drop controls consolidation into VI device Date: Sun, 29 Nov 2026 20:07:09 +0200 Message-ID: <20261129180722.142186-3-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129180722.142186-1-clamor95@gmail.com> References: <20261129180722.142186-1-clamor95@gmail.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 Like any video-centric video input pipeline, Tegra VI combines all controls from linked devices into a /dev/video*. This behavior is no longer desired, since it causes conflicts when controls are duplicated and does not allow including controls from auxiliary devices such as a VCM or flash LEDs. Remove consolidation of all devices in the pipe into the VI device. Signed-off-by: Svyatoslav Ryhel --- .../media/platform/nvidia/tegra-video/vi.c | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/media/platform/nvidia/tegra-video/vi.c b/drivers/media/platform/nvidia/tegra-video/vi.c index fa6114f4b9c8b..71921931457be 100644 --- a/drivers/media/platform/nvidia/tegra-video/vi.c +++ b/drivers/media/platform/nvidia/tegra-video/vi.c @@ -960,9 +960,6 @@ static int tegra_channel_setup_ctrl_handler(struct tegra_vi_channel *chan) return chan->ctrl_handler.error; } #else - struct v4l2_subdev *subdev; - struct v4l2_ctrl *hflip, *vflip; - /* custom control */ v4l2_ctrl_new_custom(&chan->ctrl_handler, &syncpt_timeout_ctrl, NULL); if (chan->ctrl_handler.error) { @@ -973,27 +970,10 @@ static int tegra_channel_setup_ctrl_handler(struct tegra_vi_channel *chan) return chan->ctrl_handler.error; } - subdev = tegra_channel_get_remote_source_subdev(chan); - if (!subdev) - return -ENODEV; - - ret = v4l2_ctrl_add_handler(&chan->ctrl_handler, subdev->ctrl_handler, - NULL, true); - if (ret < 0) { - dev_err(chan->vi->dev, - "failed to add subdev %s ctrl handler: %d\n", - subdev->name, ret); - v4l2_ctrl_handler_free(&chan->ctrl_handler); - return ret; - } - - hflip = v4l2_ctrl_find(subdev->ctrl_handler, V4L2_CID_HFLIP); - if (chan->vi->soc->has_h_v_flip && !hflip) + if (chan->vi->soc->has_h_v_flip) { v4l2_ctrl_new_std(&chan->ctrl_handler, &vi_ctrl_ops, V4L2_CID_HFLIP, 0, 1, 1, 0); - - vflip = v4l2_ctrl_find(subdev->ctrl_handler, V4L2_CID_VFLIP); - if (chan->vi->soc->has_h_v_flip && !vflip) v4l2_ctrl_new_std(&chan->ctrl_handler, &vi_ctrl_ops, V4L2_CID_VFLIP, 0, 1, 1, 0); + } #endif /* setup the controls */ -- 2.53.0