From: sashiko-bot@kernel.org
To: "Benjamin Gaignard" <benjamin.gaignard@collabora.com>
Cc: Frank.Li@kernel.org, imx@lists.linux.dev,
devicetree@vger.kernel.org, conor+dt@kernel.org,
media-ci@linuxtv.org, robh@kernel.org
Subject: Re: [PATCH v4 1/3] media: verisilicon: Remove deprecated variant
Date: Fri, 25 Sep 2026 09:04:04 +0000 [thread overview]
Message-ID: <20260925090405.59B321F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260925085152.41852-2-benjamin.gaignard@collabora.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] media: verisilicon: ABI breakage by removing deprecated DT binding
- [Low] media: verisilicon: orphaned code and macros left after variant removal
--
commit 16a43be32673e02fd74593fb19bc27c444f75881
Author: Benjamin Gaignard <benjamin.gaignard@collabora.com>
media: verisilicon: Remove deprecated variant
The "nxp,imx8mq-vpu" compatible string has been deprecated since commit
f3116f2e52e6 split the G1 and G2 nodes. This patch removes the driver
reference to this old binding to clean up the code.
> diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c
> index ad71c0402ef3b..12c804dcc6694 100644
> --- a/drivers/media/platform/verisilicon/hantro_drv.c
> +++ b/drivers/media/platform/verisilicon/hantro_drv.c
> @@ -725,7 +725,6 @@ static const struct of_device_id of_hantro_match[] = {
> #endif
> #ifdef CONFIG_VIDEO_HANTRO_IMX8M
> { .compatible = "nxp,imx8mm-vpu-g1", .data = &imx8mm_vpu_g1_variant, },
> - { .compatible = "nxp,imx8mq-vpu", .data = &imx8mq_vpu_variant, },
[Severity: High]
Does removing this binding break backward compatibility with older Device Tree
Blobs (DTBs)? Device trees typically act as a stable ABI in Linux. Removing
this entry prevents the driver from binding to older DTBs that have not split
the G1 and G2 nodes, resulting in a loss of hardware video acceleration on
those systems. Even if deprecated, should the binding remain supported to ensure
older firmware continues to boot successfully?
> { .compatible = "nxp,imx8mq-vpu-g1", .data = &imx8mq_vpu_g1_variant },
> { .compatible = "nxp,imx8mq-vpu-g2", .data = &imx8mq_vpu_g2_variant },
> #endif
[ ... ]
> diff --git a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c
> index fa4224de4b996..b091d807ae4e2 100644
> --- a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c
> +++ b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c
> @@ -25,55 +25,6 @@
> #define CTRL_G1_PP_FUSE 0x0c
> #define CTRL_G2_DEC_FUSE 0x10
>
> -static void imx8m_soft_reset(struct hantro_dev *vpu, u32 reset_bits)
> -{
[Severity: Low]
With the removal of imx8mq_runtime_resume() and imx8m_soft_reset() in this
patch, several hardware control macros are left completely unused.
Could these unused macros also be removed from the top of the file?
- CTRL_SOFT_RESET, RESET_G1, RESET_G2
- CTRL_CLOCK_ENABLE, CLOCK_G1, CLOCK_G2
- CTRL_G1_DEC_FUSE, CTRL_G1_PP_FUSE, CTRL_G2_DEC_FUSE
Additionally, since imx8mq_vpu_variant was the only variant using
the runtime_resume function pointer in struct hantro_variant, should
runtime_resume be removed from the struct entirely in hantro.h?
hantro_runtime_resume() in hantro_drv.c is now effectively a no-op for all
platforms.
Finally, could the dangling extern const struct hantro_variant
imx8mq_vpu_variant declaration in hantro_hw.h be dropped too?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260925085152.41852-1-benjamin.gaignard@collabora.com?part=1
next prev parent reply other threads:[~2026-09-25 9:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 8:51 [PATCH v4 0/3] media: verisilicon: remove unused variant and code clean up Benjamin Gaignard
2026-09-25 8:51 ` Benjamin Gaignard
2026-09-25 8:51 ` [PATCH v4 1/3] media: verisilicon: Remove deprecated variant Benjamin Gaignard
2026-09-25 8:51 ` Benjamin Gaignard
2026-09-25 9:04 ` sashiko-bot [this message]
2026-09-25 15:03 ` Frank Li
2026-09-25 15:03 ` Frank Li
2026-09-25 8:51 ` [PATCH v4 2/3] media: dt-bindings: media: nxp, imx8mq-vpu: Remove nxp,imx8mq-vpu Benjamin Gaignard
2026-09-25 8:51 ` Benjamin Gaignard
2026-09-25 8:56 ` sashiko-bot
2026-09-25 16:45 ` Conor Dooley
2026-09-25 16:45 ` Conor Dooley
2026-09-25 8:51 ` [PATCH v4 3/3] media: verisilicon: Remove useless internal fields Benjamin Gaignard
2026-09-25 8:51 ` Benjamin Gaignard
2026-09-25 8:58 ` sashiko-bot
2026-09-25 15:05 ` Frank Li
2026-09-25 15:05 ` Frank Li
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=20260925090405.59B321F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=benjamin.gaignard@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.