All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Felipe Infante de Castro" <felipe.infante.de.castro@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v3] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
Date: Fri, 27 Nov 2026 05:15:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-236640@kernel.org> (raw)
In-Reply-To: <20261127050938.2150497-1-felipe.infante.de.castro@gmail.com>

> On suspend, dwc3_qcom_enable_wakeup_irq() sets the DP and DM high-speed
> PHY interrupts to a single edge, chosen from the speed of the attached
> device. The IRQ mapping outlives the driver, so after an unbind the
> mapping keeps that single-edge type.
> 
> On the next probe the interrupt is looked up again from the device tree,
> which describes it as IRQ_TYPE_EDGE_BOTH. The lookup fails with a
> trigger type mismatch against the existing mapping. Because the wake
> interrupts are optional, probe still succeeds, but without the DP/DM
> wake handlers, and USB wakeup is lost until the next boot.
> 
> Record the trigger type of each DP/DM interrupt when it is requested and
> restore it from a devres action. The action is registered after the
> interrupts, so it runs while the driver still owns them. Unmapped
> interrupts, unspecified types and types that already match are left
> alone.
> 
> Seen on a Microsoft Surface Laptop 7 (x1e80100-microsoft-romulus15) on a
> 7.3 kernel: after unbinding and rebinding a controller the dp_hs_phy_irq
> and dm_hs_phy_irq handlers were absent from /proc/interrupts. With this
> change they return on every rebind.
> 
> Fixes: 6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
> Cc: stable@vger.kernel.org
> Signed-off-by: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127050938.2150497-1-felipe.infante.de.castro@gmail.com?part=1

  reply	other threads:[~2026-11-27  5:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  5:09 [PATCH v3] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind Felipe Infante de Castro
2026-11-27  5:15 ` sashiko-bot [this message]
2026-11-30  3:02 ` Peter Chen

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-236640@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=felipe.infante.de.castro@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --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.