forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB / PM: Drop CONFIG_PM_RUNTIME from the USB core
After commit b2b49cc (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so quite a few depend on CONFIG_PM (or even dropped in some cases). Replace CONFIG_PM_RUNTIME with CONFIG_PM in the USB core code and documentation. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Alan Stern <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
Showing
19 changed files
with
69 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,9 @@ Date: January 2008 | |
KernelVersion: 2.6.25 | ||
Contact: Sarah Sharp <[email protected]> | ||
Description: | ||
If CONFIG_PM_RUNTIME is enabled then this file | ||
is present. When read, it returns the total time (in msec) | ||
that the USB device has been connected to the machine. This | ||
file is read-only. | ||
If CONFIG_PM is enabled, then this file is present. When read, | ||
it returns the total time (in msec) that the USB device has been | ||
connected to the machine. This file is read-only. | ||
Users: | ||
PowerTOP <[email protected]> | ||
https://01.org/powertop/ | ||
|
@@ -45,10 +44,9 @@ Date: January 2008 | |
KernelVersion: 2.6.25 | ||
Contact: Sarah Sharp <[email protected]> | ||
Description: | ||
If CONFIG_PM_RUNTIME is enabled then this file | ||
is present. When read, it returns the total time (in msec) | ||
that the USB device has been active, i.e. not in a suspended | ||
state. This file is read-only. | ||
If CONFIG_PM is enabled, then this file is present. When read, | ||
it returns the total time (in msec) that the USB device has been | ||
active, i.e. not in a suspended state. This file is read-only. | ||
|
||
Tools can use this file and the connected_duration file to | ||
compute the percentage of time that a device has been active. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,16 +104,15 @@ What: /sys/bus/usb/devices/.../power/usb2_hardware_lpm | |
Date: September 2011 | ||
Contact: Andiry Xu <[email protected]> | ||
Description: | ||
If CONFIG_PM_RUNTIME is set and a USB 2.0 lpm-capable device | ||
is plugged in to a xHCI host which support link PM, it will | ||
perform a LPM test; if the test is passed and host supports | ||
USB2 hardware LPM (xHCI 1.0 feature), USB2 hardware LPM will | ||
be enabled for the device and the USB device directory will | ||
contain a file named power/usb2_hardware_lpm. The file holds | ||
a string value (enable or disable) indicating whether or not | ||
USB2 hardware LPM is enabled for the device. Developer can | ||
write y/Y/1 or n/N/0 to the file to enable/disable the | ||
feature. | ||
If CONFIG_PM is set and a USB 2.0 lpm-capable device is plugged | ||
in to a xHCI host which support link PM, it will perform a LPM | ||
test; if the test is passed and host supports USB2 hardware LPM | ||
(xHCI 1.0 feature), USB2 hardware LPM will be enabled for the | ||
device and the USB device directory will contain a file named | ||
power/usb2_hardware_lpm. The file holds a string value (enable | ||
or disable) indicating whether or not USB2 hardware LPM is | ||
enabled for the device. Developer can write y/Y/1 or n/N/0 to | ||
the file to enable/disable the feature. | ||
|
||
What: /sys/bus/usb/devices/.../removable | ||
Date: February 2012 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.