Skip to content

usb: host: shell: correct location to get the usb_device ctx #85920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thenguyenyf
Copy link
Collaborator

Due to changes in this PR #74141, usb_device ctx cannot be get before the device connected event.

This PR is to move usb_device ctx get right before using for usbh_shell.

Move usb_device get location to just before use since usb_device ctx is
dynamically defined

Signed-off-by: The Nguyen <[email protected]>
@zephyrbot zephyrbot added the area: USB Universal Serial Bus label Feb 18, 2025
Copy link
Collaborator

@jfischer-no jfischer-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am aware of this and am working on a slightly different fix. Please do not close this PR yet.

Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants