OSDN Git Service

usb: typec: Link all ports during connector registration
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 7 Apr 2021 06:55:55 +0000 (09:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:00:00 +0000 (16:00 +0200)
commitee64fc599b721cafb56a28ce2922343e02aa2d41
tree453bb183d014ce15973691689c11a011e6aa51b1
parentb433c4c789d612cf58739a772bbddbd949bafd20
usb: typec: Link all ports during connector registration

The connectors may be registered after the ports, so the
"connector" links need to be created for the ports also when
ever a new connector gets registered.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210407065555.88110-5-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c
drivers/usb/typec/class.h
drivers/usb/typec/port-mapper.c