Skip to content
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

Fake unplug devices when a root hub is deinit #2546

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

tannewt
Copy link
Collaborator

@tannewt tannewt commented Mar 27, 2024

This causes the correct "umount" callbacks to occur before deiniting a root hub and its drivers.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you, I made a change to simply use hub_addr=0, hub_port=0, which will also remove all the downstream devices by process_removing_device()

Note: #2550 also helps to make removing an hub nicer without using event queue to unroll recursive removal.

@hathach hathach merged commit 5ff6e0f into hathach:master Mar 28, 2024
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants