]>
Commit | Line | Data |
---|---|---|
28d3fdd3 GKH |
1 | From 8d791929b2fbdf7734c1596d808e55cb457f4562 Mon Sep 17 00:00:00 2001 |
2 | From: Thinh Nguyen <Thinh.Nguyen@synopsys.com> | |
3 | Date: Thu, 25 Apr 2019 13:55:23 -0700 | |
4 | Subject: usb: dwc3: Fix default lpm_nyet_threshold value | |
5 | ||
6 | From: Thinh Nguyen <Thinh.Nguyen@synopsys.com> | |
7 | ||
8 | commit 8d791929b2fbdf7734c1596d808e55cb457f4562 upstream. | |
9 | ||
10 | The max possible value for DCTL.LPM_NYET_THRES is 15 and not 255. Change | |
11 | the default value to 15. | |
12 | ||
13 | Cc: stable@vger.kernel.org | |
14 | Fixes: 80caf7d21adc ("usb: dwc3: add lpm erratum support") | |
15 | Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> | |
16 | Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
18 | ||
19 | --- | |
20 | drivers/usb/dwc3/core.c | 2 +- | |
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
22 | ||
23 | --- a/drivers/usb/dwc3/core.c | |
24 | +++ b/drivers/usb/dwc3/core.c | |
25 | @@ -867,7 +867,7 @@ static int dwc3_probe(struct platform_de | |
26 | dwc->regs_size = resource_size(res); | |
27 | ||
28 | /* default to highest possible threshold */ | |
29 | - lpm_nyet_threshold = 0xff; | |
30 | + lpm_nyet_threshold = 0xf; | |
31 | ||
32 | /* default to -3.5dB de-emphasis */ | |
33 | tx_de_emphasis = 1; |