From: Sebastian Andrzej Siewior Date: Thu, 24 Nov 2011 10:22:05 +0000 (+0100) Subject: usb: dwc3: use correct hwparam register for power mgm check X-Git-Tag: v3.3-rc1~153^2~25^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=164d773168d7f09ecd46d9ce9b07f194ea97bf33;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git usb: dwc3: use correct hwparam register for power mgm check We mask the correct bits within the wrong register. The power optimization mode is stored hwparam1 register and not in hwparam0. Reported-by: Partha Basak Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 6910a2d..455bb1e 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -353,7 +353,7 @@ static int __devinit dwc3_core_init(struct dwc3 *dwc) reg &= ~DWC3_GCTL_SCALEDOWN(3); reg &= ~DWC3_GCTL_DISSCRAMBLE; - switch (DWC3_GHWPARAMS1_EN_PWROPT(dwc->hwparams.hwparams0)) { + switch (DWC3_GHWPARAMS1_EN_PWROPT(dwc->hwparams.hwparams1)) { case DWC3_GHWPARAMS1_EN_PWROPT_CLK: reg &= ~DWC3_GCTL_DSBLCLKGTNG; break;