Add some comments.

This commit is contained in:
augustss 1999-08-28 10:04:01 +00:00
parent 103e304a84
commit 1aa63c9fab

View File

@ -1,4 +1,4 @@
/* $NetBSD: usbdi.c,v 1.32 1999/08/23 22:55:14 augustss Exp $ */
/* $NetBSD: usbdi.c,v 1.33 1999/08/28 10:04:01 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -426,7 +426,13 @@ usbd_clear_endpoint_stall(pipe)
usbd_status r;
DPRINTFN(8, ("usbd_clear_endpoint_stall\n"));
/*
* Clearing en endpoint stall resets the enpoint toggle, so
* do the same to the HC toggle.
*/
pipe->methods->cleartoggle(pipe);
req.bmRequestType = UT_WRITE_ENDPOINT;
req.bRequest = UR_CLEAR_FEATURE;
USETW(req.wValue, UF_ENDPOINT_HALT);
@ -452,6 +458,7 @@ usbd_clear_endpoint_stall_async(pipe)
usbd_status r;
pipe->methods->cleartoggle(pipe);
req.bmRequestType = UT_WRITE_ENDPOINT;
req.bRequest = UR_CLEAR_FEATURE;
USETW(req.wValue, UF_ENDPOINT_HALT);
@ -594,6 +601,7 @@ usbd_ar_pipe(pipe)
pipe, reqh, pipe->methods));
/* Make the HC abort it (and invoke the callback). */
pipe->methods->abort(reqh);
/* XXX only for non-0 usbd_clear_endpoint_stall(pipe); */
}
return (USBD_NORMAL_COMPLETION);
}