From: Thinh Nguyen Date: Thu, 25 Apr 2019 20:55:23 +0000 (-0700) Subject: usb: dwc3: Fix default lpm_nyet_threshold value X-Git-Tag: v4.9.175~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfb17fc88e369b82b603d412dd0ff83159e07d62;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 1e91b803ee4e..73dc5a6c6108 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -991,7 +991,7 @@ static int dwc3_probe(struct platform_device *pdev) 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;