From: Heikki Krogerus Date: Wed, 13 May 2015 12:26:46 +0000 (+0300) Subject: usb: dwc3: cache hwparams earlier X-Git-Tag: firefly_0821_release~176^2~1543^2~16^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2917e7181589f859ac1e00ba1b3decbbfc2549bb;p=firefly-linux-kernel-4.4.55.git usb: dwc3: cache hwparams earlier So they are available when ULPI interface support is added. Signed-off-by: Heikki Krogerus Acked-by: David Cohen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c7734edd40f8..104b23642548 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -876,6 +876,7 @@ static int dwc3_probe(struct platform_device *pdev) | (dwc->is_utmi_l1_suspend << 4); platform_set_drvdata(pdev, dwc); + dwc3_cache_hwparams(dwc); ret = dwc3_core_get_phy(dwc); if (ret) @@ -893,8 +894,6 @@ static int dwc3_probe(struct platform_device *pdev) pm_runtime_get_sync(dev); pm_runtime_forbid(dev); - dwc3_cache_hwparams(dwc); - ret = dwc3_alloc_event_buffers(dwc, DWC3_EVENT_BUFFERS_SIZE); if (ret) { dev_err(dwc->dev, "failed to allocate event buffers\n");