From: Greg Kroah-Hartman Date: Thu, 9 May 2019 09:01:31 +0000 (+0200) Subject: 4.4-stable patches X-Git-Tag: v4.9.175~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28d3fdd385d1f5f02cf182ac8a9e3b80a543db7f;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: usb-dwc3-fix-default-lpm_nyet_threshold-value.patch --- diff --git a/queue-4.4/series b/queue-4.4/series index 87ae2e04383..0661e97ca77 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -149,3 +149,4 @@ xtensa-fix-initialization-of-pt_regs-syscall-in-star.patch scsi-csiostor-fix-missing-data-copy-in-csio_scsi_err.patch iommu-amd-set-exclusion-range-correctly.patch genirq-prevent-use-after-free-and-work-list-corrupti.patch +usb-dwc3-fix-default-lpm_nyet_threshold-value.patch diff --git a/queue-4.4/usb-dwc3-fix-default-lpm_nyet_threshold-value.patch b/queue-4.4/usb-dwc3-fix-default-lpm_nyet_threshold-value.patch new file mode 100644 index 00000000000..0f45fdcb0df --- /dev/null +++ b/queue-4.4/usb-dwc3-fix-default-lpm_nyet_threshold-value.patch @@ -0,0 +1,33 @@ +From 8d791929b2fbdf7734c1596d808e55cb457f4562 Mon Sep 17 00:00:00 2001 +From: Thinh Nguyen +Date: Thu, 25 Apr 2019 13:55:23 -0700 +Subject: usb: dwc3: Fix default lpm_nyet_threshold value + +From: Thinh Nguyen + +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 +Signed-off-by: Felipe Balbi +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/dwc3/core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/usb/dwc3/core.c ++++ b/drivers/usb/dwc3/core.c +@@ -867,7 +867,7 @@ static int dwc3_probe(struct platform_de + dwc->regs_size = resource_size(res); + + /* default to highest possible threshold */ +- lpm_nyet_threshold = 0xff; ++ lpm_nyet_threshold = 0xf; + + /* default to -3.5dB de-emphasis */ + tx_de_emphasis = 1;