git: kernel - Fix bug in ehci port reset code

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 21 17:07:44 PST 2013


commit 74333aebb4fdc2422fa4054657e1b25b2175a268
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 21 16:57:29 2013 -0800

    kernel - Fix bug in ehci port reset code
    
    * Fix a bug when the port reset fails where the port locks up and no longer
      works.  The reset code was returning without disposing of the transfer
      request.
    
    * Some devices (usually smart phones) won't reset on the first attempt.
      Try at least twice before reporting an error.
    
    * Change the PR clear test to wait up to one second, instead of 250ms.

Summary of changes:
 sys/bus/usb/ehci.c    | 74 ++++++++++++++++++++++++++++++++++++---------------
 sys/bus/usb/ehcireg.h |  2 +-
 2 files changed, 53 insertions(+), 23 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74333aebb4fdc2422fa4054657e1b25b2175a268


-- 
DragonFly BSD source repository



More information about the Commits mailing list