diff options
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 033b46c470bd..cf3413116aff 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -4029,7 +4029,7 @@ static int __maybe_unused xhci_change_max_exit_latency(struct xhci_hcd *xhci, | |||
4029 | return ret; | 4029 | return ret; |
4030 | } | 4030 | } |
4031 | 4031 | ||
4032 | #ifdef CONFIG_PM_RUNTIME | 4032 | #ifdef CONFIG_PM |
4033 | 4033 | ||
4034 | /* BESL to HIRD Encoding array for USB2 LPM */ | 4034 | /* BESL to HIRD Encoding array for USB2 LPM */ |
4035 | static int xhci_besl_encoding[16] = {125, 150, 200, 300, 400, 500, 1000, 2000, | 4035 | static int xhci_besl_encoding[16] = {125, 150, 200, 300, 400, 500, 1000, 2000, |
@@ -4244,24 +4244,8 @@ int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | |||
4244 | return 0; | 4244 | return 0; |
4245 | } | 4245 | } |
4246 | 4246 | ||
4247 | #else | ||
4248 | |||
4249 | int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd, | ||
4250 | struct usb_device *udev, int enable) | ||
4251 | { | ||
4252 | return 0; | ||
4253 | } | ||
4254 | |||
4255 | int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | ||
4256 | { | ||
4257 | return 0; | ||
4258 | } | ||
4259 | |||
4260 | #endif /* CONFIG_PM_RUNTIME */ | ||
4261 | |||
4262 | /*---------------------- USB 3.0 Link PM functions ------------------------*/ | 4247 | /*---------------------- USB 3.0 Link PM functions ------------------------*/ |
4263 | 4248 | ||
4264 | #ifdef CONFIG_PM | ||
4265 | /* Service interval in nanoseconds = 2^(bInterval - 1) * 125us * 1000ns / 1us */ | 4249 | /* Service interval in nanoseconds = 2^(bInterval - 1) * 125us * 1000ns / 1us */ |
4266 | static unsigned long long xhci_service_interval_to_ns( | 4250 | static unsigned long long xhci_service_interval_to_ns( |
4267 | struct usb_endpoint_descriptor *desc) | 4251 | struct usb_endpoint_descriptor *desc) |
@@ -4692,6 +4676,17 @@ int xhci_disable_usb3_lpm_timeout(struct usb_hcd *hcd, | |||
4692 | } | 4676 | } |
4693 | #else /* CONFIG_PM */ | 4677 | #else /* CONFIG_PM */ |
4694 | 4678 | ||
4679 | int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd, | ||
4680 | struct usb_device *udev, int enable) | ||
4681 | { | ||
4682 | return 0; | ||
4683 | } | ||
4684 | |||
4685 | int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | ||
4686 | { | ||
4687 | return 0; | ||
4688 | } | ||
4689 | |||
4695 | int xhci_enable_usb3_lpm_timeout(struct usb_hcd *hcd, | 4690 | int xhci_enable_usb3_lpm_timeout(struct usb_hcd *hcd, |
4696 | struct usb_device *udev, enum usb3_link_state state) | 4691 | struct usb_device *udev, enum usb3_link_state state) |
4697 | { | 4692 | { |