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

stage-0: Teardown gadget before kexec #273

Merged
merged 3 commits into from Jan 4, 2021

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Jan 4, 2021

Fixes an issue where the USB controller is in a confusing state for the freshly booting kernel.

This adds a specialized code path into the kexec code path, but it's better than making the wrong abstraction.

We, anyway need to work on generic teardown later on.

Tested on an out-of-tree device.

This way on kexec the device is in a better state, and the kernel that
boots next is able to use the controller.

This was verified to fix an issue with kexec+gadget on the Chuwi Hi10
Pro HQ64 tablet.
Yikes, specialized code in the kexec codepath... though this is okay for
now. Let's not over-generalize when we don't know what will be required
in the future for abstraction.
@samueldr samueldr merged commit 25e9db5 into NixOS:master Jan 4, 2021
@samueldr samueldr deleted the feature/gadget-teardown-kexec branch January 4, 2021 04:07
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.

None yet

1 participant