]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.4/usb-dwc3-fix-default-lpm_nyet_threshold-value.patch
4.4-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.4 / usb-dwc3-fix-default-lpm_nyet_threshold-value.patch
CommitLineData
28d3fdd3
GKH
1From 8d791929b2fbdf7734c1596d808e55cb457f4562 Mon Sep 17 00:00:00 2001
2From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
3Date: Thu, 25 Apr 2019 13:55:23 -0700
4Subject: usb: dwc3: Fix default lpm_nyet_threshold value
5
6From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
7
8commit 8d791929b2fbdf7734c1596d808e55cb457f4562 upstream.
9
10The max possible value for DCTL.LPM_NYET_THRES is 15 and not 255. Change
11the default value to 15.
12
13Cc: stable@vger.kernel.org
14Fixes: 80caf7d21adc ("usb: dwc3: add lpm erratum support")
15Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
16Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
17Signed-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;