From patchwork Thu Oct 3 12:27:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13821003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12E1ACF34A1 for ; Thu, 3 Oct 2024 12:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zoIAJLEiK4YmLoPXQRr6ovZoiJ26IaJ89TksduxipBE=; b=Cdu+/WnUz8OYJ+tmcon1HwuWOh ej+AMpgh1qZENVdAvwNxl0erKLxV71V0Ot9dAgfvOBdFdIP8pU42UnMSGcml17FE92ghgcTI+7v31 yRTyK1j1dBj2EKtsAH9GPAlfMqv5JEypHeDk8PjoiAqFRZ14/MkIL3NiAwuwmW5brBEJMawvg60jr FcGAwISneODGXViThpWMf5+HHhH9wCjEIDznf+sjTf9G7e2Q8U9a0+YqcSMsKbEksIdTF97IJ++/D o2e7R+0hGdGrvfDEpYhPdw/5a3PQrz7SE+q824j9Jf3HZ5IxD8gCUqgNXw4YrBCEMqr0FfqVzTt95 04zBjAbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swKxp-000000091Qb-1wcK; Thu, 03 Oct 2024 12:29:49 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swKwX-000000091EJ-1RZn for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 12:28:30 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6156E88B11; Thu, 3 Oct 2024 14:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1727958504; bh=zoIAJLEiK4YmLoPXQRr6ovZoiJ26IaJ89TksduxipBE=; h=From:To:Cc:Subject:Date:From; b=FP3tqZ5KKqK3sTPPMjdxCUyZl85xnj9/m+h21CpJOnhIOAe+fnoixlPji958R3JUl AGGnCgqTOKWrFEpJD5O0R/QNKnSJREMhv033IvijcGa/fYdoKj18ShcQpGiB5UhCUy zRSz6fbkJpbPPalHm1h0mxv+wkdLFboj2/dH1+X5PIoPHYoXk9T6SVYOCR6dPjqj1w yPWRjZJmbOIPTBGIKMNzHGmvwkQalPJNSC/QINJNaAKZ2n4xnA6nI2w964s+hGpYcx CiXwd+RjYhx4sm7yywjmON5/P4xtXjSqeG0w3axQrzZtNTRllXxX0265/lPhbu5NmQ 9H//+hcDkGSkg== From: Marek Vasut To: linux-media@vger.kernel.org Cc: Marek Vasut , Fabio Estevam , Greg Kroah-Hartman , Mauro Carvalho Chehab , Pengutronix Kernel Team , Philipp Zabel , Sascha Hauer , Shawn Guo , Steve Longerbeam , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH] gpu: ipu-v3: vdic: Drop unused prepare_vdi_in_buffers() Date: Thu, 3 Oct 2024 14:27:30 +0200 Message-ID: <20241003122813.44746-1-marex@denx.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_052829_698144_8642172D X-CRM114-Status: GOOD ( 14.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This function is unused and unlikely to be used in the near future. Remove it. Signed-off-by: Marek Vasut Reviewed-by: Philipp Zabel --- Cc: Fabio Estevam Cc: Greg Kroah-Hartman Cc: Mauro Carvalho Chehab Cc: Pengutronix Kernel Team Cc: Philipp Zabel Cc: Sascha Hauer Cc: Shawn Guo Cc: Steve Longerbeam Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: linux-staging@lists.linux.dev --- drivers/staging/media/imx/imx-media-vdic.c | 54 ---------------------- 1 file changed, 54 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-vdic.c b/drivers/staging/media/imx/imx-media-vdic.c index 09da4103a8dbe..86f2b30cb06cb 100644 --- a/drivers/staging/media/imx/imx-media-vdic.c +++ b/drivers/staging/media/imx/imx-media-vdic.c @@ -180,60 +180,6 @@ static int vdic_get_ipu_resources(struct vdic_priv *priv) return ret; } -/* - * This function is currently unused, but will be called when the - * output/mem2mem device at the IDMAC input pad sends us a new - * buffer. It kicks off the IDMAC read channels to bring in the - * buffer fields from memory and begin the conversions. - */ -static void __maybe_unused prepare_vdi_in_buffers(struct vdic_priv *priv, - struct imx_media_buffer *curr) -{ - dma_addr_t prev_phys, curr_phys, next_phys; - struct imx_media_buffer *prev; - struct vb2_buffer *curr_vb, *prev_vb; - u32 fs = priv->field_size; - u32 is = priv->in_stride; - - /* current input buffer is now previous */ - priv->prev_in_buf = priv->curr_in_buf; - priv->curr_in_buf = curr; - prev = priv->prev_in_buf ? priv->prev_in_buf : curr; - - prev_vb = &prev->vbuf.vb2_buf; - curr_vb = &curr->vbuf.vb2_buf; - - switch (priv->fieldtype) { - case V4L2_FIELD_SEQ_TB: - case V4L2_FIELD_SEQ_BT: - prev_phys = vb2_dma_contig_plane_dma_addr(prev_vb, 0) + fs; - curr_phys = vb2_dma_contig_plane_dma_addr(curr_vb, 0); - next_phys = vb2_dma_contig_plane_dma_addr(curr_vb, 0) + fs; - break; - case V4L2_FIELD_INTERLACED_TB: - case V4L2_FIELD_INTERLACED_BT: - case V4L2_FIELD_INTERLACED: - prev_phys = vb2_dma_contig_plane_dma_addr(prev_vb, 0) + is; - curr_phys = vb2_dma_contig_plane_dma_addr(curr_vb, 0); - next_phys = vb2_dma_contig_plane_dma_addr(curr_vb, 0) + is; - break; - default: - /* - * can't get here, priv->fieldtype can only be one of - * the above. This is to quiet smatch errors. - */ - return; - } - - ipu_cpmem_set_buffer(priv->vdi_in_ch_p, 0, prev_phys); - ipu_cpmem_set_buffer(priv->vdi_in_ch, 0, curr_phys); - ipu_cpmem_set_buffer(priv->vdi_in_ch_n, 0, next_phys); - - ipu_idmac_select_buffer(priv->vdi_in_ch_p, 0); - ipu_idmac_select_buffer(priv->vdi_in_ch, 0); - ipu_idmac_select_buffer(priv->vdi_in_ch_n, 0); -} - static int setup_vdi_channel(struct vdic_priv *priv, struct ipuv3_channel *channel, dma_addr_t phys0, dma_addr_t phys1)