Re: [PATCH] usb: dwc2: Skip HCD PHY setup when a role switch is used
From: Inochi Amaoto
Date: Tue Dec 01 2026 - 01:43:31 EST
On Tue, Dec 01, 2026 at 01:38:29PM +0800, 葉宸佑 wrote:
> On Mon, Nov 30, 2026 at 02:59:03PM +0000, sashiko-bot@xxxxxxxxxx wrote:
> > - [High] usb: dwc2: missing Signed-off-by trailer in commit message
> > above tearline
>
> Right. I wrote the notes for Inochi into the commit message itself, so
> my Signed-off-by ended up below the "---" line and is dropped by git am.
> I will fix this in v2.
>
> > - [High] usb: dwc2: skipping HCD PHY setup in dwc2_hcd_init() without
> > DRD phy_set_mode()
>
> This patch depends on Inochi's series [1]. Its patch 2/4 makes
> dwc2_drd_init() and dwc2_drd_role_sw_set() call phy_set_mode().
> Without that series, skipping the HCD PHY setup leaves the PHY mode
> unset, so this patch must not be applied on its own. I only mentioned
> the dependency below the "---" line. In v2, I will state it in the
> commit message itself.
>
> Greg, please do not apply this version.
>
> Inochi, would you like to carry this patch in v2 of your series? That
> would keep the dependency in one place. Otherwise, I will send v2 of
> this patch on top of your v2 once it is out.
>
> [1] https://lore.kernel.org/all/20261110070627.217946-1-inochiama@xxxxxxxxx/
Please treat it as a separated fix. This is a dangerous thing that
I have dropped in my patch. This semantic change needs some check
from DWC2 expert. As you know, the DWC3 has similar change, but it
is not merged.
Regards,
Inochi