diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2007-02-15 05:09:16 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2007-02-15 05:09:16 +0000 |
commit | ef793607391e2d87c2b44d5d2ed394638574ab3a (patch) | |
tree | f9f34b2204c5938c4ca2b06f83471fcefff2ae52 /sys/dev | |
parent | 522acf852402eb457440aea0d901d5f7cc4a23cc (diff) |
It is not valid to have the input endpoint and output endpoint the same.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_cdcef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_cdcef.c b/sys/dev/usb/if_cdcef.c index ed3b6cb4f19..1a6743e4741 100644 --- a/sys/dev/usb/if_cdcef.c +++ b/sys/dev/usb/if_cdcef.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdcef.c,v 1.4 2007/02/15 04:34:44 drahn Exp $ */ +/* $OpenBSD: if_cdcef.c,v 1.5 2007/02/15 05:09:15 drahn Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -170,7 +170,7 @@ USB_ATTACH(cdcef) USB_ATTACH_ERROR_RETURN; } /* XXX don't use hard-coded values 128 and 16. */ - err = usbf_add_endpoint(sc->sc_iface, UE_DIR_IN | 1, UE_BULK, + err = usbf_add_endpoint(sc->sc_iface, UE_DIR_IN | 2, UE_BULK, 64, 16, &sc->sc_ep_in) || usbf_add_endpoint(sc->sc_iface, UE_DIR_OUT | 1, UE_BULK, 64, 16, &sc->sc_ep_out); |