gpu: ipu-v3: vdic: Drop unused prepare_vdi_in_buffers()
PATCH 1/1 gpu: ipu-v3: vdic: Drop unused prepare_vdi_in_buffers()
This function is unused and unlikely to be used in the near future. Remove it.
---
Cc: Fabio Estevam <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Steve Longerbeam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- drivers/staging/media/imx/imx-media-vdic.c | 54 ---------------------- 1 file changed, 54 deletions(-)
drivers/staging/media/imx/imx-media-vdic.c +0 -54
@@ -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)
Signature · 1 line
2.45.2
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Patchwork Integration
Dear Marek Vasut:
The unreliable Media-CI system has found some issues with your series.
Check the report at: https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/64596985/artifacts/report.htmPlease fix your series, and upload a new version. If you have a patchwork account, do not forget to mark the current series as Superseded.
If you believe that the CI is wrong, kindly reply-all to this email.
The missing media: prefix is expected because this part of the VDI is in drivers/gpu/ for legacy reasons.
Quoted 4 lines · Marek Vasut
This function is unused and unlikely to be used in the near future. Remove it.
Signed-off-by Marek Vasut <[email protected]>
Thank you,
regards
Philipp