Re: [PATCH v2 2/3] usb: dwc2: drd: Sync the generic PHY mode with role requests
From: Thinh Nguyen
Date: Fri Dec 04 2026 - 14:21:59 EST
On Wed, Nov 11, 2026, Inochi Amaoto wrote:
> The USB DRD does not reply on a OTG phy, which means the controller
> should not reply on the switch behavior from PHY. Instead, it should
> sync the phy state to avoid a brolen role.
>
> Set the generic PHY mode after resolving the default role and before
> updating the controller. And disable the controller clock if there
> is a failure and it is disabled.
>
> Signed-off-by: Inochi Amaoto <inochiama@xxxxxxxxx>
> ---
> drivers/usb/dwc2/core.h | 2 +-
> drivers/usb/dwc2/drd.c | 46 +++++++++++++++++++++++++++++--------
> drivers/usb/dwc2/platform.c | 4 +++-
> 3 files changed, 41 insertions(+), 11 deletions(-)
>
Please address Sashiko's review.
Thanks,
Thinh