All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ryan Brue" <ryanbrue.dev@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH RESEND] usb: mtu3: fix system suspend in gadget mode after soft disconnect
Date: Mon, 02 Nov 2026 16:36:11 +0000	[thread overview]
Message-ID: <sashiko-outbox-193758@kernel.org> (raw)
In-Reply-To: <20261102-rbrue-suez-upstreaming-mtu3-fix-suspend-usb-gadget-mode-v1-1-70a74a392015@gmail.com>

> ssusb_gadget_suspend() removes the D+ pullup for system suspend by calling
> mtu3_dev_on_off(mtu, 0) directly. That writes the hardware SOFT_CONN bit
> but leaves mtu->softconnect alone, deliberately: ssusb_gadget_resume()
> needs it to decide whether to pull up again.
> 
> wait_for_ip_sleep() then asks ssusb_gadget_ip_sleep_check() whether the IP
> can sleep, and that function tests mtu->softconnect -- the gadget's intent
> rather than the state of the pin. So it answers "pulled up, the IP can
> sleep" for a device that was just disconnected, and the poll for
> SSUSB_IP_SLEEP_STS runs to its 100 ms timeout:
> 
>   mtu3 11271000.usb: gadget (high-speed) pullup D-
>   mtu3 11271000.usb: ip sleep failed!!!
>   mtu3 11271000.usb: gadget (high-speed) pullup D+
>   mtu3 11271000.usb: PM: dpm_run_callback(): mtu3_suspend returns -16
> [ ... ]
> is still set and the IP-sleep poll is still performed.
> 
> Fixes: e69027c25361 ("usb: mtu3: allow system suspend during active gadget connection")
> Assisted-by: LLM
> Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261102-rbrue-suez-upstreaming-mtu3-fix-suspend-usb-gadget-mode-v1-1-70a74a392015@gmail.com?part=1


  reply	other threads:[~2026-11-02 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 16:28 [PATCH RESEND] usb: mtu3: fix system suspend in gadget mode after soft disconnect Ryan Brue
2026-11-02 16:36 ` sashiko-bot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-29 15:02 Ryan Brue
2026-11-02  3:43 ` Ryan Brue
2026-11-02 11:15   ` Greg Kroah-Hartman
2026-11-02 11:15     ` Greg Kroah-Hartman

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-193758@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=ryanbrue.dev@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.