summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-02-26 16:10:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-20 10:06:18 +0100
commit54de5cb084c4010dd9cb1a61fb51e68d5339981c (patch)
tree3bb008e4687c7999c0de0129be0eb74a18f66cef /drivers/usb/core/usb.c
parentf6782becd54847a2149380c751046c319dd07472 (diff)
downloadbarebox-54de5cb084c4010dd9cb1a61fb51e68d5339981c.tar.gz
barebox-54de5cb084c4010dd9cb1a61fb51e68d5339981c.tar.xz
usb: hub: do not reset devices twice
U-Boot has this since 3ed9eb93c2 ("usb: Don't reset the USB hub a 2nd time"), so do the same for barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r--drivers/usb/core/usb.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 1c3dcb79a8..8a144c9447 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -57,7 +57,6 @@
#include <usb/ch9.h>
#include "usb.h"
-#include "hub.h"
#define USB_BUFSIZ 512
@@ -351,16 +350,6 @@ int usb_new_device(struct usb_device *dev)
dev->descriptor->bMaxPacketSize0 = desc->bMaxPacketSize0;
- /* find the port number we're at */
- if (parent) {
- /* reset the port for the second time */
- err = hub_port_reset(dev->parent, dev->portnr - 1, dev);
- if (err < 0) {
- printf("\n Couldn't reset port %i\n", dev->portnr);
- goto err_out;
- }
- }
-
dev->epmaxpacketin[0] = dev->descriptor->bMaxPacketSize0;
dev->epmaxpacketout[0] = dev->descriptor->bMaxPacketSize0;
switch (dev->descriptor->bMaxPacketSize0) {