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] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
Date: Thu, 26 Nov 2026 19:37:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-236101@kernel.org> (raw)
In-Reply-To: <CADy1qsYCggH1S=yVEQ44mj0WVr=WimiXLDMk-zyr5KZXVG8SLQ@mail.gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] usb: dwc3: qcom: email commentary and duplicated changelog in
  commit message
- [Low] usb: dwc3: qcom: missing Fixes trailer for
  dwc3_qcom_enable_wakeup_irq() bug
--

commit 5db5a7b1febf102a7cdfd576795edb2f79f0c55e
Author: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>

> usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
>
> Hi,
>
> The patch is attached as a file rather than inline, because my mail
> client cannot send it inline without wrapping lines and converting
> tabs. Apologies for that. The commit message is repeated below for
> review.
>
> 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.
>
> The patch records the trigger type of each DP/DM interrupt when it is
> requested and restores 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 the patch, a runtime suspend and resume
> followed by an unbind and rebind kept all three wake handlers, with no
> trigger mismatch in the log. The patch is against mainline; it was run
> on 7.3 and build-tested on 7.3.6 with W=1, not on mainline itself.
>
> Thanks,
> Felipe
>
> 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.
>
> Assisted-by: OpenAI Codex
> Assisted-by: Claude Fable 5.2
> Signed-off-by: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>

[Severity: Low]
This isn't a bug, but the commit message includes the email preamble ("Hi,
... Thanks, Felipe") and repeats the four-paragraph changelog body twice.
Notes for reviewers that should not end up in git history belong below the
"---" separator.

[Severity: Low]
Since this fixes the wakeup IRQ trigger reconfiguration added in
6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during
suspend"), should the commit message include:

  Fixes: 6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/CADy1qsYCggH1S=yVEQ44mj0WVr=WimiXLDMk-zyr5KZXVG8SLQ@mail.gmail.com?part=1

      reply	other threads:[~2026-11-26 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 19:29 [PATCH] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind Felipe Infante de Castro
2026-11-26 19:37 ` 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-236101@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.