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

T5949: Add option to disable USB autosuspend (backport #3677) #3709

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 22, 2024

Change Summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

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 option on to disallow autosuspend

How to test

set system option disable-usb-autosuspend
commit
cat /etc/udev/rules.d/40-usb-autosuspend.rules

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"

del system option disable-usb-autosuspend
commit
cat /etc/udev/rules.d/40-usb-autosuspend.rules

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

This is an automatic backport of pull request #3677 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner June 22, 2024 17:11
@github-actions github-actions bot added the sagitta VyOS 1.4 LTS label Jun 22, 2024
Copy link

👍
No issues in PR Title / Commit Title

@c-po c-po enabled auto-merge June 24, 2024 08:39
@c-po c-po merged commit 0c04803 into sagitta Jun 24, 2024
8 checks passed
@mergify mergify bot deleted the mergify/bp/sagitta/pr-3677 branch June 24, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sagitta VyOS 1.4 LTS
Development

Successfully merging this pull request may close these issues.

4 participants