EHCI - Fix early probing problems.
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 16:27:42 +0000 (09:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 16:27:42 +0000 (09:27 -0700)
commit7728b40a01dd76863722a443387f4ab5e30b4f2f
tree8a83eec7c442de90b40499a03e2eaeab42be705a
parentd9adbeafd8f8b1c2417a208874b621fe3a8fdb26
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.
sys/bus/usb/ehci.c
sys/bus/usb/ehcivar.h