Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3222271rdh; Mon, 27 Nov 2023 08:56:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3mx8RS0J+g68/g+4WEFA7Mp/NjJ6zFaPRHyfANU+0xaf5K8Q/1Izn5Jik1QKhWDO+M7wc X-Received: by 2002:a05:6a20:42a8:b0:18c:4ec9:68fe with SMTP id o40-20020a056a2042a800b0018c4ec968femr7412123pzj.24.1701104201872; Mon, 27 Nov 2023 08:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104201; cv=none; d=google.com; s=arc-20160816; b=WFFBXOHtI41eGsoqnvqo10bXCY+SZQ8Z7GaRZlpV6MzYZK7XRe4rkpfyc9pRLId2Ei USFcE1UbByZJMw+1dzwevqtWC3x4sprmHVNbLcv16oDaxg8hMb/BYuMS8MtyK6us5TS1 6dkuSrT9IfvZ25a4PDzxd94PXu3p1R1PkV5GV6gsx9XIMyr7QOITnuqtWGlAS9CR23hZ eiYKEj09610beI5+G2iaV+u/7BtCQnE6we+UTLYHrRY9425Gl42qIjPHiUqkJyEljs7H piSA9CY52QRmGyxIMEtu46/CYjpA/Lv+K3wE8mb8DoA73eSfLj325Nk6xM1bX6Ruw6CP Z5KA== 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=dpcFK+jcO3Q5qSiLbqnlv/bkacyv1jLyDsiO6mCC1S4=; fh=oTBxGcRaftrfJQcSJqf1JrjXWq/M+yCOtUYEywDUzy8=; b=x3TlFCWyyT8D4KBi0FiBv0AxTGQa+3tyGGXe5BtKSt+y+pBWDM7H/2p/9bLhpHzyvl Cq1IPlSTytFqL0FlHdofKEO3XkoSiOJHH+xa1ws27Hq+5iJK7xINl1DIcu6Tvz5oRStx BMnaURHC3c14sNEh3jbpH9yP8h+6B1E04ZOPaeliCESzyBfB2j4gymOd+x+bzWR7N6N2 ByluLrv4jnh7alYVRTWqvLEXFtdar5OSL3mT9jRdrSwADPBh2z0UYieaWx/OmNHR0GtI Gt/kgE9CM1owAUbDbkbNer6ytqTtFpbnnth8ERuyL69yfqhk98J1SVI7fiopJkhq9/yb Nyag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=b8B91Hpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e20-20020a63e014000000b005c16f26b1b4si9733239pgh.440.2023.11.27.08.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=b8B91Hpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 72E3D8096465; Mon, 27 Nov 2023 08:56:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234401AbjK0Qzj (ORCPT + 99 others); Mon, 27 Nov 2023 11:55:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234360AbjK0Qz1 (ORCPT ); Mon, 27 Nov 2023 11:55:27 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD99A10CB; Mon, 27 Nov 2023 08:55:17 -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 0568C66022D7; Mon, 27 Nov 2023 16:55:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104116; bh=0IW6KaZQ66ctszxERd9LJZiesOlWHkv1oaN5vdBxTOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b8B91HpyP1Sf3w26/2U8ec9vYjPCdDWxjffLbFaIVAf32m07JWcjIgLw5l3GAN7zo dP6Tb/ovpk5XARCckipAA4Kq1UAslwqwcatQs8OsqO1RRZGaLMtjtO6ivnn4lVEZXg i6zDH8ehUe5HYPKQO7UVM78gtz9SE7IelAHYX5xM81s2CeV/KKghxucusWIH1VoW1x fW3Q14aGoqr1bj5JRO1WL75XK2MBkQ0qZxCPVXSd/tPpxa5jmYj7C8INRJn6KPJ8/y J5pj6QCauCj68sOV9mhlXmlnst2Q01bVkOCxkTj1nMdoc3GTnUo8j6oD+U0TAu2osD pATGmFRvNPJog== 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 Subject: [PATCH 14/55] media: microchip: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:13 +0100 Message-Id: <20231127165454.166373-15-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:56:36 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. microchip 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 --- drivers/media/platform/microchip/microchip-isc-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/microchip/microchip-isc-base.c b/drivers/media/platform/microchip/microchip-isc-base.c index 3fba0e2844b6..9bed33aaf36f 100644 --- a/drivers/media/platform/microchip/microchip-isc-base.c +++ b/drivers/media/platform/microchip/microchip-isc-base.c @@ -1821,7 +1821,7 @@ static int isc_async_complete(struct v4l2_async_notifier *notifier) q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; q->lock = &isc->lock; - q->min_buffers_needed = 1; + q->min_reqbufs_allocation = 1; q->dev = isc->dev; ret = vb2_queue_init(q); -- 2.39.2