usb: dwc_otg: fix incorrect bit operation
authorlyz <lyz@rock-chips.com>
Tue, 2 Dec 2014 10:55:37 +0000 (18:55 +0800)
committerlyz <lyz@rock-chips.com>
Tue, 2 Dec 2014 10:55:37 +0000 (18:55 +0800)
drivers/usb/dwc_otg_310/dwc_otg_cil.c

index 89fdaa9e0a8265aff73f8764656d39e99bd52b24..fc347d04615ba00b0e762bd6ff754625b02ac506 100755 (executable)
@@ -1974,7 +1974,7 @@ void dwc_otg_core_dev_init(dwc_otg_core_if_t *core_if)
        dwc_udelay(10);
 
        gahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR8;
-       DWC_MODIFY_REG32(&global_regs->gahbcfg, 0, gahbcfg.b.hburstlen);
+       DWC_MODIFY_REG32(&global_regs->gahbcfg, 0, gahbcfg.d32);
 
        /* Device configuration register */
        init_devspd(core_if);