Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3221861rdh; Mon, 27 Nov 2023 08:56:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkKAlMDmHLxRcVuKGZYj/IEA/QiePwSqfrjfgooNBREsofQJF9v6xGJJrUoit5igEHs3JB X-Received: by 2002:a05:6a20:1444:b0:187:23f4:d061 with SMTP id a4-20020a056a20144400b0018723f4d061mr10036490pzi.37.1701104162531; Mon, 27 Nov 2023 08:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104162; cv=none; d=google.com; s=arc-20160816; b=07p8pqrU+1aTdHBFePC3Vmw9u4S8jL9c3dHJVbeIpGQAwLwOd2/DrhwwziwJgNpCb2 eKedyoiGmQWJWwRwtElTEgBCXHxn9NuhJcrB2fcDdYiE9kFIjPep66+Ibdro73jNAH7p K9+dSjmphxxf06xdrZ+F/xiL4qjL3ti5+GKOqmRUxC8p2sXw2tgsVM6Mymf4+AymWEgn 6MApb/DyUODtxgeu2k8q2ruprH+OpZ589X3Px45n2tzMLTy7qfL4f/1JsC7CSLczcq6f RtYAJkqHDE4krHG46EBx2bhbdz6cw0SeL0pfCaZ7w1YtTipuSSBMiDzUG+eDv/AoJH+5 KjFg== 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=5kuQBBk2gkYeMtccwPB5aoKoN9z3E1Z9HaVe75INAeg=; fh=p007ZZnBoIZCdm2IGyLxFZB1GSDa400lEu+i15yUK1w=; b=Wr4G2Jg3CbyxBdxPcPacTIR2MXdn7CHtbBy+jzpzDJ6Hbgu+BhT1kMI5UxqmvGyAyA zw2sttLiry1t4RdFTG/hic2wf0lr+fBnlBrAr40P9wPsgLqv0PdQkFMwk515ow5Wvuy5 2z69lf4LViK4bDpozMnXYWo2q/a4Q5IX9aGXeCPOAkGWGsmlfjgDq6mfnmbDQtMZmikt 85A0GcO4DkONK6D+Y5CAb8hMyV3Q2Fqkr5qCG5bSqPovpOe2nDbxZdLxuWC4AzwEjVIp hrHg4lZj59HmPGA9QDi8bFgVaiziEkSkYOJf3wDUnnT0wzmS3OBImUc2Hp50ZptFp6s+ Ni0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Vpjk+xeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v8-20020a655688000000b005c1cd55beeesi9965023pgs.435.2023.11.27.08.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Vpjk+xeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id BADB5812E35E; Mon, 27 Nov 2023 08:55:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234256AbjK0QzP (ORCPT + 99 others); Mon, 27 Nov 2023 11:55:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234214AbjK0QzE (ORCPT ); Mon, 27 Nov 2023 11:55:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6FA6198; Mon, 27 Nov 2023 08:55:10 -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 237A166072A7; Mon, 27 Nov 2023 16:55:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104109; bh=CXOqINnxnCzQ6XOL+VA2AacFLu6JKWe+Zb7RZAzp+MY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vpjk+xeWjjWP+R3N2SKM7woEQxBddVhXmlMwS3d0XkmMR9tHChI6HMPtT76eZVEGq KJjCRoykTj4IatyWsm9Z9aUQE4UWPj2h8ain2VdzOA7oHZMmej8UFS0YQuBTSvNial 2YdTFMo+0i2XSDZeogZXKs9/sVscCNm4SEmrQgNui+yp3QTAgFroSE73sHIg1TKVf/ NOzPbr8by7halFECH/emHR+T8pNaqeXCWfxrxXrlS3RPnPfAqHmv1vBUNl9VCrDXXV Vr1LE52EG94i4bmz9DywsOdMD45T5Sb53ELbT7JavhlUajhQimVCpnVLEkgfM5jLOr UjnbE5+ZuJxjg== 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 , Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Subject: [PATCH 06/55] media: atmel: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:05 +0100 Message-Id: <20231127165454.166373-7-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:55:42 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. atmel-isi 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 CC: Eugen Hristev CC: Mauro Carvalho Chehab CC: Nicolas Ferre CC: Alexandre Belloni CC: Claudiu Beznea --- drivers/media/platform/atmel/atmel-isi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c index da58f33b6b0a..9c156771568a 100644 --- a/drivers/media/platform/atmel/atmel-isi.c +++ b/drivers/media/platform/atmel/atmel-isi.c @@ -1244,7 +1244,7 @@ static int atmel_isi_probe(struct platform_device *pdev) q->ops = &isi_video_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_reqbufs_allocation = 2; q->dev = &pdev->dev; ret = vb2_queue_init(q); -- 2.39.2