From: sashiko-bot@kernel.org
To: "Pengpeng Hou" <hppiscas@163.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/rockchip: vop: use IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP)
Date: Fri, 04 Dec 2026 02:40:32 +0000 [thread overview]
Message-ID: <sashiko-outbox-248994@kernel.org> (raw)
In-Reply-To: <179635110183.74470.16936220701661292951@163.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/rockchip: vop: Kconfig guard couples rockchipdrm.ko to
analogix_dp.ko
--
commit 980649bcef71c0bdd585246e281f58fbe008efa0
Author: Pengpeng Hou <hppiscas@163.com>
drm/rockchip: vop: use IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP)
This commit replaces #ifdef CONFIG_DRM_ANALOGIX_DP with
IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP) in rockchip_drm_vop.c so that the
Analogix DP header and eDP CRC callbacks are compiled when both VOP and
Analogix DP are built as modules.
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> index 69e72727da24f..0860b189918a6 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> @@ -32,7 +32,7 @@
> #include <drm/drm_self_refresh_helper.h>
> #include <drm/drm_vblank.h>
>
> -#ifdef CONFIG_DRM_ANALOGIX_DP
> +#if IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP)
> #include <drm/bridge/analogix_dp.h>
> #endif
>
> @@ -1669,7 +1669,7 @@ static struct drm_crtc_state *vop_crtc_create_state(struct drm_crtc *crtc)
> return &crtc_state->base;
> }
>
> -#ifdef CONFIG_DRM_ANALOGIX_DP
> +#if IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP)
> static struct drm_connector *vop_get_edp_connector(struct vop *vop)
> {
> struct drm_connector *connector;
[Severity: Medium]
Should these guards check IS_ENABLED(CONFIG_ROCKCHIP_ANALOGIX_DP) instead
of IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP)?
Unrelated drivers like CONFIG_DRM_ANALOGIX_ANX6345 select
CONFIG_DRM_ANALOGIX_DP=m even when CONFIG_ROCKCHIP_ANALOGIX_DP=n. With
CONFIG_DRM_ROCKCHIP=m, rockchipdrm.ko now pulls in analogix_dp.ko via
analogix_dp_start_crc() and analogix_dp_stop_crc().
Enabling these callbacks without CONFIG_ROCKCHIP_ANALOGIX_DP also exposes
any non-Analogix eDP bridge attached to VOP to an invalid to_dp(bridge)
cast in analogix_dp_start_crc() and analogix_dp_stop_crc().
DRM_ROCKCHIP already selects DRM_ANALOGIX_DP when ROCKCHIP_ANALOGIX_DP is
enabled in drivers/gpu/drm/rockchip/Kconfig, so
IS_ENABLED(CONFIG_ROCKCHIP_ANALOGIX_DP) guarantees reachability in both
built-in and modular builds without this spurious dependency.
--
Sashiko AI review · https://sashiko.dev/#/patchset/179635110183.74470.16936220701661292951@163.com?part=1
prev parent reply other threads:[~2026-12-04 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 2:25 [PATCH] drm/rockchip: vop: use IS_REACHABLE(CONFIG_DRM_ANALOGIX_DP) Pengpeng Hou
2026-12-04 2:40 ` sashiko-bot [this message]
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-248994@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hppiscas@163.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox