Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp108298rwl; Tue, 4 Apr 2023 19:59:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bPcpSvzPX7rkRcj+85p1ZNbuCNbUI8Xdgw912RY0nQUECBc6M4iEMv2KGYD1CBUbkEpAkR X-Received: by 2002:a17:903:230f:b0:19a:7f4b:3ef6 with SMTP id d15-20020a170903230f00b0019a7f4b3ef6mr5914127plh.3.1680663594244; Tue, 04 Apr 2023 19:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680663594; cv=none; d=google.com; s=arc-20160816; b=pEhw73OfY6GC4m5XMasuTwrVbVuzkCicKC+Ozf3DntVMQ5Bh2U53wI8UUp+vo1ys1z X9zJ5Y9acoT8EdaVikz2fqeZ1zNu8JdFFU92IPhWN0p3Ozr6r18VNpwjnWgVIuCkyPst Iwrx8NreRyyoSd45MbpvfYZ2qLNHNaauekYitfnbUWYsPDux6dvL2psBRbiSGi7Ak8KV cR8V0R55KMhuGo5ON95SpOPDtYjkIc7uye98S8cabhHZr5ifZkMzgaZSkMqOkSz5QXvv 7704Vfwdyg1Z0N8NoB2zb8DA7G7CIXjO6ns60StsQhwWDn3GcOezOAx1wYgllQr95MMn Sbzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X7AZOtWokNcYYKSflsCVCgQonZlP6wZk6V4HLLOJBJQ=; b=zQMJRnFCV7d7V8dHACDq99cqLi1hoKO1X9qhQlh60JKqZ2blVImktJsQirAykbMtux mcFu0OXbSVfc85D3Ht95zVDWA1LlBlZqMS8HR4afX0Y7ZWK2TJpSHx3xOgK8Z0B9H4pr uXCShzvbdqj8qk0RoTdjn/k6iDCeR9tAzBizFvoZdD/ZPube0bPZLdIcMlFGBWHeM5ct 4+J1GCDoiEidHxKlhbSpQYtHOZjS+zRUIq8nqhFgh0ur8fPTa4MW1lSWq2DpTWzGvasc YWSYXyZU2NVu9mSEPfpBVMdjctpLqtYtWkW21GFMlVEhuD7xlu0PxM9AARHO3UpyYsi0 HnxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="mWO+SH7/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik3-20020a170902ab0300b0019ce74dd5c8si11004738plb.529.2023.04.04.19.59.42; Tue, 04 Apr 2023 19:59:54 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="mWO+SH7/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236575AbjDECax (ORCPT + 99 others); Tue, 4 Apr 2023 22:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235178AbjDECau (ORCPT ); Tue, 4 Apr 2023 22:30:50 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97317BB; Tue, 4 Apr 2023 19:30:45 -0700 (PDT) Received: from pendragon.ideasonboard.com (fp76f193f3.tkyc206.ap.nuro.jp [118.241.147.243]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 622C2905; Wed, 5 Apr 2023 04:30:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1680661841; bh=92JxqutkaA7MOBZzEsI8JVLAVvvA2FVlO8U5Q3EjmSo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mWO+SH7/XV27sw9R9Rw+KgqItm8rURI5GQYFV1sl6pR8XqDB6GW41gIU2YwetbYJf AtRC/91JVGQs52YzgrvoES/zkyNKZ3kM/rEVQD8Wdrh/kfYVzeVJvyDFcz5Eo0QXhG Cc25z/I3g+l6D2expqUK61OIFTqhI2ZjYHVrjfc4= Date: Wed, 5 Apr 2023 05:30:48 +0300 From: Laurent Pinchart To: Luca Ceresoli Cc: Hans Verkuil , 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 Subject: Re: [RESEND PATCH v4 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats Message-ID: <20230405023048.GD9915@pendragon.ideasonboard.com> References: <20230309144320.2937553-1-luca.ceresoli@bootlin.com> <20230309144320.2937553-4-luca.ceresoli@bootlin.com> <85268d69-3d3b-2c0f-ba26-073f09052362@xs4all.nl> <20230404161251.272cc78b@booty> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230404161251.272cc78b@booty> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi Luca, On Tue, Apr 04, 2023 at 04:12:51PM +0200, Luca Ceresoli wrote: > 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? Given the use cases for this driver, I agree. > 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 -- Regards, Laurent Pinchart