git: EHCI - Fix early probing problems.

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 10 09:33:26 PDT 2009


commit 7728b40a01dd76863722a443387f4ab5e30b4f2f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 10 09:27:42 2009 -0700

    EHCI - Fix early probing problems.
    
    * When polling is used an actual interrupt will clear pending status to
      prevent an interrupt livelock.  However, if this occurs the polling code
      can wind up believing that no status change has occured.
    
      Add the cleared pending status to sc->sc_dintrs and then reincorporate
      into the status check when polling or running a normal interrupt.
    
    * Code cleanup: NULL out some fields on termination.

Summary of changes:
 sys/bus/usb/ehci.c    |   30 ++++++++++++++----------------
 sys/bus/usb/ehcivar.h |    3 ++-
 2 files changed, 16 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7728b40a01dd76863722a443387f4ab5e30b4f2f


-- 
DragonFly BSD source repository





More information about the Commits mailing list