Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fd069d

Browse files
Heikki Krogerusgregkh
authored andcommitted
usb: dwc3: host: Stop setting the ACPI companion
It is no longer needed. The sysdev pointer is now used when assigning the ACPI companions to the xHCI ports and USB devices. Assigning the ACPI companion here resulted in the fwnode->secondary pointer to be replaced also for the parent dwc3 device since the primary fwnode (the ACPI companion) was shared. That was unintentional and it created potential side effects like resource leaks. Signed-off-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f7ffaa6 commit 7fd069d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/dwc3/host.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* Authors: Felipe Balbi <[email protected]>,
88
*/
99

10-
#include <linux/acpi.h>
1110
#include <linux/irq.h>
1211
#include <linux/of.h>
1312
#include <linux/platform_device.h>
@@ -83,7 +82,6 @@ int dwc3_host_init(struct dwc3 *dwc)
8382
}
8483

8584
xhci->dev.parent = dwc->dev;
86-
ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev));
8785

8886
dwc->xhci = xhci;
8987

0 commit comments

Comments
 (0)