diff options
author | yinbo.zhu <yinbo.zhu@nxp.com> | 2017-04-23 11:14:43 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:28 (GMT) |
commit | 5ee96ce2a31e4202dfbf7928841b196e65858e66 (patch) | |
tree | d6d1e3ac272d09ced3bf8804567d22c6e7dab462 /drivers | |
parent | 43083dca5a4f83dfcb945db0391913815755e562 (diff) | |
download | linux-5ee96ce2a31e4202dfbf7928841b196e65858e66.tar.xz |
usb: DWC3: fix usb cause crash issue
remove dwc3_frame_length_adjustment for fix crash issue.
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/dwc3/core.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 89c3808..a9b948c 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -203,31 +203,6 @@ static int dwc3_soft_reset(struct dwc3 *dwc) return 0; } -/* - * dwc3_frame_length_adjustment - Adjusts frame length if required - * @dwc3: Pointer to our controller context structure - */ -static void dwc3_frame_length_adjustment(struct dwc3 *dwc) -{ - u32 reg; - u32 dft; - - if (dwc->revision < DWC3_REVISION_250A) - return; - - if (dwc->fladj == 0) - return; - - reg = dwc3_readl(dwc->regs, DWC3_GFLADJ); - dft = reg & DWC3_GFLADJ_30MHZ_MASK; - if (!dev_WARN_ONCE(dwc->dev, dft == dwc->fladj, - "request value same as default, ignoring\n")) { - reg &= ~DWC3_GFLADJ_30MHZ_MASK; - reg |= DWC3_GFLADJ_30MHZ_SDBND_SEL | dwc->fladj; - dwc3_writel(dwc->regs, DWC3_GFLADJ, reg); - } -} - /** * dwc3_free_one_event_buffer - Frees one event buffer * @dwc: Pointer to our controller context structure @@ -821,9 +796,6 @@ static int dwc3_core_init(struct dwc3 *dwc) if (ret) goto err1; - /* Adjust Frame Length */ - dwc3_frame_length_adjustment(dwc); - dwc3_set_soc_bus_cfg(dwc); usb_phy_set_suspend(dwc->usb2_phy, 0); |