Setup intr in the last step of uhci_pci_attach().
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 20 Sep 2005 09:06:58 +0000 (09:06 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 20 Sep 2005 09:06:58 +0000 (09:06 +0000)
commitaa0bb337d9d7f3fbd394fca7009ad94d010cd4ba
tree08cbb2224b033ff0eb32d8c00ac584dcbcd854b6
parentfc86679c62a70df4c349345e6d7581215dde53e6
Setup intr in the last step of uhci_pci_attach().

This can (reliably) prevent uhci_intr() from being called before uhci_init()
and child devices's attachment.

Reviewed-and-Approved-by: asmodai
# This shuts up "livelock!" complaining (only during system starting up)
# on my test box, to which a USB ethernet card is attached.
sys/bus/usb/uhci_pci.c