Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3223803rdh; Mon, 27 Nov 2023 08:59:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGAEGHtNffPyprE6GlLp7qX/CLKYaEUoUME48UDnPZSGl692+7S3S4tigQAFnd5X7LCPcC X-Received: by 2002:a05:6a20:5482:b0:18c:21aa:6a3f with SMTP id i2-20020a056a20548200b0018c21aa6a3fmr14290591pzk.8.1701104339900; Mon, 27 Nov 2023 08:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104339; cv=none; d=google.com; s=arc-20160816; b=Be+TUrqop4eMLQ6mhXEB7F53JRRBHoFMLloenIZRZenVz6EJEnEiqPyCpHcqMhqtqO fnk/ROoQJLReHlHSxYnEXkLn3W+LkIcIC+XZ4PNRNq5uWydWe2WJ9mNrDDohhqfs5VqH AsizqgeGvXa7t5Tw6ElxyuriarRSAd2hinJPo5SZkj2SUDuDKEYA3n+LMerkoSdBomPM 0eg2YqAnf4h4mSbx0Nz2foUx9oB8lDf6ML2iHdi04BfwW2RIsyGMXNiUIuB3XhOsFcXp k4cKJdFt+tBrUVJhLKLPlk9KdmtKCbaH7o9W/pJUgv9zEVqNl1NKQWgHktwyPHT7K1fd k/hw== 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=pzX0atrFlAG085OUqMn2hYVHc0Mhb0Cx6cCXJGt20LE=; fh=SQKlzfWgcvqjcWo23LAq+kvQBcPSrojXVJk1wG11AQ8=; b=VNxNHDElbUzQxlji0LfEsbdrzcqzGs4Ee/OzvSmOQLVSkXRdnLoPl2mRDfDasXxRMV IGAoXz6T9MA+QFzI3aGcZW+ZCI38NOKeLuk6eBcQxdiFAKfORZDUZnrfo7U/qHBM4Mh/ AcYPAR1uwE5aHYfDo6XMifw9DbAc8MwWMIJqHDRHZTadk14sdrXMolFT0Qkra+8FzBos i0N0hrmm3yiVnARflUGZMYujplXG563O5QxBHWxiDa5yNEKUP0oTGBQarrn+ZKCs2PhP zKUq3NgkxhtVGUi0qsgXIXLwud3TTLRz6wS6+URHyl/KNusPZ2B1SR+Cn96s+4N3pC6B MTrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aqpRUR5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d7-20020a056a00244700b006cb6623b76asi10383136pfj.128.2023.11.27.08.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:58:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aqpRUR5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 38C8D81653A3; Mon, 27 Nov 2023 08:58:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234676AbjK0Q5k (ORCPT + 99 others); Mon, 27 Nov 2023 11:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234674AbjK0Q4J (ORCPT ); Mon, 27 Nov 2023 11:56:09 -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 E5D8D2119; Mon, 27 Nov 2023 08:55:33 -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 085D266073E5; Mon, 27 Nov 2023 16:55:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104132; bh=2gAqxxEJ2KqwbPuMzplAmWNudI3ZJjJVcvYYervFwW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aqpRUR5B7rLkIPBrl96mQJqeD5R0o9Q5BMCoaKtg5QuqkLlcc+C911iU2FJnQzBX6 F2zlghBwHF16o0UIYyjlbkocDMkKKD/AaICpRYiV4w57I/LqUDJ+7dQqqlVlGB+s99 qG5ySA4re0p45He3Ra0IqcIm/IGL4lvPbWUIDdb93OxZFJA3DvKJqzFTnZhRkLtVu+ wOSCU48w+YYSaPCltcO+cYnd3AyuzqTB6xc881+R4CslyHe3nXrQe92JmFPJhK2CcM LegUwvBEHebpAjinyfNEM35kcTmAZRZrrc3iy/D1gvAN5Mt2PtX0axNXNrjYIbSTiV +T5FmrLdIH1Ow== 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 , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 34/55] input: touchscreen: sur40: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:33 +0100 Message-Id: <20231127165454.166373-35-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:58:51 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. sur40 touchscreen 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: Dmitry Torokhov CC: linux-input@vger.kernel.org --- drivers/input/touchscreen/sur40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index e7d2a52169a0..4da3063c352e 100644 --- a/drivers/input/touchscreen/sur40.c +++ b/drivers/input/touchscreen/sur40.c @@ -1124,7 +1124,7 @@ static const struct vb2_queue sur40_queue = { .ops = &sur40_queue_ops, .mem_ops = &vb2_dma_sg_memops, .timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, - .min_buffers_needed = 3, + .min_reqbufs_allocation = 3, }; static const struct v4l2_file_operations sur40_video_fops = { -- 2.39.2