From nobody Fri Jun 19 09:26:42 2026 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B82B522FE0E for ; Fri, 24 Apr 2026 13:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777035888; cv=none; b=L9SaBRZ8qQVesWjJua0O9H6g1JeKbl/95V9EpGupgVQtmrdAq40J1bV1OTpZHSPBq1hntJjC5GioDJG2lkIzB5oTaDYoRFYF/wQf55MsKMAts8m4j71p0eYFSwKwbZB72mZvra+McAzFV0x17I0CNknOYABJzoyOOWb11PWxEBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777035888; c=relaxed/simple; bh=sUhARkVV6WLuVK6uPJiiX5weqFRNg5lAxGuewHw1t0g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q61JnxY/7TF/LiZ12iKaugA0VxrkVxCfQd3MCS0+UUkIz90tro4gd7CBTyBj2JpHXQZwZsTxiD2723L67IO7w0Uf0bUkSdSQs1CEOvoddnK52NxmA4Dz92EPLaqZNMVcys2BDdY57JtdGWqSIu4+3zV2nb5jH132XbypKH9ba2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ngnHd2FS; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ngnHd2FS" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-3590042fa8eso6244433a91.1 for ; Fri, 24 Apr 2026 06:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777035887; x=1777640687; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e7K+Nhaj6x5Daa8GmE0tApiYThiT0TvOLB3gffHvOj0=; b=ngnHd2FSrHUnTjl0jd0LCzjgjUAx+rPgP7RePCtMJmw+dZFpOLETKQOXKquwS2Ye4F Qb5IVrY46vqWsa8RQmfJzWz6yItue+Q9O0udyhYJJt7zkKJQUq9ADhG9C3BkKv+PVEKL oIxFIVedKbG8l+/rFMEAj5Ck0u62ebTIYwFUvnpgc9aN5byhyllCkdtjuRGA2SLTgcBp aBJRSMHE7cOc8lFclUwIWyKtmxHI1nngPfiIVfk2MxM9xfl+Z5uNGwgrad/mv0Z0R0fw apgK/FG0P9ukz9RvxjxfPF6s5o0QLsX7RIA/i5G/B32ljY86tGXOHnAHPUVF1JdOqnd/ Hw4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777035887; x=1777640687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=e7K+Nhaj6x5Daa8GmE0tApiYThiT0TvOLB3gffHvOj0=; b=ogB52QYScatEEwSL6mBAdp47bX0ZZ7uK8EtQyt8kjU7GbavxwItNolsMOCUW7v5ZV9 EHNee4BCkU/QZmHUrPEe4d/6cLIkvHiQ39FYLdLGMx6cu2RoEtzDcBhTz7uxRsWI8yfk uSAlYKxuX3MgXaR3D8Hh9Yv25lLvqbOLqPg40lytVBSbAD8PL1HlVLhQx8kUfMjFm6uT /wSGoTktjqRN9f4ZM9ft2i38njzVF2WidG4ywsLQOwRpC/KwAT/gNB6IDsESUl7M6jXx j0Vs7Gc9jmegs5znd3DuLGdxP6tBJnBtRFCLdrgL7/GojNpuc7//lwSbGszXVHpmyO7U NObA== X-Forwarded-Encrypted: i=1; AFNElJ+VC9geILMlA76g3NyjBMQGSzFrV5sdZ7cqHGxBHeTjL+8IDYOR173LRxPpyuMgk/Pu3O7+3FvCgjK92XU=@vger.kernel.org X-Gm-Message-State: AOJu0Ywx3CzQzMmJtkF5biHC33PBP1WALoqU45Hr7/9NM7xQHiHcXHD6 wBsi8MawCvXfaitrVKYaqswkgwxNGHNUUSUY7LR5d8F0qyNNR/GvgI9iRpyURw== X-Gm-Gg: AeBDietPun6GN35TAV19ag3+bR2dl/70VvyuWbADv77EZD+MqG96E1NInxYrb/yg1PI De3qYzX/SR9Fbx6rfkMt2QVpN+r6jKdLuZkNifqZhEJsogBbtbHIiKzlTr6dOUGq5IZUiM9nkQE V5COLeOE2lOxcg15BPrqMAyfC5dwW2ZrxUk6LmkcMyM0fkk+uLtmZwjf0IoCeZ/oq9Xju7Fumdo E1M/b1B5Im6dEgjI8dxiawFf7k890x+YXo0cBXZ0jvX62+vszVvgCIT7jSId0370IoHRGWZOrB1 +bLwNXZj2h3nxGNx8SNVRJvZC2gnntB7C8hAVR8f/Jc0MWkQKaWrmphhSMkqx7MeUmt+xlODa5Q dWgvR36JOqWsm8oXnVgXfVy+x1J2u5a8fa1iln9+lvVXqxL+tiEfZ9ptWHFOg8w9SphhvGIEwzl tPBI5Nm5EUOPt0ncOxBrERoadKodJafrc0oUM35LeGdyUyi+uEW4sZ X-Received: by 2002:a17:90b:3b4a:b0:35d:a4c0:a0ac with SMTP id 98e67ed59e1d1-361403d61camr31590648a91.3.1777035886857; Fri, 24 Apr 2026 06:04:46 -0700 (PDT) Received: from arch.localdomain ([103.182.132.254]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3613fba1436sm8517285a91.11.2026.04.24.06.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 06:04:46 -0700 (PDT) From: Debjeet Banerjee To: sakari.ailus@linux.intel.com Cc: andy.shevchenko@gmail.com, andy@kernel.org, debjeetbanerjee48@gmail.com, gregkh@linuxfoundation.org, hansg@kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mchehab@kernel.org Subject: [PATCH v6] media: atomisp: Remove unimplemented DPCM decompression Date: Fri, 24 Apr 2026 18:34:28 +0530 Message-ID: <20260424130428.27019-1-debjeetbanerjee48@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The CSI2 source pad format was set by blindly copying the sink pad format, regardless of whether the sink pad is receiving a DPCM-compressed mbus code. The rest of the driver does not support DPCM decompression, so remove all DPCM-related dead code: - Remove the FIXME comment in atomisp_csi2.c - Remove atomisp_subdev_uncompressed_code() function - Remove atomisp_subdev_is_compressed() function - Remove atomisp_find_in_fmt_conv_compressed() declaration - Remove compressed_codes[] array from atomisp_subdev.c Signed-off-by: Debjeet Banerjee --- v6: - Squashed into a single patch and removed comment in atomisp_csi2.c v5: - Rebased onto linuxtv.org/sailus/media_tree.git v4: - Complete removal of DPCM decompression attempt - 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 v2: - Rebased onto latest media tree (fix CI apply failure) - Fix missing linux-staging recipient (typo in v1) - Fix indentation --- .../staging/media/atomisp/pci/atomisp_csi2.c | 1 - .../media/atomisp/pci/atomisp_subdev.c | 33 ------------------- .../media/atomisp/pci/atomisp_subdev.h | 3 -- 3 files changed, 37 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_csi2.c b/drivers/sta= ging/media/atomisp/pci/atomisp_csi2.c index 95b9113d75e9..d15e607784e5 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_csi2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_csi2.c @@ -107,7 +107,6 @@ int atomisp_csi2_set_ffmt(struct v4l2_subdev *sd, &tmp_ffmt); } =20 - /* FIXME: DPCM decompression */ *actual_ffmt =3D *ffmt =3D *__csi2_get_format(csi2, sd_state, which, CSI2_PAD_SINK); =20 diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.c b/drivers/s= taging/media/atomisp/pci/atomisp_subdev.c index 9de9cd884d99..07189230c308 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.c +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.c @@ -51,39 +51,6 @@ const struct atomisp_in_fmt_conv atomisp_in_fmt_conv[] = =3D { {} }; =20 -static const struct { - u32 code; - u32 compressed; -} compressed_codes[] =3D { - { MEDIA_BUS_FMT_SBGGR10_1X10, MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SGBRG10_1X10, MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SGRBG10_1X10, MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SRGGB10_1X10, MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8 }, -}; - -u32 atomisp_subdev_uncompressed_code(u32 code) -{ - unsigned int i; - - for (i =3D 0; i < ARRAY_SIZE(compressed_codes); i++) - if (code =3D=3D compressed_codes[i].compressed) - return compressed_codes[i].code; - - return code; -} - -bool atomisp_subdev_is_compressed(u32 code) -{ - int i; - - for (i =3D 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) - if (code =3D=3D atomisp_in_fmt_conv[i].code) - return atomisp_in_fmt_conv[i].bpp !=3D - atomisp_in_fmt_conv[i].depth; - - return false; -} - const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv(u32 code) { int i; diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.h b/drivers/s= taging/media/atomisp/pci/atomisp_subdev.h index b12bb65be3f2..b399319ae2c9 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.h +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.h @@ -296,8 +296,6 @@ struct atomisp_sub_device { =20 extern const struct atomisp_in_fmt_conv atomisp_in_fmt_conv[]; =20 -u32 atomisp_subdev_uncompressed_code(u32 code); -bool atomisp_subdev_is_compressed(u32 code); const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv(u32 code); =20 /* ISP2400 */ @@ -309,7 +307,6 @@ const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv_by_atomisp_in_fmt(enum atomisp_input_format atomisp_in_fmt); =20 -const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv_compressed(u32 = code); bool atomisp_subdev_format_conversion(struct atomisp_sub_device *asd); =20 /* Get pointer to appropriate format */ --=20 2.53.0