From: lyz Date: Mon, 27 Oct 2014 06:49:38 +0000 (+0800) Subject: usb: dwc_otg: in some low-memory cases BURST_INCR16 mode will cause kernel crash X-Git-Tag: firefly_0821_release~4533 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8d46b245f00d1d6653c4b2e98ebc9191abb4bcee;p=firefly-linux-kernel-4.4.55.git usb: dwc_otg: in some low-memory cases BURST_INCR16 mode will cause kernel crash --- diff --git a/drivers/usb/dwc_otg_310/dwc_otg_cil.c b/drivers/usb/dwc_otg_310/dwc_otg_cil.c index 0e9676a79e2f..653b2b600f91 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_cil.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_cil.c @@ -1394,7 +1394,7 @@ void dwc_otg_core_init(dwc_otg_core_if_t *core_if) DWC_DEBUGPL(DBG_CIL, "Internal DMA Mode\n"); /* Old value was DWC_GAHBCFG_INT_DMA_BURST_INCR - done for Host mode ISOC in issue fix - vahrama */ - ahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR16; + ahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR8; core_if->dma_enable = (core_if->core_params->dma_enable != 0); core_if->dma_desc_enable = (core_if->core_params->dma_desc_enable != 0); @@ -1714,7 +1714,7 @@ void dwc_otg_core_init_no_reset(dwc_otg_core_if_t *core_if) DWC_DEBUGPL(DBG_CIL, "Internal DMA Mode\n"); /* Old value was DWC_GAHBCFG_INT_DMA_BURST_INCR - done for Host mode ISOC in issue fix - vahrama */ - ahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR16; + ahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR8; core_if->dma_enable = (core_if->core_params->dma_enable != 0); core_if->dma_desc_enable = (core_if->core_params->dma_desc_enable != 0); @@ -1973,7 +1973,7 @@ void dwc_otg_core_dev_init(dwc_otg_core_if_t *core_if) DWC_MODIFY_REG32(core_if->pcgcctl, pcgcctl.d32, 0); dwc_udelay(10); - gahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR16; + gahbcfg.b.hburstlen = DWC_GAHBCFG_INT_DMA_BURST_INCR8; DWC_MODIFY_REG32(&global_regs->gahbcfg, 0, gahbcfg.b.hburstlen); /* Device configuration register */