-
Notifications
You must be signed in to change notification settings - Fork 350
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
T5949: Add option to disable USB autosuspend #3677
Conversation
👍 |
01b7f43
to
3bc4768
Compare
ec102e7
to
aede86f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title and the commit messages are wrong, as @Apachez- noted above: the change adds a way to disable USB autosuspend, and doesn't disable it in the system unless the user chooses to.
Please change the title and the commit message to reflect that.
You add the file I think you try to "overcome" the issue that the file is not populated during boot-time if there is no CLI node set under We already have a solution for this, during system startup the Please drop the |
@Mergifyio backport circinus sagitta |
✅ Backports have been created
|
Change Summary
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
https://docs.kernel.org/driver-api/usb/power-management.html
By default used the option
auto
is the normal state in which the kernel is allowed to autosuspend and autoresume the device.command
set system option disable-usb-autosuspend
used optionon
to disallow autosuspendHow to test
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"
Smoketest result
Checklist: