All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jun Yan" <jerrysteve1101@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v5 RESEND] drm/bridge: analogix_dp: use devm_phy_optional_get() for the DP PHY
Date: Sun, 06 Dec 2026 05:21:37 +0000	[thread overview]
Message-ID: <sashiko-outbox-252168@kernel.org> (raw)
In-Reply-To: <20261206050359.202772-1-jerrysteve1101@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/bridge: analogix_dp comment and commit message overlook
  RK3568 PHY
--

commit 75b4283e53193fe04cf00bcd4bfc3b137b7665ec
Author: Jun Yan <jerrysteve1101@gmail.com>

drm/bridge: analogix_dp: use devm_phy_optional_get() for the DP PHY

This commit switches analogix_dp_probe() from devm_phy_get() to
devm_phy_optional_get(), dropping the open-coded -ENODEV/-ENOSYS fallback
and the error log when no separate DP PHY is described in DT.

> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 8bccd20a224f1..15d9e8ec1c275 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> @@ -1428,21 +1428,13 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)
[ ... ]
> +	/*
> +	 * RK3399 uses the Analogix DP controller built-in PHY,
> +	 * no extra PHY configuration is required.
> +	 */
> +	dp->phy = devm_phy_optional_get(dp->dev, "dp");
> +	if (IS_ERR(dp->phy))
> +		return ERR_CAST(dp->phy);

[Severity: Low]
Is this comment and the commit message accurate in stating that only RK3399
uses the built-in PHY and that the other supported Rockchip variants describe
a separate PHY?

Commit 2ebbeea89df4 ("drm/rockchip: analogix_dp: Add support for RK3568")
added rockchip,rk3568-edp, which also has no separate PHY driver or binding
and powers its eDP PHY via optional avdd-0v9 and avdd-1v8 supplies in
rockchip_dp_of_probe().  The comment and commit message could avoid singling
out RK3399 as the only variant without a separate PHY.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261206050359.202772-1-jerrysteve1101@gmail.com?part=1

      reply	other threads:[~2026-12-06  5:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-06  5:03 [PATCH v5 RESEND] drm/bridge: analogix_dp: use devm_phy_optional_get() for the DP PHY Jun Yan
2026-12-06  5:03 ` Jun Yan
2026-12-06  5:21 ` 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-252168@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jerrysteve1101@gmail.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 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.