]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: host: Stop setting the ACPI companion
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 28 Apr 2022 11:10:56 +0000 (14:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 19:57:32 +0000 (21:57 +0200)
commit411a919ad1fc60f4a7d69d519d70dfff6150e669
tree297c0aac697d997bb60d195a769395f1bb0a65d4
parentc1f8ccf901246e72f75f35f1d200f3fbb3ee0f68
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 <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220428111056.3558-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/host.c