Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3222709rdh; Mon, 27 Nov 2023 08:57:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IENQfabem9i/e9zcYY3uoYuO/YgD72+GFu778SPq4QVsRyiilLV/EyGAQrW357aVaDUVrSA X-Received: by 2002:a17:903:1cb:b0:1cf:ad5f:20ab with SMTP id e11-20020a17090301cb00b001cfad5f20abmr12268980plh.19.1701104237439; Mon, 27 Nov 2023 08:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104237; cv=none; d=google.com; s=arc-20160816; b=K9GXohux+VC2p6FxHfGtCyl9YqOz5nTDwAoqSsG6LqGIer9x1Sp197ww74BcNnSfa4 xoYlDmBjqxIZNx77whVO067PM3OJV2EkDL2AOMfkd8DqALuP0GcUGBJ8fDMOBMRAyz/4 sFs1vBvxoUbr3j2J5Hq/J3MKLG+EQct9+f7V6AvyPeweDEukuAYNMGAGikE0JlKbKIpr Lbb7BE6BF0xeLjWiLwyNE9jWz2YLRW+nO13tq2TxxNU2y+rIT70+tUyzN/M7iBJfTh8w N5wpdqLdsHmj+fFv+bQvRSGkiqPgx3LI7ihDN/CmUismx3HlRrpPuMUVv+BcyZ/nGX3r Qn4Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s85Lk+29LziFIMEI0Bj41m5lt3osUaPcMsm7NOkdxoM=; fh=nikTID0PJ6NwkGNufN11Ag6f/xC6mcRAltiCDIW3jKo=; b=fkHTWVT372jWFKZU1pSsGmSXKmYKGlC/ioVOHq1pvrdnKLwK6e36rbBIL3Ik6zWAJx SWzkZXrd4NsQJKnN2CTsU+fANE0fKj1Y1tLwlDSCPiMpnrAO/wiK0/lL9woN2tMiG0tq 1GhcoHQhFGOfLPQ4XHV7sMp4w+P4BbAwlBEU1+CLtvX0bTcvKSDGjSOvLaUjYZsGarvc sHWMdA9bo76NnN8fi+daSY+uk/9fB2sWc/owVMIn55xgarRmLEv3RKqDtnbH7BdRZ+6z NcNjN1aHmjWvq5OQ0at6qYWsivHX8SGgH6qjdQHFGN+BQe1NclBrKGWgdaYaysk6MJ9a 9WOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="n/wP1EJ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ju12-20020a170903428c00b001cf58065627si9701139plb.303.2023.11.27.08.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:57:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="n/wP1EJ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 647A4805CCC5; Mon, 27 Nov 2023 08:57:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234479AbjK0Q4X (ORCPT + 99 others); Mon, 27 Nov 2023 11:56:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234481AbjK0Qzt (ORCPT ); Mon, 27 Nov 2023 11:55:49 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 563E31BC8; Mon, 27 Nov 2023 08:55:23 -0800 (PST) Received: from benjamin-XPS-13-9310.. (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 98F9C660739A; Mon, 27 Nov 2023 16:55:21 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104122; bh=xU5t5lXDyNc7SbgcJxDjwWv/JGjLx2P5DrRCeKKrrB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n/wP1EJ+piINx+lJsUpzunRoD05oSZyG2UdLFhXS653XIRx1GPz65n4PYYppZZNgN cLUA1A/P0pFwdqWCKcLN6I4JSg7/S+IlpKxsLgVDTItARf2zJWj1bYfc/mBwo2Lr3G asWjj47Ifceq5sLD/Ns5wh4XwmJC79uZR3gpaqGYXhEguFIfX+o0htikg1PuP1GkdG Etw45V7y4XIOpJxZFmAcK8lyDgwzhE3nFSLOQoMH+B2eEA4bQ4XSf3u088SA/5jdOS J/rU6r0PqfnUmGj4i1H0n2GDyuEta7yI9za38218FR3mylHZhyPQCRAzPgG1GelZHm JuK1J2F8WtY+w== From: Benjamin Gaignard To: hverkuil@xs4all.nl, mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, matt.ranostay@konsulko.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH 21/55] media: i2c: video-i2c: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:20 +0100 Message-Id: <20231127165454.166373-22-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127165454.166373-1-benjamin.gaignard@collabora.com> References: <20231127165454.166373-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:57:12 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. video-i2c driver doesn't use DMA engine and just want to specify the minimum number of buffers to allocate when calling VIDIOC_REQBUFS. That 'min_reqbufs_allocation' field purpose so use it. Signed-off-by: Benjamin Gaignard --- drivers/media/i2c/video-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index ebf2ac98a068..ec20849cd306 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -795,7 +795,7 @@ static int video_i2c_probe(struct i2c_client *client) queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; queue->drv_priv = data; queue->buf_struct_size = sizeof(struct video_i2c_buffer); - queue->min_buffers_needed = 1; + queue->min_reqbufs_allocation = 1; queue->ops = &video_i2c_video_qops; queue->mem_ops = &vb2_vmalloc_memops; -- 2.39.2