Linux USB
 help / color / mirror / Atom feed
From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Inochi Amaoto <inochiama@gmail.com>
Cc: Minas Harutyunyan <hminas@synopsys.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Felipe Balbi <balbi@ti.com>, Paul Zimmerman <paulz@synopsys.com>,
	Dinh Nguyen <dinguyen@opensource.altera.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Yixun Lan <dlan@gentoo.org>, Longbin Li <looong.bin@gmail.com>
Subject: Re: [PATCH v2 2/3] usb: dwc2: drd: Sync the generic PHY mode with role requests
Date: Fri, 4 Dec 2026 19:21:31 +0000	[thread overview]
Message-ID: <axMSY4jc_2T1xnJb@vbox> (raw)
In-Reply-To: <20261111055628.183891-3-inochiama@gmail.com>

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@gmail.com>
> ---
>  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

  parent reply	other threads:[~2026-12-04 19:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11  5:56 [PATCH v2 0/3] usb: dwc2: Add USB DRD support on CV1800 Series SoC Inochi Amaoto
2026-11-11  5:56 ` [PATCH v2 1/3] usb: dwc2: gadget: honor pullup requests in core_connect Inochi Amaoto
2026-11-11  6:09   ` sashiko-bot
2026-12-04 19:17   ` Thinh Nguyen
2026-11-11  5:56 ` [PATCH v2 2/3] usb: dwc2: drd: Sync the generic PHY mode with role requests Inochi Amaoto
2026-11-11  6:20   ` sashiko-bot
2026-12-04 19:21   ` Thinh Nguyen [this message]
2026-11-11  5:56 ` [PATCH v2 3/3] usb: dwc2: Add USB DRD support on CV1800 series SoC Inochi Amaoto
2026-11-11  6:18   ` sashiko-bot
2026-12-04 19:22   ` Thinh Nguyen

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=axMSY4jc_2T1xnJb@vbox \
    --to=thinh.nguyen@synopsys.com \
    --cc=balbi@ti.com \
    --cc=dinguyen@opensource.altera.com \
    --cc=dlan@gentoo.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hminas@synopsys.com \
    --cc=inochiama@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=looong.bin@gmail.com \
    --cc=paulz@synopsys.com \
    /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