diff options
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2019-04-25 13:55:23 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-10 17:53:13 +0200 |
commit | 16360fa152ec5c884a7bcf6aa352add53076a590 (patch) | |
tree | 9f06b57ffe06f88842c6f7c0ec058a160bbdd4b9 | |
parent | 5f138462c3963289074bbffad337a7639d826e61 (diff) | |
download | linux-stable-16360fa152ec5c884a7bcf6aa352add53076a590.tar.gz linux-stable-16360fa152ec5c884a7bcf6aa352add53076a590.tar.bz2 linux-stable-16360fa152ec5c884a7bcf6aa352add53076a590.zip |
usb: dwc3: Fix default lpm_nyet_threshold value
commit 8d791929b2fbdf7734c1596d808e55cb457f4562 upstream.
The max possible value for DCTL.LPM_NYET_THRES is 15 and not 255. Change
the default value to 15.
Cc: stable@vger.kernel.org
Fixes: 80caf7d21adc ("usb: dwc3: add lpm erratum support")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/dwc3/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 783d16a53466..945330ea8d5c 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1042,7 +1042,7 @@ static void dwc3_get_properties(struct dwc3 *dwc) u8 hird_threshold; /* default to highest possible threshold */ - lpm_nyet_threshold = 0xff; + lpm_nyet_threshold = 0xf; /* default to -3.5dB de-emphasis */ tx_de_emphasis = 1; |