Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6062732rwl; Tue, 4 Apr 2023 07:22:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtocJSzjnImhl1MIJntfztuLlWaZvWBDz0jNIgAmSTr4+t8id4Q1RJAj78fgEgdd+Rvti8 X-Received: by 2002:a62:8417:0:b0:628:1a59:4c1 with SMTP id k23-20020a628417000000b006281a5904c1mr2834258pfd.13.1680618175608; Tue, 04 Apr 2023 07:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680618175; cv=none; d=google.com; s=arc-20160816; b=MBX0U20nXGiMFjLxaDz99UE2dnCLJdvX1Uc1XwtZSq//8N3KkrTnIBSXc5BBm6xNq4 +EevziGDw3czWzf0DPSwqCUVkarLqfv1vXQyZu/EgQ/RNzS/1kYBzk3u2NSIEx7X143+ Kz1yjJTKDpxeb6b0oN1y4sH9kbJNyfNY4QsD3eo1YP12eZZpmIn4L2wTgiGruZ97bDvZ y7PuMPCNEabPpK2VwlE0sO6dgbalJ4QYIQOkHAUkX3iQkvpxL85E6ACHuDOLvPeVdFJV 6YTEnPIwBaD8FXatm7kG6/kb0aPp99j90QT6OFwoY+KLjYREBguO88+SpnZsb0tbc7tB 8Obw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Zl7MLykOKA8UlNhyqu3tWD/vjZRODEGN3E9wOmRfmr8=; b=MHe2WoEF6lGz2/xznibk21wIaErIRsSbhsAmrOqMHgB0bkq6/og10YsyLt1zRsisGC Z7KEkaB0Us+1QIvhFjRgtWt31Rgn28rfPuo/KVIdJWhKBbNGuVkXf7LIFKPL4hmBHtBH Ip3VMJfd8w/LGvyOcj6HoppIDnvNxc35J6ZcTp+W1FvPtla8g91vkgZ0EX/t/HptlgRQ 4Cuc7UBeGDB6XK17BrM7pydEVTeywqoroHYZMSJTBWHvc//SBeWE2NhTzaLY9v+y5XKg w+HXUJ3+80znTty0cEXn67pRFTJgbJzr2L6uqNReP35w2iXkC+LbWGMePLYF8A5Erm/h gvkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HERL1THe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020aa78e88000000b005a8d979fb49si10807292pfr.98.2023.04.04.07.22.43; Tue, 04 Apr 2023 07:22:55 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HERL1THe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235139AbjDDONs (ORCPT + 99 others); Tue, 4 Apr 2023 10:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235737AbjDDONl (ORCPT ); Tue, 4 Apr 2023 10:13:41 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03ACB558F; Tue, 4 Apr 2023 07:13:08 -0700 (PDT) Received: from booty (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3D7E6100005; Tue, 4 Apr 2023 14:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680617587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Zl7MLykOKA8UlNhyqu3tWD/vjZRODEGN3E9wOmRfmr8=; b=HERL1THee0w4ARcbmdqBbW9M2FrPt7M+4Zaeh/18I2OVyQ3MM0Usdk7NaPHFHD9vHrkI+I e6Rw2Qo8DqxzMLNRPH7tdMTM4sXVOKb3byVmNQw1hU9hyte98VxCkOevjiFKXUjndP7l0o fQXdMmYky22zAt7WMMTqJNETXimQFN7kaXSK2gu+vzkgvcXwnoMVA+S4byJsnO9o0TyEdL NTpBE/7o4qGE7Tm1KSr5epsIsp2X3gs1bhxOKwvfmoWs1fJ9uXdwMxKdp72zRd/W2yJ+BC 2f5+NrOZt/WcDePLlFvQ+Cr+DbQfAOEuR513WeF4ixVoJRbe1FkVNLOkeaT62Q== Date: Tue, 4 Apr 2023 16:12:51 +0200 From: Luca Ceresoli To: Hans Verkuil Cc: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Thomas Petazzoni , Paul Kocialkowski , Richard Leitner , Laurent Pinchart Subject: Re: [RESEND PATCH v4 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats Message-ID: <20230404161251.272cc78b@booty> In-Reply-To: <85268d69-3d3b-2c0f-ba26-073f09052362@xs4all.nl> References: <20230309144320.2937553-1-luca.ceresoli@bootlin.com> <20230309144320.2937553-4-luca.ceresoli@bootlin.com> <85268d69-3d3b-2c0f-ba26-073f09052362@xs4all.nl> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hello Hans, On Wed, 29 Mar 2023 13:16:22 +0200 Hans Verkuil wrote: > Hi Luca, > > I finally found the time to test this series. It looks OK, except for this patch. Thank you very much for taking the time! > The list of supported formats really has to be the intersection of what the tegra > supports and what the sensor supports. > > Otherwise you would advertise pixelformats that cannot be used, and the application > would have no way of knowing that. As far as I understand, I think we should rather make this driver fully behave as an MC-centric device. It is already using MC quite successfully after all. Do you think this is correct? If you do, then I think the plan would be: - Add the V4L2_CAP_IO_MC flag - As the mbus_code in get_format appropriately - Leave the changes in this patch unmodified otherwise Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com