ukbd - Add USBD_CALLBACK_LAST back in
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 27 Sep 2009 19:58:53 +0000 (12:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 27 Sep 2009 19:58:53 +0000 (12:58 -0700)
* The USBD_CALLBACK_LAST flag was mistakenly removed in the kbdmux
  commit.  Add it back in.

  This unbreaks usb keyboards when dropping into a mountroot prompt
  or dropping into ddb.

sys/dev/usbmisc/ukbd/ukbd.c

index e895d90..4fa40ca 100644 (file)
@@ -631,7 +631,7 @@ ukbd_enable_intr(keyboard_t *kbd, int on, usbd_intr_t *func)
 
                state->ks_ifstate |= INTRENABLED;
                err = usbd_open_pipe_intr(state->ks_iface, state->ks_ep_addr,
-                                       USBD_SHORT_XFER_OK,
+                                       USBD_SHORT_XFER_OK | USBD_CALLBACK_LAST,
                                        &state->ks_intrpipe, kbd,
                                        &state->ks_ndata,
                                        sizeof(state->ks_ndata), func,