drivers: usb: enable wake-up and link status change events#455
Open
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
Open
drivers: usb: enable wake-up and link status change events#455MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Enable DWC3 device events for wakeup and link-state changes, and add callbacks to propagate suspend/resume behavior up to the UDC layer.
Changes:
- Enable WKUPEVTEN and ULSTCNGEN in DEVTEN and dispatch new wakeup/suspend callbacks.
- Implement host-initiated remote wakeup by requesting Recovery and polling for U0/On.
- Make SETUP handling message-queue safe by copying setup bytes into the message.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| drivers/usb/udc/udc_dwc3.h | Adds wakeup/suspend callback hooks to the driver interface. |
| drivers/usb/udc/udc_dwc3.c | Enables/disables new events, adds suspend/resume callbacks, implements host wakeup, and queues SETUP bytes. |
| drivers/usb/common/usb_dwc3_hw.h | Adds wake/power-opt/link-state related bitfields/macros used by the driver updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RupeshKumar-AlifSemi
requested changes
Apr 1, 2026
Enable wakeup (WKUPEVTEN) and link status change (ULSTCNGEN) device events. Add suspend callback on L2 link state and wakeup callback on resume. Implement udc_dwc3_host_wakeup() to request recovery link state and poll for ON state transition. Signed-off-by: Mahesh Avula <mahesh.avula@alifsemi.com>
cec3073 to
75a11bc
Compare
MaheshAvula-Alifsemi
added a commit
to MaheshAvula-Alifsemi/zephyr_alif
that referenced
this pull request
Apr 2, 2026
Added PM(Power Management) support in usb driver. This PR is depends on alifsemi#455 Signed-off-by: Mahesh Avula <mahesh.avula@alifsemi.com>
MaheshAvula-Alifsemi
added a commit
to MaheshAvula-Alifsemi/zephyr_alif
that referenced
this pull request
Apr 7, 2026
Added PM(Power Management) support in usb driver. This PR is depends on alifsemi#455 Signed-off-by: Mahesh Avula <mahesh.avula@alifsemi.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable wakeup (WKUPEVTEN) and link status change (ULSTCNGEN) device events.
Add suspend callback on L2 link state and wakeup callback on resume.
Implement udc_dwc3_host_wakeup() to request recovery link state and poll for ON state transition.