Skip to content

Commit 2917e71

Browse files
Heikki KrogerusFelipe Balbi
authored andcommitted
usb: dwc3: cache hwparams earlier
So they are available when ULPI interface support is added. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: David Cohen <david.a.cohen@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
1 parent 6c89cce commit 2917e71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/usb/dwc3/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ static int dwc3_probe(struct platform_device *pdev)
876876
| (dwc->is_utmi_l1_suspend << 4);
877877

878878
platform_set_drvdata(pdev, dwc);
879+
dwc3_cache_hwparams(dwc);
879880

880881
ret = dwc3_core_get_phy(dwc);
881882
if (ret)
@@ -893,8 +894,6 @@ static int dwc3_probe(struct platform_device *pdev)
893894
pm_runtime_get_sync(dev);
894895
pm_runtime_forbid(dev);
895896

896-
dwc3_cache_hwparams(dwc);
897-
898897
ret = dwc3_alloc_event_buffers(dwc, DWC3_EVENT_BUFFERS_SIZE);
899898
if (ret) {
900899
dev_err(dwc->dev, "failed to allocate event buffers\n");

0 commit comments

Comments
 (0)