Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3222644rdh; Mon, 27 Nov 2023 08:57:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3ftijbSePqzaFLat2/YXxJDRzU4W1VBbAFjlI8JY9MeFiHyaqDbcB6hjOpBPWZX1fWeHd X-Received: by 2002:a05:6a20:144a:b0:18c:548d:3d1a with SMTP id a10-20020a056a20144a00b0018c548d3d1amr7454434pzi.58.1701104232231; Mon, 27 Nov 2023 08:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104232; cv=none; d=google.com; s=arc-20160816; b=QavTODbeiDvStPjr10zPAms5ek03rPXHuc9fcKyoj2GFg5jZmrs30Dy7wRSoqL/zzI nMHp2VBydh92F5q6V1YwcQAIzu8q8pApRc7BUeQYiY4I1BaYH6DPq6MF5p8XYFY+G51r YzLnv+qjZC7N7MQ1qAFj/3qBtu0CkwlwKr+dCa8ecwe3dfp5RiGKBbKQg6UfQRX8+LbE /O8ge3ZsQutx1WviyPwL8QA0PL++7C+Q6hfRRWtHFlZHqkzwiX1hMIz/qnb0xXC+yJO/ 0s3L8PPzc3pIwAtAPbvmGPErJjPpV/69NkMwZ46QDymnENfbmTTwSUR4r/HIrT6Y6/cw koSg== 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=u7IgS/+P0gNvgKv63zHs2CeYD5kF9tHrVE7glohWyJw=; fh=geKXB7wGoKQsgcAQSSaAFr2nWc/ksQsozklRDeuF3lI=; b=AkieJQ0U9a6vfeAHfcBfOFp6is/CiENLpH36I6XXpI4yXL1iOqw76tgAapgHrZaacA 9VVdlYzrt7S0vGwyl52Z4l7FbxTze3UCJO+YxfeBDhb5GLmNbbVIsXjBdMVDsrvGDIfM IcdDOP2W2xj662VLkyoDRJgrhlFlphM02kp1XfUDYXB7NBZOoVSvg/KIaVJzkTDcM9gV iIFQRxh/og57A0YhnZyjiXw+4MDkfvZ/SkztNh6+Yj6THKZhA3rPCdTRT5W8P5Xwp4iL QMmD3tLOIOW+1qv41bU512pFdRt16REX28OoY68KRESZJ2KHU3c3bWoe9MPau29qrrpH ppyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SYacJ+X5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s1-20020a056a0008c100b006cb6338dd60si10503976pfu.19.2023.11.27.08.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:57:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SYacJ+X5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 35EEF80A2671; Mon, 27 Nov 2023 08:57:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234525AbjK0Q4z (ORCPT + 99 others); Mon, 27 Nov 2023 11:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234709AbjK0Q4Q (ORCPT ); Mon, 27 Nov 2023 11:56:16 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DA73212C; Mon, 27 Nov 2023 08:55:35 -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 75AB7660737B; Mon, 27 Nov 2023 16:55:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104134; bh=X02tzOo2kO6Xf8Mm3XO+fdYdi1NrT5mrpTJUnhqGe4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SYacJ+X5qY1brq6yAX2v6Zh8vkADiRh6fL5ssu4J7Myr/+F2ok5EzyvDWTgMHHjXP 5zzfGnbfATjw9t+mQdXymhiV3mymtoeLiX65T3m8+Ae4xllQeIw6OFIgIeSqC1NSzn dbhT00XGtQ+nld5mStG1N0pyys73Mse09oS0sERTP7WakGbDOcD4bjJEPnjWZ/NJ7y Gor0tI48ojqW9MVdR4Al0vXf/6SiknsCV8AFr179BFApBGgQUjqxKUFHRGZtC/PScq 9FbmTemR64ciabk44Ke+awxocJzpI59XYNQVsAv4rhwe4vkrNSdaZJSSvCkpQR6meB 0UY/Dv//MyFIQ== 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 , Hugues Fruchet , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 36/55] media: stm32: stm32-dcmi: Use min_dma_buffers_needed field Date: Mon, 27 Nov 2023 17:54:35 +0100 Message-Id: <20231127165454.166373-37-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:57:11 -0800 (PST) smt32-dcmi 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 CC: Hugues Fruchet CC: linux-stm32@st-md-mailman.stormreply.com --- drivers/media/platform/st/stm32/stm32-dcmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index 48140fdf40bb..a267fdcbe886 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -2031,7 +2031,7 @@ static int dcmi_probe(struct platform_device *pdev) q->ops = &dcmi_video_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_dma_buffers_needed = 2; q->allow_cache_hints = 1; q->dev = &pdev->dev; -- 2.39.2