usb: dwc3: Fix LPM NYET Threshold value
highest possible LPM NYET threshold value is 0xf
because LPM_NYET_THRES uses 4 bits in DWC_USB3_DCTL
register. Value is incorrectly written as 0xff which
is overriding the value of other register bits.
Change-Id: Ib15fdfd01bf75fe6291b8fd2b0317e9b4c0c97c9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 7b054aa..636cf4a 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1198,7 +1198,7 @@
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;