]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: dwc3: core: Clean up ULPI device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 27 Aug 2018 15:30:16 +0000 (18:30 +0300)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:44:50 +0000 (09:44 -0600)
commit2579ffe02b3938e13b158e5696684355c298b2cb
tree1d62e2b0c63d468ef1c518dd3e9adc1e99e14a19
parent29f200038875b347331e70ebb5ef49e5e5cf3054
usb: dwc3: core: Clean up ULPI device

BugLink: https://bugs.launchpad.net/bugs/1836968
commit 08fd9a82fda86529bb2f2af3c2f7cb657b4d3066 upstream.

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/dwc3/core.c