Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3223170rdh; Mon, 27 Nov 2023 08:57:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJwYkWGdU8ph6l1KbRBw11WeXZF70mkkRDKUmNcBxmiW6WGru5NkYog3wxEw1ev2sAv3qg X-Received: by 2002:a17:90a:1dd:b0:285:9940:1bac with SMTP id 29-20020a17090a01dd00b0028599401bacmr10132864pjd.2.1701104277507; Mon, 27 Nov 2023 08:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104277; cv=none; d=google.com; s=arc-20160816; b=EGq+XaXJlH9yN0xxnUyUvkG76J5NHZIC+01szxoR9ukc/tk9eHWg+fkJoe9Np3MlGM E0L89wk57yRw3nmjhAyaM6jCZQCfqWuTA0COoqfM05SfiMw2/cNoRh+D5cRKfB4vrTXk bueqoJ27dz9QK8b6O/+VUW3QhyUfnzjt1Ysmy202dLHL8i8rgGtEOHAWKFmLjuobPeMP iHaCE4ygZ3G9QDFvyDt7nd3QKILEM8uKNk7LLEtEsHeggx2Y6zJ4I3qDKPxODrPnEa0U 5sVQXYNY2lwk123PxDdMkVahPXasczLUL7q+QC9O0rUsiIULymz278vFlSfVcxBaBBnY GMFQ== 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=SBNW/YJK6K2G+hVicyPPcdl/GrazYVOqhReu3lahIKo=; fh=F9Wo7Upi5maJ0HItWiuBb8O8KHF00eEKEUtSOxJDMGk=; b=WZiRU/C8zvEN0/tb/pIMNQ+PORAn73QpoiF/6f8QFTieENRh171FsisQrjA7gouY8n algD5trdLe84wD7tqpYMPpp/oiTJ6h/nRp55RlKLpNVVNInfoVT/DI8CyJYrNhYmrAjF afXJeof+Jh/L0/Fpg9KK2ur/NSG9s8UO8rOtj0lmLdgJn5yOj6XBBoYBAgnfG4DExlSG sHtRWrz8CnsduTNtfm52cDsvrmFq2UMVA0HlqKWvp6HihDFdPUqwyXSJkux0XTlGDrtN 5cE0hA1P7j8u1bfwvYO1NxOjAv7FzbzJbDSZTQ2jMG2dndnDeYvnxSVWOBhnDV3Rp1Dx Pm1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LdlQSF8T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d1-20020a17090a114100b002850d5f8ab3si10327208pje.174.2023.11.27.08.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LdlQSF8T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id DE73A80620BB; Mon, 27 Nov 2023 08:57:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232971AbjK0Q4m (ORCPT + 99 others); Mon, 27 Nov 2023 11:56:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234540AbjK0Qzx (ORCPT ); Mon, 27 Nov 2023 11:55:53 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF5231BF5; Mon, 27 Nov 2023 08:55:27 -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 AA81A66073C8; Mon, 27 Nov 2023 16:55:25 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104126; bh=yTw2OYKem5rJF2Nwf34/Wc4CllCCaoPD56PNsk9nNiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LdlQSF8TUQUtEtQEX4FNz/sBA53t5NMSXGsZ7LoAxMo5zdnlfbOxs1MNTBy1JrjfA xCwqsJ/8Kry0SJi3u6Dpp9FextBN6RG6fN9a32XVoqePLvzxR9KiFPS4D2pnePmpRo BmypuumCDQykRPHnKSYMKZ3yvhyHoGQMsiGEODDUbc28DDz4RoK1UOiY6oftKGz6fV AJv4rNy63G6mMHKUcxHfbHSVhpUYe2irMrL8EOccFCwsWd9nZOmnV3SBpgcSqaswfn k7tAGqOsC14HEO1SsGqxPT6+5Tqe3lTwQccVH8KfoH9wUw2pZ/f/LQJzU41nIRDLgb Vm6Zkj3oOjoKA== 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 , Jack Zhu , Changhuang Liang Subject: [PATCH 26/55] media: starfive: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:25 +0100 Message-Id: <20231127165454.166373-27-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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:57:49 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. starfive 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: Jack Zhu CC: Changhuang Liang --- drivers/staging/media/starfive/camss/stf-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/starfive/camss/stf-video.c b/drivers/staging/media/starfive/camss/stf-video.c index 0b305f21eb53..25038e37e8a6 100644 --- a/drivers/staging/media/starfive/camss/stf-video.c +++ b/drivers/staging/media/starfive/camss/stf-video.c @@ -513,7 +513,7 @@ int stf_video_register(struct stfcamss_video *video, q->buf_struct_size = sizeof(struct stfcamss_buffer); q->dev = video->stfcamss->dev; q->lock = &video->q_lock; - q->min_buffers_needed = STFCAMSS_MIN_BUFFERS; + q->min_reqbufs_allocation = STFCAMSS_MIN_BUFFERS; ret = vb2_queue_init(q); if (ret < 0) { dev_err(video->stfcamss->dev, -- 2.39.2