Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1162937rwd; Tue, 13 Jun 2023 05:52:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bd6ShJ1BzIa0lDxzPEv5qUtwWZC9jq8UM/X0wHKdjMLTskInbrc583N45t0/GCm+8CilE X-Received: by 2002:a19:671e:0:b0:4f4:3418:4726 with SMTP id b30-20020a19671e000000b004f434184726mr5163903lfc.56.1686660769536; Tue, 13 Jun 2023 05:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686660769; cv=none; d=google.com; s=arc-20160816; b=pjzozetCMuUx2m7L2WjotXSTTziKKtHj+bz1Jo82qt7fD82htfgOYAV/rG4RSA94Sp VA2JYv1oUQEJsMMHBZUzH7UEMvww6BvHypBaemHPW6RwuoZo0IDnPbD6ZdT3ytJ+yggD t7/IWZd8RJvxxmjEp3JV4TFIvtrcc6guWhUol5Ha3juCZtuPUMmlODYUyamBUW7HTEJj 5hq1X0FL/PmrZur+fmPaOPype1oAyeeM/mrsvwu+w/2Mx5pHq5qyBO79X8p6bPfZQ9N4 9FxBw5LnDRiQlCDlncXPCIoNiKT1PpJn0rUkz7g80Po4cM0m+ERwPaWAVeIeqsHuKwMk 7Jlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4EWXNFE+8IMMKRfMeuW1FORMYvFexwLv1FqXplBGv0M=; b=AVnBzg3KK71yD4bicNuxRbgcGlBSPsGr7TZhnB1hGHF26KS0VswcwQJfmArbhJmYv2 IU6waVvm2YbiPT2UW9N2asLqOKw50YCYRPZG8d0Ol+lZ25L703fPRHfOS5G8P1RgNwG0 j1n5UCvvxtAeXXh5Z+56dEDpLbV5gOcZVupnHk1G/cOayX7wO2nbn5LojaqQlQZMPX94 CJU42rlx7DDuq6Natsz6kLOnUu0qwaA4OModfhve3v1HE7GCHogqKmgVrPIEX7ZITY4+ HeAskudBTg4Cv+g+bpztObfZafXp9nhpQp0t9WsYrRHavyYyqRGz5/Mxx9ljcs9a8KbK Yt2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc19-20020a056402205300b0050bc49d4aeasi7346996edb.504.2023.06.13.05.52.24; Tue, 13 Jun 2023 05:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242344AbjFMM0k (ORCPT + 99 others); Tue, 13 Jun 2023 08:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240072AbjFMM0j (ORCPT ); Tue, 13 Jun 2023 08:26:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62D610CB; Tue, 13 Jun 2023 05:26:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7B0406359E; Tue, 13 Jun 2023 12:26:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E20DDC433EF; Tue, 13 Jun 2023 12:26:35 +0000 (UTC) Message-ID: <313827c0-3b7a-e70a-b281-cbb5f68e6fd2@xs4all.nl> Date: Tue, 13 Jun 2023 14:26:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [RESEND PATCH v6 1/1] Added Digiteq Automotive MGB4 driver Content-Language: en-US To: =?UTF-8?Q?Martin_T=c5=afma?= , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Martin_T=c5=afma?= References: <20230524112126.2242-1-tumic@gpxsee.org> <20230524112126.2242-2-tumic@gpxsee.org> <3a7da3cd-8d03-a2c4-0534-a75565aefc13@xs4all.nl> <0cec2b34-01bb-ec0e-f215-9e6ed3f44e73@xs4all.nl> <5021c762-3435-719b-18a3-def7888fb5f6@gpxsee.org> From: Hans Verkuil In-Reply-To: <5021c762-3435-719b-18a3-def7888fb5f6@gpxsee.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/06/2023 16:36, Martin Tůma wrote: > On 12. 06. 23 10:42, Hans Verkuil wrote: >> On 08/06/2023 13:16, Martin Tůma wrote: >>> Hi, >>> This is the "technical" part of my response, comments bellow: >>> >>> On 07. 06. 23 10:41, Hans Verkuil wrote: >>>> Hi Martin, >>>> >>>> Some comments below: >>>> >>>> On 24/05/2023 13:21, tumic@gpxsee.org wrote: >>>>> From: Martin Tůma >>> >>>>> diff --git a/Documentation/admin-guide/media/mgb4.rst b/Documentation/admin-guide/media/mgb4.rst >>>>> new file mode 100644 >>>>> index 000000000000..77db2fa64ab4 >>>>> --- /dev/null >>>>> +++ b/Documentation/admin-guide/media/mgb4.rst >>>>> @@ -0,0 +1,352 @@ >>>>> +.. SPDX-License-Identifier: GPL-2.0 >>>>> + >>>> >>>> Perhaps it is a good idea to start with a high level overview of the >>>> hardware blocks. That might help understand how the various parts are >>>> connected. >>>> >>> >>> This is the "admin-guide" documentation and I'm not sure if the admins (= the card users) are interested in some hardware blocks description. I can for sure ad some basic info like that the card (with >>> the given module) has two inputs and two outputs, but if you hold the card in your hands while installing it into the PCIe slot you definitely notice that ;-) >> >> True, but I don't have that module :-). >> >> I assume the inputs (and also outputs) are mutually exclusive? I.e., only one at a time can be active? >> >> But it is also possible to switch between the inputs/outputs dynamically if you want? >> >> Right now it is hard coded through this property, but I assume there is a reason these >> modules have two inputs and two outputs, so it is odd that it is not possible use >> VIDIOC_S_INPUT/S_OUTPUT to toggle between them. >> > > With the current modules, you can not even theoretically (after changing the FPGA bitstream) change the outputs to inputs or vice versa as the the serializers/deserializers are hardcoded on the modules. I think you misunderstand me. Let's keep it simple: a source is connected to input 0 and you capture from it with V4L2. Can I dynamically switch to input 1 and capture from that? I.e., each input has a different source connected to it, so userspace can select from which input to capture. Right now it appears that V4L2 just advertises a single input. And the input_id property is read-only. So that means that input 1 is effectively unusable with the current driver, or am I missing something? > > I can post here some photo of the card, if it is ok to send image attachement to the mailing list so you have some image of what we are talking about. Or I can even show you the card live when you are > in Prague in few days. Actually, I'd like that! We'll meet there anyway, so that's a good opportunity to see the real deal :-) Regards, Hans