diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-11-29 17:47:05 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-03 18:51:54 -0500 |
commit | ceb6c9c862c86423f41c1e20ecf8d454f837f519 (patch) | |
tree | 23b6b5cb563720c9562977f4835d004c1d12f7bd /drivers/usb/host/xhci.c | |
parent | 6ed23b806e73bdd5b17722df507b0f4570c606b6 (diff) |
USB / PM: Drop CONFIG_PM_RUNTIME from the USB core
After commit b2b49ccbdd54 (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 <rafael.j.wysocki@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 2a5d45b4cb15..61173ca9cb8f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -4024,7 +4024,7 @@ static int __maybe_unused xhci_change_max_exit_latency(struct xhci_hcd *xhci, | |||
4024 | return ret; | 4024 | return ret; |
4025 | } | 4025 | } |
4026 | 4026 | ||
4027 | #ifdef CONFIG_PM_RUNTIME | 4027 | #ifdef CONFIG_PM |
4028 | 4028 | ||
4029 | /* BESL to HIRD Encoding array for USB2 LPM */ | 4029 | /* BESL to HIRD Encoding array for USB2 LPM */ |
4030 | static int xhci_besl_encoding[16] = {125, 150, 200, 300, 400, 500, 1000, 2000, | 4030 | static int xhci_besl_encoding[16] = {125, 150, 200, 300, 400, 500, 1000, 2000, |
@@ -4239,24 +4239,8 @@ int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | |||
4239 | return 0; | 4239 | return 0; |
4240 | } | 4240 | } |
4241 | 4241 | ||
4242 | #else | ||
4243 | |||
4244 | int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd, | ||
4245 | struct usb_device *udev, int enable) | ||
4246 | { | ||
4247 | return 0; | ||
4248 | } | ||
4249 | |||
4250 | int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | ||
4251 | { | ||
4252 | return 0; | ||
4253 | } | ||
4254 | |||
4255 | #endif /* CONFIG_PM_RUNTIME */ | ||
4256 | |||
4257 | /*---------------------- USB 3.0 Link PM functions ------------------------*/ | 4242 | /*---------------------- USB 3.0 Link PM functions ------------------------*/ |
4258 | 4243 | ||
4259 | #ifdef CONFIG_PM | ||
4260 | /* Service interval in nanoseconds = 2^(bInterval - 1) * 125us * 1000ns / 1us */ | 4244 | /* Service interval in nanoseconds = 2^(bInterval - 1) * 125us * 1000ns / 1us */ |
4261 | static unsigned long long xhci_service_interval_to_ns( | 4245 | static unsigned long long xhci_service_interval_to_ns( |
4262 | struct usb_endpoint_descriptor *desc) | 4246 | struct usb_endpoint_descriptor *desc) |
@@ -4687,6 +4671,17 @@ int xhci_disable_usb3_lpm_timeout(struct usb_hcd *hcd, | |||
4687 | } | 4671 | } |
4688 | #else /* CONFIG_PM */ | 4672 | #else /* CONFIG_PM */ |
4689 | 4673 | ||
4674 | int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd, | ||
4675 | struct usb_device *udev, int enable) | ||
4676 | { | ||
4677 | return 0; | ||
4678 | } | ||
4679 | |||
4680 | int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | ||
4681 | { | ||
4682 | return 0; | ||
4683 | } | ||
4684 | |||
4690 | int xhci_enable_usb3_lpm_timeout(struct usb_hcd *hcd, | 4685 | int xhci_enable_usb3_lpm_timeout(struct usb_hcd *hcd, |
4691 | struct usb_device *udev, enum usb3_link_state state) | 4686 | struct usb_device *udev, enum usb3_link_state state) |
4692 | { | 4687 | { |