Re: [PATCH v5 1/2] media: atomisp: csi2: Remove unimplemented DPCM decompression
From: Sakari Ailus
Date: Thu Apr 23 2026 - 17:10:42 EST
Hi Debjeet,
On Thu, Apr 23, 2026 at 06:22:15PM +0530, Debjeet Banerjee wrote:
> The source pad format handling attempted to map DPCM-compressed mbus
> codes to their uncompressed equivalents. However, the rest of the
> driver does not support DPCM decompression, making this dead code.
>
> Remove the DPCM unmapping logic and simplify to directly copy the sink
> pad format to the source pad. Add an explicit comment stating that
> DPCM is not supported.
>
> Signed-off-by: Debjeet Banerjee <debjeetbanerjee48@xxxxxxxxx>
> ---
> v5:
> - Rebased onto linuxtv.org/sailus/media_tree.git (per Sakari Ailus request)
>
> v4:
> - Complete removal of DPCM decompression attempt (per Sakari Ailus feedback)
> - Keep source pad simply copying sink pad format without unmapping
> - Replace detailed comment with explicit "DPCM is not supported" statement
>
> v3:
> - Drop "staging:" prefix in subject (per Andy Shevchenko)
>
> v2:
> - Rebased onto latest media tree (fix CI apply failure)
> - Fix missing linux-staging recipient (typo in v1)
> - Fix indentation
> ---
> drivers/staging/media/atomisp/pci/atomisp_csi2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/media/atomisp/pci/atomisp_csi2.c b/drivers/staging/media/atomisp/pci/atomisp_csi2.c
> index 95b9113d75e9..64419c1a805e 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp_csi2.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp_csi2.c
> @@ -107,7 +107,7 @@ int atomisp_csi2_set_ffmt(struct v4l2_subdev *sd,
> &tmp_ffmt);
> }
>
> - /* FIXME: DPCM decompression */
> + /* Source pad format is copied from sink pad. DPCM is not supported. */
I think you just remove this comment and squash the change with the 2nd
patch.
> *actual_ffmt = *ffmt = *__csi2_get_format(csi2, sd_state, which,
> CSI2_PAD_SINK);
>
--
Regards,
Sakari Ailus