]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Revert "usb: Link the ports to the connectors they are attached to"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Apr 2021 12:36:02 +0000 (14:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Apr 2021 12:36:02 +0000 (14:36 +0200)
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>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/port.c

index 8b4303a0ff51d6d2697480ba950570ae877de121..bf2c1968525f01187e55d9c6a1d3638a352b9ae4 100644 (file)
@@ -255,15 +255,6 @@ Description:
                is permitted, "u2" if only u2 is permitted, "u1_u2" if both u1 and
                u2 are permitted.
 
-What:          /sys/bus/usb/devices/.../(hub interface)/portX/connector
-Date:          April 2021
-Contact:       Heikki Krogerus <heikki.krogerus@linux.intel.com>
-Description:
-               Link to the USB Type-C connector when available. This link is
-               only created when USB Type-C Connector Class is enabled, and
-               only if the system firmware is capable of describing the
-               connection between a port and its connector.
-
 What:          /sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout
 Date:          May 2013
 Contact:       Mathias Nyman <mathias.nyman@linux.intel.com>
index 3c382a4b648ecd1cfa6e452d2cbf4e509831fdc6..dfcca9c876c7367dce5a1c06f00bc498e0b0f026 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <linux/slab.h>
 #include <linux/pm_qos.h>
-#include <linux/usb/typec.h>
 
 #include "hub.h"
 
@@ -577,7 +576,6 @@ int usb_hub_create_port_device(struct usb_hub *hub, int port1)
        }
 
        find_and_link_peer(hub, port1);
-       typec_link_port(&port_dev->dev);
 
        /*
         * Enable runtime pm and hold a refernce that hub_configure()
@@ -621,6 +619,5 @@ void usb_hub_remove_port_device(struct usb_hub *hub, int port1)
        peer = port_dev->peer;
        if (peer)
                unlink_peers(port_dev, peer);
-       typec_unlink_port(&port_dev->dev);
        device_unregister(&port_dev->dev);
 }