From: sashiko-bot@kernel.org
To: "Krishna Kurapati" <krishna.kurapati@oss.qualcomm.com>
Cc: linux-phy@lists.infradead.org, vkoul@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH] phy: marvell: comphy: use PHY_MODE_USB_HOST/DEVICE instead of _SS variants
Date: Sat, 05 Dec 2026 22:01:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-251933@kernel.org> (raw)
In-Reply-To: <20261206-marvell-comphy-phy-modify-v1-1-b9390fbbe838@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] phy: marvell: spurious dev_err() in
mvebu_a3700_comphy_set_mode()
- [Low] phy: marvell: commit message misstates _SS replacement and XHCI
compatible
--
commit 922731630ba5400573fff251e049efcac4d012e3
Author: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
phy: marvell: comphy: use PHY_MODE_USB_HOST/DEVICE instead of _SS variants
This commit replaces PHY_MODE_USB_HOST_SS and PHY_MODE_USB_DEVICE_SS with
PHY_MODE_USB_HOST and PHY_MODE_USB_DEVICE in the Armada 3700 and CP110
comphy lane tables and mode switches.
> The USB controllers on these platforms are XHCI-based (marvell,armada-
> 3700-xhci / marvell,armada-8k-xhci / generic-xhci).
[ ... ]
> As a prerequisite to removing the eight speed-suffixed enum phy modes:
> PHY_MODE_USB_{HOST,DEVICE}_{LS,FS,HS,SS} in favour of communicating link
> speed through phy_configure(), remove the dead _SS arms here.
[Severity: Low]
The commit message says "remove the dead _SS arms here", whereas the patch
converts those table entries and switch cases to PHY_MODE_USB_HOST and
PHY_MODE_USB_DEVICE, and usb_add_hcd() still calls PHY_MODE_USB_HOST_SS
first at runtime.
Also, the Armada 3700 xHCI compatible string is marvell,armada3700-xhci
without a hyphen between armada and 3700.
[ ... ]
> diff --git a/drivers/phy/marvell/phy-mvebu-a3700-comphy.c b/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
> index d19f0fa9ba7c7..96bbe6acf854d 100644
> --- a/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
> +++ b/drivers/phy/marvell/phy-mvebu-a3700-comphy.c
> @@ -244,7 +244,7 @@ struct mvebu_a3700_comphy_conf {
>
> static const struct mvebu_a3700_comphy_conf mvebu_a3700_comphy_modes[] = {
> /* lane 0 */
> - MVEBU_A3700_COMPHY_CONF_GEN(0, PHY_MODE_USB_HOST_SS),
> + MVEBU_A3700_COMPHY_CONF_GEN(0, PHY_MODE_USB_HOST),
> MVEBU_A3700_COMPHY_CONF_ETH(0, PHY_INTERFACE_MODE_SGMII),
> MVEBU_A3700_COMPHY_CONF_ETH(0, PHY_INTERFACE_MODE_1000BASEX),
> MVEBU_A3700_COMPHY_CONF_ETH(0, PHY_INTERFACE_MODE_2500BASEX),
> @@ -255,7 +255,7 @@ static const struct mvebu_a3700_comphy_conf mvebu_a3700_comphy_modes[] = {
> MVEBU_A3700_COMPHY_CONF_ETH(1, PHY_INTERFACE_MODE_2500BASEX),
> /* lane 2 */
> MVEBU_A3700_COMPHY_CONF_GEN(2, PHY_MODE_SATA),
> - MVEBU_A3700_COMPHY_CONF_GEN(2, PHY_MODE_USB_HOST_SS),
> + MVEBU_A3700_COMPHY_CONF_GEN(2, PHY_MODE_USB_HOST),
> };
[Severity: Medium]
Will this cause mvebu_a3700_comphy_set_mode() to log a spurious error on
every Armada 3700 USB3 probe?
Because usb_add_hcd() tries PHY_MODE_USB_HOST_SS before falling back to
PHY_MODE_USB_HOST, mvebu_a3700_comphy_check_mode() will now reject the
first call and hit dev_err() on every boot:
drivers/phy/marvell/phy-mvebu-a3700-comphy.c:mvebu_a3700_comphy_set_mode() {
if (!mvebu_a3700_comphy_check_mode(lane->id, mode, submode)) {
dev_err(lane->dev, "invalid COMPHY mode\n");
return -EINVAL;
}
}
Unlike mvebu_comphy_set_mode() in phy-mvebu-cp110-comphy.c, which returns
-EINVAL silently, this adds boot-time error log noise even though the
fallback succeeds. Downgrading that log to dev_dbg() (or removing it to
match CP110) would avoid the regression.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-marvell-comphy-phy-modify-v1-1-b9390fbbe838@oss.qualcomm.com?part=1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
prev parent reply other threads:[~2026-12-05 22:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 21:48 [PATCH] phy: marvell: comphy: use PHY_MODE_USB_HOST/DEVICE instead of _SS variants Krishna Kurapati
2026-12-05 22:01 ` 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-251933@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
--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