Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nguyen Minh Tien" <tien.nguyenminh@embeddedlinux.blog>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2] usb: musb: Disable the D+ pullup during system suspend
Date: Thu, 08 Oct 2026 16:03:21 +0000	[thread overview]
Message-ID: <sashiko-outbox-164364@kernel.org> (raw)
In-Reply-To: <20261008155402.66266-1-tien.nguyenminh@embeddedlinux.blog>

> When musb_suspend() clears DEVCTL, the host sees a disconnect. But VBUS
> is still there, so the controller can start a new session on its own
> and, with SOFTCONN still set, pull D+ up again while its interrupts are
> masked. The host then fails to enumerate the gadget ("unable to
> enumerate USB device") and gives up, and nothing at resume makes it try
> again. On a T113-S3 board the gadget link never survived an s2idle
> cycle.
> 
> Clear SOFTCONN once the context is saved; musb_restore_context() puts
> it back on resume. This is what the FIXME asked for, as USB can't wake
> us in time with the interrupts masked. Platforms that power the PHY off
> during suspend, like the AM335x, never showed the problem: D+ drops
> with the PHY.
> 
> Fixes: 6fc6f4b87cb3 ("usb: musb: Disable interrupts on suspend, enable them on resume")
> Cc: stable@vger.kernel.org
> Signed-off-by: Nguyen Minh Tien <tien.nguyenminh@embeddedlinux.blog>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261008155402.66266-1-tien.nguyenminh@embeddedlinux.blog?part=1


      reply	other threads:[~2026-10-08 16:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-08 15:54 [PATCH v2] usb: musb: Disable the D+ pullup during system suspend Nguyen Minh Tien
2026-10-08 16:03 ` 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-164364@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tien.nguyenminh@embeddedlinux.blog \
    /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