From: sashiko-bot@kernel.org
To: "Sebastian Reichel" <sebastian.reichel@collabora.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com, vkoul@kernel.org,
linux-phy@lists.infradead.org, robh@kernel.org
Subject: Re: [PATCH v5 18/18] phy: rockchip: usbdp: Add some extra debug messages
Date: Fri, 12 Jun 2026 17:06:44 +0000 [thread overview]
Message-ID: <20260612170645.060BC1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260612-rockchip-usbdp-cleanup-v5-18-efc83069869f@collabora.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Missing explicit inclusion of `<linux/string_choices.h>` for string choice helpers.
--
commit 1df9f844b4fa19da9efe1fba10ad8a1d451bea55
Author: Sebastian Reichel <sebastian.reichel@collabora.com>
phy: rockchip: usbdp: Add some extra debug messages
This commit adds additional debug logging to the Rockchip USBDP PHY
driver. The new messages report port status and track PHY initialization
to help debug USB-C hotplugging behavior.
> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c
> index 236331cc0d132..4042e2dd81219 100644
> --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c
> +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c
> @@ -491,6 +491,8 @@ static void rk_udphy_u3_port_disable(struct rk_udphy *udphy, u8 disable)
> const struct rk_udphy_cfg *cfg = udphy->cfgs;
> const struct rk_udphy_grf_reg *preg;
>
> + dev_dbg(udphy->dev, "USB3 port %s\n", str_on_off(!disable));
[Severity: Low]
Does this file explicitly include <linux/string_choices.h>? Relying on
implicit inclusion for str_on_off() might cause build failures in the future
if header dependencies are reorganized across architectures.
[ ... ]
> @@ -784,6 +786,10 @@ static int rk_udphy_init(struct rk_udphy *udphy)
> const struct rk_udphy_cfg *cfg = udphy->cfgs;
> int ret;
>
> + dev_dbg(udphy->dev, "(re-)init PHY with USB=%s and DP=%s\n",
> + str_enabled_disabled(udphy->mode & UDPHY_MODE_USB),
> + str_enabled_disabled(udphy->mode & UDPHY_MODE_DP));
[Severity: Low]
Similarly, should we add <linux/string_choices.h> here to ensure
str_enabled_disabled() is safely resolved without relying on transitive
includes?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260612-rockchip-usbdp-cleanup-v5-0-efc83069869f@collabora.com?part=18
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
prev parent reply other threads:[~2026-06-12 17:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 16:21 [PATCH v5 00/18] phy: rockchip: usbdp: Fixes, DP 1-lane support and cleanups Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 01/18] dt-bindings: phy: rockchip-usbdp: add improved ports scheme Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 02/18] phy: rockchip: usbdp: Do not lose USB3 PHY status Sebastian Reichel
2026-06-12 16:38 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 03/18] phy: rockchip: usbdp: Keep clocks running on PHY re-init Sebastian Reichel
2026-06-12 16:41 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 04/18] phy: rockchip: usbdp: Amend SSC modulation deviation Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 05/18] phy: rockchip: usbdp: Fix LFPS detect threshold control Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 06/18] phy: rockchip: usbdp: Add missing mode_change update Sebastian Reichel
2026-06-12 16:46 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 07/18] phy: rockchip: usbdp: Support single-lane DP Sebastian Reichel
2026-06-12 16:55 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 08/18] phy: rockchip: usbdp: Rename DP lane functions Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 09/18] phy: rockchip: usbdp: Use FIELD_PREP_WM16_CONST Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 10/18] phy: rockchip: usbdp: Cleanup DP lane selection function Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 11/18] phy: rockchip: usbdp: Register DP aux bridge Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 12/18] phy: rockchip: usbdp: Drop DP HPD handling Sebastian Reichel
2026-06-12 16:53 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 13/18] phy: rockchip: usbdp: Rename mode_change to phy_needs_reinit Sebastian Reichel
2026-06-12 16:52 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 14/18] phy: rockchip: usbdp: Re-init the PHY on orientation change Sebastian Reichel
2026-06-12 17:03 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 15/18] phy: rockchip: usbdp: Factor out lane_mux_sel setup Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 16/18] phy: rockchip: usbdp: Use guard functions for mutex Sebastian Reichel
2026-06-12 16:21 ` [PATCH v5 17/18] phy: rockchip: usbdp: Support going from DP-only mode to USB mode Sebastian Reichel
2026-06-12 17:08 ` sashiko-bot
2026-06-12 16:21 ` [PATCH v5 18/18] phy: rockchip: usbdp: Add some extra debug messages Sebastian Reichel
2026-06-12 17:06 ` 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=20260612170645.060BC1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sebastian.reichel@collabora.com \
--cc=vkoul@kernel.org \
/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