Skip to contentSkip to conversation

usb: dwc3: core: Clean up ULPI device

DISCUSSION Felipe Balbi 1 participant 1 message Oct 30, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 41 lines · Felipe Balbi

From: Andy Shevchenko <[email protected]>

If dwc3_core_init_mode() fails with deferred probe, next probe fails on sysfs with

sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:11.0/dwc3.0.auto/dwc3.0.auto.ulpi'

To avoid this failure, clean up ULPI device.

---
 drivers/usb/dwc3/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc3/core.c +1 -0
index 88c80fcc39f5..fec97465ccac 100644
@@ -1499,6 +1499,7 @@ static int dwc3_probe(struct platform_device *pdev)
 
 err5:
 	dwc3_event_buffers_cleanup(dwc);
+	dwc3_ulpi_exit(dwc);
 
 err4:
 	dwc3_free_scratch_buffers(dwc);
Signature · 12 lines
2.19.1

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

argh, apologies for this footer. Mail server had changes recently.