Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "usb: Link the ports to the connectors they are attached to"

This reverts commit 63cd78617350dae99cc5fbd8f643b83ee819fe33 as it
causes a build error:
depmod: ERROR: Cycle detected: usbcore -> typec -> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20210412213655.3776e15e@canb.auug.org.au
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-12
-9
Documentation/ABI/testing/sysfs-bus-usb
··· 255 255 is permitted, "u2" if only u2 is permitted, "u1_u2" if both u1 and 256 256 u2 are permitted. 257 257 258 - What: /sys/bus/usb/devices/.../(hub interface)/portX/connector 259 - Date: April 2021 260 - Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com> 261 - Description: 262 - Link to the USB Type-C connector when available. This link is 263 - only created when USB Type-C Connector Class is enabled, and 264 - only if the system firmware is capable of describing the 265 - connection between a port and its connector. 266 - 267 258 What: /sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout 268 259 Date: May 2013 269 260 Contact: Mathias Nyman <mathias.nyman@linux.intel.com>
-3
drivers/usb/core/port.c
··· 9 9 10 10 #include <linux/slab.h> 11 11 #include <linux/pm_qos.h> 12 - #include <linux/usb/typec.h> 13 12 14 13 #include "hub.h" 15 14 ··· 576 577 } 577 578 578 579 find_and_link_peer(hub, port1); 579 - typec_link_port(&port_dev->dev); 580 580 581 581 /* 582 582 * Enable runtime pm and hold a refernce that hub_configure() ··· 619 621 peer = port_dev->peer; 620 622 if (peer) 621 623 unlink_peers(port_dev, peer); 622 - typec_unlink_port(&port_dev->dev); 623 624 device_unregister(&port_dev->dev); 624 625 }