From: sashiko-bot@kernel.org
To: "Wenmeng Liu" <wenmeng.liu@oss.qualcomm.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org,
vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v8 10/23] media: qcom: camss: vfe: Add support for VFE 980
Date: Wed, 02 Dec 2026 10:14:36 +0000 [thread overview]
Message-ID: <sashiko-outbox-245405@kernel.org> (raw)
In-Reply-To: <20261202-add-support-for-camss-on-sm8750-v8-10-a07210023c55@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] media: qcom: camss: camss-vfe-980.c duplicates camss-vfe-1080.c
--
commit e20213dde33031da1100287d82f158904f28c1da
Author: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
media: qcom: camss: vfe: Add support for VFE 980
This commit adds VFE 980 hardware operations and attaches the VFE
resources for the SM8750 SoC.
> diff --git a/drivers/media/platform/qcom/camss/camss-vfe-980.c b/drivers/media/platform/qcom/camss/camss-vfe-980.c
> new file mode 100644
> index 0000000000000..47f6c18190acf
> --- /dev/null
> +++ b/drivers/media/platform/qcom/camss/camss-vfe-980.c
> @@ -0,0 +1,213 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * camss-vfe-980.c
> + *
> + * Qualcomm MSM Camera Subsystem - VFE (Video Front End) Module 980
> + *
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + */
> +#include <linux/interrupt.h>
> +#include <linux/io.h>
> +#include <linux/iopoll.h>
> +
> +#include "camss.h"
> +#include "camss-vfe.h"
> +
> +/* VFE-980 Bus Register Base Addresses */
> +#define BUS_REG_BASE (vfe_is_lite(vfe) ? 0x200 : 0x800)
[Severity: Low]
Could VFE 980 share drivers/media/platform/qcom/camss/camss-vfe-1080.c
instead of duplicating it into a new file?
Every register offset, client index macro, and callback in camss-vfe-980.c
is identical to camss-vfe-1080.c except for the BUS_REG_BASE addresses
(0x200 / 0x800 here vs 0x800 / 0x1000 in camss-vfe-1080.c). Parameterizing
BUS_REG_BASE on vfe->camss->res->version, the same way camss-vfe-gen3.c
shares a single implementation across VFE generations, would avoid
maintaining two copies of the same code.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-add-support-for-camss-on-sm8750-v8-0-a07210023c55@oss.qualcomm.com?part=10
next prev parent reply other threads:[~2026-12-02 10:14 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 9:59 [PATCH v8 00/23] Add CAMSS support for SM8750 and Eliza Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 01/23] dt-bindings: phy: qcom,x1e80100-csi2-phy: Add SM8750 CSI2 PHY Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 02/23] dt-bindings: phy: qcom,x1e80100-csi2-phy: Add Eliza " Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 03/23] dt-bindings: media: qcom,sm8750-camss: Add SM8750 CAMSS Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 04/23] dt-bindings: media: qcom,eliza-camss: Add Eliza CAMSS Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 05/23] dt-bindings: i2c: qcom-cci: Document Eliza compatible Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 06/23] media: qcom: camss: Add SM8750 compatible Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 07/23] media: qcom: camss: Add PM clock definitions for SM8750 Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 08/23] media: qcom: camss: csid: Scale the clocks with the CSI-2 link rate Wenmeng Liu
2026-12-02 10:29 ` sashiko-bot
2026-12-02 9:59 ` [PATCH v8 09/23] media: qcom: camss: csid: Add support for CSID 980 Wenmeng Liu
2026-12-02 10:22 ` sashiko-bot
2026-12-02 9:59 ` [PATCH v8 10/23] media: qcom: camss: vfe: Add support for VFE 980 Wenmeng Liu
2026-12-02 10:14 ` sashiko-bot [this message]
2026-12-02 9:59 ` [PATCH v8 11/23] media: qcom: camss: Add TPG support for SM8750 Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 12/23] media: qcom: camss: Add Eliza compatible Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 13/23] arm64: dts: qcom: sm8750: Add CAMSS and CSIPHY block definitions Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 14/23] arm64: dts: qcom: sm8750: Add CCI definitions Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 15/23] arm64: dts: qcom: sm8750: Add camera MCLK pinctrl Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 16/23] arm64: dts: qcom: sm8750-qrd: Enable S5KJN1 camera sensor Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 17/23] arm64: dts: qcom: sm8750-mtp: " Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 18/23] arm64: dts: qcom: eliza: Add CAMSS and CSIPHY block definitions Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 19/23] arm64: dts: qcom: eliza: Add CCI definitions Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 20/23] arm64: dts: qcom: eliza: Add camera MCLK pinctrl Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 21/23] arm64: dts: qcom: eliza-mtp: Add PM8010 PMICs Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 22/23] arm64: dts: qcom: eliza-mtp: Enable rear camera Wenmeng Liu
2026-12-02 9:59 ` [PATCH v8 23/23] arm64: dts: qcom: eliza-evk-imx577-camera: Add DT overlay Wenmeng Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-245405@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=media-ci@linuxtv.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
--cc=wenmeng.liu@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox