[PATCH v2] [RFC] USB: hub.c: decrease the number of attempts of enumeration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yasushi Asano <yasano@xxxxxxxxxxxxxx>

Hello Alan,
Thank you for the feedback. I added the information in the commit.
I reconsidered the reduction place in the number of attempts.
Since I don't want to miss 2nd reset[1] or do not change the timing of power cycling the port[2],
I changed to reduce attempts from the nearest enclosing loop.
I'm sorry to trouble you, please confirm it again.

[1]
 /*
  * Some devices time out if they are powered on
  * when already connected. They need a second
  * reset. But only on the first attempt,
  * lest we get into a time out/reset loop
  */
 if (r == 0 || (r == -ETIMEDOUT &&
                 retries == 0 &&
                 udev->speed > USB_SPEED_FULL))
         break;

[2]
 /* When halfway through our retry count, power-cycle the port */
 if (i == (SET_CONFIG_TRIES / 2) - 1) {

Yasushi Asano (1):
  [RFC] USB: hub.c: decrease the number of attempts of enumeration
    scheme

 drivers/usb/core/hub.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

-- 
2.7.4




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux