usb: dwc3: Fix default lpm_nyet_threshold value
commita1ab43c370c590b19855b203e8b2dc1f53e6f7e6
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 25 Apr 2019 20:55:23 +0000 (25 13:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2019 05:49:54 +0000 (11 07:49 +0200)
tree740f56d9a566de738b94da8ed791358a375ee49f
parent5928706ff19f7df98cc29a7bef468af5cba88ad3
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>
drivers/usb/dwc3/core.c