summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratyush Anand <pratyush.anand@st.com>2014-07-04 17:01:24 +0300
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:16:18 +0100
commitb73cc02b4a2beed7ba0dca9b36e911504427a714 (patch)
treea2d988d0f8aa4e164eb3bc76265707def98a5454
parent4f39bc34a2c636bac03488d02e21eefa7ebcd32c (diff)
downloadlinux-stable-b73cc02b4a2beed7ba0dca9b36e911504427a714.tar.gz
linux-stable-b73cc02b4a2beed7ba0dca9b36e911504427a714.tar.bz2
linux-stable-b73cc02b4a2beed7ba0dca9b36e911504427a714.zip
xhci: Platform: Add (en/dis)able_usb3_lpm_timeout
To use auto U0-U1/U2 transition by xhci platform device add (en/dis)able_usb3_lpm_timeout function to the xhci_plat_xhci_driver struct. Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Tested-by: Aymen Bouattay <aymen.bouattay@st.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 94ef3d50426240a5402688e8d43a079df5ae21be) Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--drivers/usb/host/xhci-plat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 08bfb4b85cfa..07642fd55587 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -90,6 +90,9 @@ static const struct hc_driver xhci_plat_xhci_driver = {
.hub_status_data = xhci_hub_status_data,
.bus_suspend = xhci_bus_suspend,
.bus_resume = xhci_bus_resume,
+
+ .enable_usb3_lpm_timeout = xhci_enable_usb3_lpm_timeout,
+ .disable_usb3_lpm_timeout = xhci_disable_usb3_lpm_timeout,
};
static int xhci_plat_probe(struct platform_device *pdev)