]> git.itanic.dy.fi Git - linux-stable/commit
usb: typec: ucsi: Fix missing link removal
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 10 Oct 2023 14:17:49 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:11:07 +0000 (23:11 +0200)
commitd386632939e006365a28043939b210811f098b98
tree1c051f00fa0a4c089bd594f22d1ebdd98e6c4b83
parentd68c74f3b2db08ae4e8067a919e21f958a1fa1d6
usb: typec: ucsi: Fix missing link removal

commit dddb91cde52b4a57fa06a332b230fca3b11b885f upstream.

The link between the partner device and its USB Power
Delivery instance was never removed which prevented the
device from being released. Removing the link always when
the partner is unregistered.

Fixes: b04e1747fbcc ("usb: typec: ucsi: Register USB Power Delivery Capabilities")
Cc: stable <stable@kernel.org>
Reported-by: Douglas Gilbert <dgilbert@interlog.com>
Closes: https://lore.kernel.org/linux-usb/ZSUMXdw9nanHtnw2@kuha.fi.intel.com/
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231010141749.3912016-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c