]> xenbits.xensource.com Git - seabios.git/commit
Batch free USB pipes on EHCI controllers.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 20 Feb 2012 17:54:49 +0000 (12:54 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 6 Mar 2012 12:29:57 +0000 (07:29 -0500)
commit402f9a0fd7477cfb74efa423c410114954a76058
tree6c89b4ff8c76d52e4c86fb16f6cf5bd3cf2bdd07
parent1e4dc8a663bb3ece15375fba3eb479c389932210
Batch free USB pipes on EHCI controllers.

Instead of unregistering each control "endpoint descriptor" after it
is used, keep them around for later users.  Free all unused
descriptors in one batch at the end of initialization.  This should
slightly optimize boot time, and it requires less overall interaction
with the controller.

This also merges the code that allocates the control and bulk pipes,
as they were quite similar before.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/usb-ehci.c