usb: dwc3: Enable usb2 LPM only when connected as usb2.0
authorPratyush Anand <pratyush.anand@st.com>
Mon, 14 Jan 2013 10:29:31 +0000 (15:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:32 +0000 (06:03 +0800)
commitd1e2a92b95b9cf0e76a5b65282e313acdc3de2b2
tree2fcbf984bf4fe8a9545c5f4737c25b9dd0fde9cf
parent6ccf21e6b1742be263c1b990fd0581d7f5fa4dfd
usb: dwc3: Enable usb2 LPM only when connected as usb2.0

commit 2b758350af19db9a5c98241cf222c2e211d7a912 upstream.

Synopsys says:
The HIRD Threshold field must be set to ‘0’ when the device core is
operating in super speed mode.

This patch implements above statement.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c