All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
@ 2026-11-26 19:41 Felipe Infante de Castro
  2026-11-26 19:48 ` sashiko-bot
  2026-11-27  2:53 ` Peter Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Felipe Infante de Castro @ 2026-11-26 19:41 UTC (permalink / raw)
  To: Thinh.Nguyen, gregkh; +Cc: linux-usb, linux-arm-msm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: v2-0001-usb-dwc3-qcom-Restore-DP-DM-wake-IRQ-trigger-types-o.patch --]
[-- Type: application/x-patch, Size: 4294 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
  2026-11-26 19:41 [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind Felipe Infante de Castro
@ 2026-11-26 19:48 ` sashiko-bot
  2026-11-27  2:53 ` Peter Chen
  1 sibling, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-26 19:48 UTC (permalink / raw)
  To: Felipe Infante de Castro; +Cc: linux-usb

> From: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>
> Date: Thu, 26 Nov 2026 13:54:01 -0500
> Subject: [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on
>  unbind
> 
> 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.
> [ ... ]
> 
> Fixes: 6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
> Assisted-by: OpenAI Codex
> Assisted-by: Claude Fable 5.2
> 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/CADy1qsZaucfiZPbMkLaXE=_i6enEAoHexHMVAJk0UGzZJNV8hA@mail.gmail.com?part=1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
  2026-11-26 19:41 [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind Felipe Infante de Castro
  2026-11-26 19:48 ` sashiko-bot
@ 2026-11-27  2:53 ` Peter Chen
  2026-11-27  5:11   ` Felipe Infante de Castro
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Chen @ 2026-11-27  2:53 UTC (permalink / raw)
  To: Felipe Infante de Castro
  Cc: Thinh.Nguyen, gregkh, linux-usb, linux-arm-msm, linux-kernel

On 26-11-26 14:41:24, Felipe Infante de Castro wrote:

Good caught.

> Assisted-by: OpenAI Codex
> Assisted-by: Claude Fable 5.2

- It is not needed any more.

- Add to Cc for stable tree.


> 	int			dm_hs_phy_irq;
> 	int			ss_phy_irq;
> +	unsigned int		dp_hs_irq_type;
> +	unsigned int		dm_hs_irq_type;

- Change the name from "dp_hs_irq_type" to "dp_hs_phy_irq_type" to align which
existed code.

Others are okay for me.

I not sure if Greg could get the patch with attachment, try to send with patch
text.

-- 

Thanks,
Peter Chen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind
  2026-11-27  2:53 ` Peter Chen
@ 2026-11-27  5:11   ` Felipe Infante de Castro
  0 siblings, 0 replies; 4+ messages in thread
From: Felipe Infante de Castro @ 2026-11-27  5:11 UTC (permalink / raw)
  To: Peter Chen; +Cc: Thinh.Nguyen, gregkh, linux-usb, linux-arm-msm, linux-kernel

Hi Peter,

Thanks for the review.

> - Change the name from "dp_hs_irq_type" to "dp_hs_phy_irq_type"

Done in v3, for both fields.

> - Add to Cc for stable tree.

Added.

> - It is not needed any more.

I deleted the Assisted-by lines as advised.

> try to send with patch text.

Sorry about the attachment. v3 was just sent inline with git send-email.

Felipe

On Thu, Nov 26, 2026 at 9:53 PM Peter Chen <peter.chen@oss.qualcomm.com> wrote:
>
> On 26-11-26 14:41:24, Felipe Infante de Castro wrote:
>
> Good caught.
>
> > Assisted-by: OpenAI Codex
> > Assisted-by: Claude Fable 5.2
>
> - It is not needed any more.
>
> - Add to Cc for stable tree.
>
>
> >       int                     dm_hs_phy_irq;
> >       int                     ss_phy_irq;
> > +     unsigned int            dp_hs_irq_type;
> > +     unsigned int            dm_hs_irq_type;
>
> - Change the name from "dp_hs_irq_type" to "dp_hs_phy_irq_type" to align which
> existed code.
>
> Others are okay for me.
>
> I not sure if Greg could get the patch with attachment, try to send with patch
> text.
>
> --
>
> Thanks,
> Peter Chen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-27  5:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 19:41 [PATCH v2] usb: dwc3: qcom: Restore DP/DM wake IRQ trigger types on unbind Felipe Infante de Castro
2026-11-26 19:48 ` sashiko-bot
2026-11-27  2:53 ` Peter Chen
2026-11-27  5:11   ` Felipe Infante de Castro

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.