diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-27 09:42:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-20 10:07:16 +0100 |
commit | 2054040d0504cd5e3e61ea36110be72f5cab0e76 (patch) | |
tree | a3f63ef05c635869451363460b421d4c173b7915 /drivers/usb | |
parent | d7f6932bdb998ed3d08102ec4103d347c9e605fc (diff) | |
download | barebox-2054040d0504cd5e3e61ea36110be72f5cab0e76.tar.gz barebox-2054040d0504cd5e3e61ea36110be72f5cab0e76.tar.xz |
usb: Remove hack from the early days
The weird hack about "bad shielded USB devices" goes back to the initial
U-Boot git commmit. Let's be bold and remove it 18 years later.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/hub.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index cc0c4c04d5..0569d0f94b 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -327,18 +327,6 @@ static void usb_scan_port(struct usb_device_scan *usb_scan) port + 1, portstatus); usb_clear_port_feature(dev, port + 1, USB_PORT_FEAT_C_ENABLE); - - /* EM interference sometimes causes bad shielded USB - * devices to be shutdown by the hub, this hack enables - * them again. Works at least with mouse driver */ - if (!(portstatus & USB_PORT_STAT_ENABLE) && - (portstatus & USB_PORT_STAT_CONNECTION) && - ((dev->children[port]))) { - dev_dbg(&dev->dev, "port%d: already running, " - "disabled by hub (EMI?), " - "re-enabling...\n", port + 1); - usb_hub_port_connect_change(dev, port); - } } if (portstatus & USB_PORT_STAT_SUSPEND) { |