Skip to content

Commit

Permalink
usb: dwc3: store driver data earlier
Browse files Browse the repository at this point in the history
We need to store it before phys are handled, so we can later
use it in ULPI interface support code.

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>
  • Loading branch information
Heikki Krogerus authored and Felipe Balbi committed May 13, 2015
1 parent f699b94 commit 6c89cce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,12 +875,13 @@ static int dwc3_probe(struct platform_device *pdev)
dwc->hird_threshold = hird_threshold
| (dwc->is_utmi_l1_suspend << 4);

platform_set_drvdata(pdev, dwc);

ret = dwc3_core_get_phy(dwc);
if (ret)
goto err0;

spin_lock_init(&dwc->lock);
platform_set_drvdata(pdev, dwc);

if (!dev->dma_mask) {
dev->dma_mask = dev->parent->dma_mask;
Expand Down

0 comments on commit 6c89cce

Please sign in to comment.