Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3224308rdh; Mon, 27 Nov 2023 08:59:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7aFdZrS0iBrSyHDnDn2gWsQ+PjatremSdF1SU1we3RjDTR/XnD9Y4cWmVsTGKn3kLx3tS X-Received: by 2002:a17:902:d2c6:b0:1cf:cf1f:a4a3 with SMTP id n6-20020a170902d2c600b001cfcf1fa4a3mr4776166plc.0.1701104384487; Mon, 27 Nov 2023 08:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104384; cv=none; d=google.com; s=arc-20160816; b=bFt6a9zw3yFyPiFVn6cD4mrCGwoqcQMLyiVA6SOPAm0R0waqjt//5lhV++Z7bbgpBP OYRw64hdevLozeocj4DCUrWkS4a7sGd5U9xz9/SChCRDfCW3RgUzoCiW3eVTNBSLCWIH HsiFVhCqn03P40tkqV+ebU3Yu/YNwVKLLZpPX0x4ql90KPfY1WrS0nHqLfo7pfajkbKJ 4lAsUdPe9Nl2YogjlmlO30eKYo6mtZAaFvCvnDOSS2rYVGlbp/Ms1Bza9MFl99ykDKZX qAs9QIW8LJUudtt+RohQX6yp9UZdF+2Bt3XFKjltyOs68cy5+9BPgw88rbninXrKDFS8 nHWw== 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=ZCEJQ8V1nLKX+xFvb13tzMXcWHW6DcwI/56EL7rlF+I=; fh=nikTID0PJ6NwkGNufN11Ag6f/xC6mcRAltiCDIW3jKo=; b=0Ty/FcDxO3cvIi+sqePA10dll/5KdcSdyDjjlyGghRfvG/lFx4hYqtD83n3WbNTbSs syafbJn4BPoka2/gFWMRa1p/dCLSMvX5mQtrYaqaT/yeYV8JWtJUeynSRqeQpYAuLrpd ztUCedIA/1hAZsksHg9ltBxbR7cg9317RpHoG1Yi5PZsLDntyewmAgo1MYuxxSt6tLvy hMtXXKmvpStMV0pIdy7IXGiaXaAGnySZuagJL2ml2semSd4xJ6l90p0uCf7Qm4STp27R 7F0RaD2hq09FbQPAmu71jasrAMcnP5kmrqu5UzPyRSsKvawsKj7b9q/4NR3RnPnEwxCI 6elg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=J82+hXDN; 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 j18-20020a170902da9200b001cf7c82c00asi10597722plx.499.2023.11.27.08.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:59:44 -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=J82+hXDN; 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 5838E80615CE; Mon, 27 Nov 2023 08:59:35 -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 S234763AbjK0Q6L (ORCPT + 99 others); Mon, 27 Nov 2023 11:58:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234538AbjK0Q43 (ORCPT ); Mon, 27 Nov 2023 11:56:29 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2E4926A9; Mon, 27 Nov 2023 08:55:39 -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 14A19660738D; Mon, 27 Nov 2023 16:55:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104138; bh=HM7bQJTrYq0xI931RRj+exZg69MbeR6CU1nWD8Ux+n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J82+hXDNdOP+SagJpnZv37YHnFlwnFOlaRqILeWuFtj4UTpODQiiCXLoHRJMpFxxE TQseQi+Fb8JdftmA3rnrIRSHvbwN7H4s47izIb49/vo5u8p51C9EHhCVbhtUbzDsxY y886IwJB4KRf5I0fMIDCogDzSogPOEgvGPOycf7QjzGSncgxT6R0fWOOQwVGh26nHf eU2d6+t+2Ju5ICKEsFFgqUm2V8J4Afke1g+PCCHrXBYDRtgzpRfQPvZpFqgUgt1QG3 9B1+YAIEWU+WDdP3tRlFpWO6IEjzk/9xBChtGcNV+hAqKsQl63YCRhugv/z50+YPAG ZVqNQ3e/37VTQ== 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 42/55] media: pci: dt3155: Use min_dma_buffers_needed field Date: Mon, 27 Nov 2023 17:54:41 +0100 Message-Id: <20231127165454.166373-43-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:59:35 -0800 (PST) dt3155 driver use a dma engine and needs a minimum number of buffers to be present before start streaming. That is 'min_dma_buffers_needed' purpose so use it instead of 'min_buffers_needed' field. Signed-off-by: Benjamin Gaignard --- drivers/media/pci/dt3155/dt3155.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/dt3155/dt3155.c b/drivers/media/pci/dt3155/dt3155.c index d09cde2f6ee4..43b44af1e9ca 100644 --- a/drivers/media/pci/dt3155/dt3155.c +++ b/drivers/media/pci/dt3155/dt3155.c @@ -517,7 +517,7 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) pd->vidq.ops = &q_ops; pd->vidq.mem_ops = &vb2_dma_contig_memops; pd->vidq.drv_priv = pd; - pd->vidq.min_buffers_needed = 2; + pd->vidq.min_dma_buffers_needed = 2; pd->vidq.gfp_flags = GFP_DMA32; pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ pd->vidq.dev = &pdev->dev; -- 2.39.2