Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3222571rdh; Mon, 27 Nov 2023 08:57:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7cEQnmjAApLKI9Q2sD0xtrYdcBZzmfbpon3IbEksjfuqOM0gR87Q4UE8PLpvTUgxYKsp6 X-Received: by 2002:a17:902:f68d:b0:1cf:6704:4340 with SMTP id l13-20020a170902f68d00b001cf67044340mr15651453plg.22.1701104226564; Mon, 27 Nov 2023 08:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104226; cv=none; d=google.com; s=arc-20160816; b=EIrQe7OXXALw92GeCuS3ukc6019aw8RY2JcMwqK7wgO3/1+onY7rFKA2e55pX9YmxX RMl2+8WZ7iueeanyXKfJJUWdDE3+bPgtPQKlYYKViveSzPzo7gEP9/sFEaapOZYTpnUo V/2/njiIDMYwdfzEclFQ1FBtH3+zcGbiXwKsbxVoTobGs9/6mvF9w780R3dR8yJuqHe5 aZ/3n8tJl6i8F43L5PDGmb70XlUpbjdCl7ojKXW41nTPtP3HGLjWpzbL+McNA1fTj6Iq uX5l7mRxQcTBpuIAoEDJyxFmnMA0cSMalN2SHzIkNaRCQrDpe7zmLO3m6mFdQgOsuZ+1 E+GQ== 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=+4XwxGCRZJCdp6qkqE8kFCfZvzuuHfuT8/NVUQruYUo=; fh=p007ZZnBoIZCdm2IGyLxFZB1GSDa400lEu+i15yUK1w=; b=u8njVrYDILMfWL9WiOCX+hvqyVdou+kZJj0poQNiVe1ut60yh3UYNwZrwxsgCgl6mc q/qWHnGMnOPhSznAd5pgN2O0Cqd5AEkX5QWXGfWojQSQoi5alH5Z9w3+jmwlwvUg7KBP TDYZnXHY7hVtNn9Pc1S2q/mUINQInCxItFMRI9cPTtcPqmMKW+OKQM/+JUtRh16/QeYe 2eCSn1nvrQytPTX7TM2VOwGZ8UYh3qcjUbdIwl0ePXPHbd4U1IZKsIJQAjsUY6OexjK3 Hl3ITDEaIWYPZZLQr1u5PtJ8juiFtpPOkypaCzCxnfBfzgxONt+TXCkHMmsGUDJp0VRe cEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Q/A0oatc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m15-20020a170902bb8f00b001c754f13381si7994049pls.455.2023.11.27.08.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:57:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Q/A0oatc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 1CDBC80966CA; Mon, 27 Nov 2023 08:57:00 -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 S234684AbjK0Q4g (ORCPT + 99 others); Mon, 27 Nov 2023 11:56:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234503AbjK0Qzu (ORCPT ); Mon, 27 Nov 2023 11:55:50 -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 CCFC41BE2; Mon, 27 Nov 2023 08:55:25 -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 06FA466073C1; Mon, 27 Nov 2023 16:55:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104124; bh=cnLy0TbF/AfysmCQDbLYpAUN3cPkSiq05OZ3x+S4YnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/A0oatc8YQfUvE4g3WNR5Iwa75SEj9b1Z75m/AmFMsMVVf6lGEeItRKQ7yjbPJ5b JvtkRawLZ08cpIxRcnJqyYtSInPApW54sNBQRPDN//py4BFi4Cpt2GOGI8qKbXpUjX wXz5IEFgS+NMHvE99jV6OGzbkAQvJ9XGYxiBEGKBavIU2CUDjtN98+bQ1z2xIesq4p /j/nZGg4ysEhLjc1pE3f0sAaYLJfhJHi56DGddzeSWPwwjkv6GNk9qFQjy+e4A4yJd PRzqqFMTTjTseaIiorvCOUx+bHBye7+QiVw7uJ8jRbCOag7gQw+hekNAoy9sRqFwDO MzDjSBSwDfEog== 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 24/55] media: atmel: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:23 +0100 Message-Id: <20231127165454.166373-25-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:57:00 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. atmel-isc drivers don'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: Nicolas Ferre CC: Alexandre Belloni CC: Claudiu Beznea --- drivers/staging/media/deprecated/atmel/atmel-isc-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/deprecated/atmel/atmel-isc-base.c b/drivers/staging/media/deprecated/atmel/atmel-isc-base.c index 468568b5bb7a..dbe611d03018 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-isc-base.c +++ b/drivers/staging/media/deprecated/atmel/atmel-isc-base.c @@ -1871,7 +1871,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