# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.220.2.6 -> 1.220.2.7 # drivers/media/video/cpia_usb.c 1.5 -> 1.6 # drivers/isdn/hisax/st5481_usb.c 1.7 -> 1.8 # drivers/input/joystick/iforce.c 1.7 -> 1.8 # drivers/isdn/hisax/st5481.h 1.4 -> 1.5 # drivers/bluetooth/hci_usb.c 1.4 -> 1.5 # drivers/isdn/hisax/st5481_b.c 1.4 -> 1.5 # drivers/isdn/hisax/st5481_d.c 1.6 -> 1.7 # drivers/net/irda/irda-usb.c 1.11 -> 1.12 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/02/06 greg@soap.kroah.net 1.220.2.7 # usb_submit_urb() changes for USB drivers that live outside of the drivers/usb subdirectory. # -------------------------------------------- # diff -Nru a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c --- a/drivers/bluetooth/hci_usb.c Wed Feb 6 20:48:49 2002 +++ b/drivers/bluetooth/hci_usb.c Wed Feb 6 20:48:49 2002 @@ -120,11 +120,11 @@ DBG("%s", hdev->name); husb->read_urb->dev = husb->udev; - if ((status = usb_submit_urb(husb->read_urb))) + if ((status = usb_submit_urb(husb->read_urb, GFP_KERNEL))) DBG("read submit failed. %d", status); husb->intr_urb->dev = husb->udev; - if ((status = usb_submit_urb(husb->intr_urb))) + if ((status = usb_submit_urb(husb->intr_urb, GFP_KERNEL))) DBG("interrupt submit failed. %d", status); hdev->flags |= HCI_RUNNING; @@ -428,7 +428,7 @@ resubmit: husb->read_urb->dev = husb->udev; - if ((status = usb_submit_urb(husb->read_urb))) + if ((status = usb_submit_urb(husb->read_urb, GFP_KERNEL))) DBG("%s read URB submit failed %d", husb->hdev.name, status); DBG("%s read URB re-submited", husb->hdev.name); @@ -453,7 +453,7 @@ FILL_CONTROL_URB(urb, husb->udev, pipe, (void*)dr, skb->data, skb->len, hci_usb_ctrl, skb); - if ((status = usb_submit_urb(urb))) { + if ((status = usb_submit_urb(urb, GFP_KERNEL))) { DBG("%s control URB submit failed %d", husb->hdev.name, status); return status; } @@ -474,7 +474,7 @@ hci_usb_bulk_write, skb); urb->transfer_flags |= USB_QUEUE_BULK; - if ((status = usb_submit_urb(urb))) { + if ((status = usb_submit_urb(urb, GFP_KERNEL))) { DBG("%s write URB submit failed %d", husb->hdev.name, status); return status; } diff -Nru a/drivers/input/joystick/iforce.c b/drivers/input/joystick/iforce.c --- a/drivers/input/joystick/iforce.c Wed Feb 6 20:48:49 2002 +++ b/drivers/input/joystick/iforce.c Wed Feb 6 20:48:49 2002 @@ -204,7 +204,7 @@ set_current_state(TASK_INTERRUPTIBLE); add_wait_queue(&iforce->wait, &wait); - if (usb_submit_urb(iforce->out)) { + if (usb_submit_urb(iforce->out, GFP_ATOMIC)) { set_current_state(TASK_RUNNING); remove_wait_queue(&iforce->wait, &wait); return; @@ -289,7 +289,7 @@ set_current_state(TASK_INTERRUPTIBLE); add_wait_queue(&iforce->wait, &wait); - if (usb_submit_urb(iforce->ctrl)) { + if (usb_submit_urb(iforce->ctrl, GFP_ATOMIC)) { set_current_state(TASK_RUNNING); remove_wait_queue(&iforce->wait, &wait); return -1; @@ -345,7 +345,7 @@ if (iforce->open++) break; iforce->irq->dev = iforce->usbdev; - if (usb_submit_urb(iforce->irq)) + if (usb_submit_urb(iforce->irq, GFP_KERNEL)) return -EIO; break; #endif diff -Nru a/drivers/isdn/hisax/st5481.h b/drivers/isdn/hisax/st5481.h --- a/drivers/isdn/hisax/st5481.h Wed Feb 6 20:48:49 2002 +++ b/drivers/isdn/hisax/st5481.h Wed Feb 6 20:48:49 2002 @@ -409,10 +409,10 @@ * Submit an URB with error reporting. This is a macro so * the __FUNCTION__ returns the caller function name. */ -#define SUBMIT_URB(urb) \ +#define SUBMIT_URB(urb, mem_flags) \ ({ \ int status; \ - if ((status = usb_submit_urb(urb)) < 0) { \ + if ((status = usb_submit_urb(urb, mem_flags)) < 0) { \ WARN("usb_submit_urb failed,status=%d", status); \ } \ status; \ diff -Nru a/drivers/isdn/hisax/st5481_b.c b/drivers/isdn/hisax/st5481_b.c --- a/drivers/isdn/hisax/st5481_b.c Wed Feb 6 20:48:49 2002 +++ b/drivers/isdn/hisax/st5481_b.c Wed Feb 6 20:48:49 2002 @@ -115,7 +115,7 @@ DBG_ISO_PACKET(0x200,urb); - SUBMIT_URB(urb); + SUBMIT_URB(urb, GFP_KERNEL); } /* diff -Nru a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c --- a/drivers/isdn/hisax/st5481_d.c Wed Feb 6 20:48:49 2002 +++ b/drivers/isdn/hisax/st5481_d.c Wed Feb 6 20:48:49 2002 @@ -356,10 +356,10 @@ DBG_ISO_PACKET(0x20,urb); - if (usb_submit_urb(urb) < 0) { + if (usb_submit_urb(urb, GFP_KERNEL) < 0) { // There is another URB queued up urb->transfer_flags = USB_ISO_ASAP; - SUBMIT_URB(urb); + SUBMIT_URB(urb, GFP_KERNEL); } } @@ -450,7 +450,7 @@ urb->transfer_flags = USB_ISO_ASAP; DBG_ISO_PACKET(0x20,urb); - SUBMIT_URB(urb); + SUBMIT_URB(urb, GFP_KERNEL); } static void dout_short_fifo(struct FsmInst *fsm, int event, void *arg) diff -Nru a/drivers/isdn/hisax/st5481_usb.c b/drivers/isdn/hisax/st5481_usb.c --- a/drivers/isdn/hisax/st5481_usb.c Wed Feb 6 20:48:49 2002 +++ b/drivers/isdn/hisax/st5481_usb.c Wed Feb 6 20:48:49 2002 @@ -48,7 +48,7 @@ // Prepare the URB urb->dev = adapter->usb_dev; - SUBMIT_URB(urb); + SUBMIT_URB(urb, GFP_KERNEL); } /* @@ -357,7 +357,7 @@ adapter->leds = RED_LED; // Start receiving on the interrupt endpoint - SUBMIT_URB(intr->urb); + SUBMIT_URB(intr->urb, GFP_KERNEL); while ((request = init_cmd_table[i++])) { value = init_cmd_table[i++]; @@ -517,7 +517,7 @@ urb->dev = in->adapter->usb_dev; urb->actual_length = 0; - SUBMIT_URB(urb); + SUBMIT_URB(urb, GFP_KERNEL); } int __devinit st5481_setup_in(struct st5481_in *in) @@ -603,10 +603,10 @@ DBG(4,""); in->urb[0]->dev = adapter->usb_dev; - SUBMIT_URB(in->urb[0]); + SUBMIT_URB(in->urb[0], GFP_KERNEL); in->urb[1]->dev = adapter->usb_dev; - SUBMIT_URB(in->urb[1]); + SUBMIT_URB(in->urb[1], GFP_KERNEL); } void st5481_in_mode(struct st5481_in *in, int mode) diff -Nru a/drivers/media/video/cpia_usb.c b/drivers/media/video/cpia_usb.c --- a/drivers/media/video/cpia_usb.c Wed Feb 6 20:48:49 2002 +++ b/drivers/media/video/cpia_usb.c Wed Feb 6 20:48:49 2002 @@ -246,13 +246,13 @@ ucpia->sbuf[1].urb->next = ucpia->sbuf[0].urb; ucpia->sbuf[0].urb->next = ucpia->sbuf[1].urb; - err = usb_submit_urb(ucpia->sbuf[0].urb); + err = usb_submit_urb(ucpia->sbuf[0].urb, GFP_KERNEL); if (err) { printk(KERN_ERR "cpia_init_isoc: usb_submit_urb 0 ret %d\n", err); goto error_urb1; } - err = usb_submit_urb(ucpia->sbuf[1].urb); + err = usb_submit_urb(ucpia->sbuf[1].urb, GFP_KERNEL); if (err) { printk(KERN_ERR "cpia_init_isoc: usb_submit_urb 1 ret %d\n", err); diff -Nru a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c --- a/drivers/net/irda/irda-usb.c Wed Feb 6 20:48:49 2002 +++ b/drivers/net/irda/irda-usb.c Wed Feb 6 20:48:49 2002 @@ -278,7 +278,7 @@ urb->transfer_flags = USB_QUEUE_BULK | USB_ASYNC_UNLINK; urb->timeout = MSECS_TO_JIFFIES(100); - if ((ret = usb_submit_urb(urb))) { + if ((ret = usb_submit_urb(urb, GFP_KERNEL))) { WARNING(__FUNCTION__ "(), failed Speed URB\n"); } spin_unlock_irqrestore(&self->lock, flags); @@ -451,7 +451,7 @@ } /* Ask USB to send the packet */ - if ((res = usb_submit_urb(urb))) { + if ((res = usb_submit_urb(urb, GFP_KERNEL))) { WARNING(__FUNCTION__ "(), failed Tx URB\n"); self->stats.tx_errors++; /* Let USB recover : We will catch that in the watchdog */ @@ -730,7 +730,7 @@ urb->status = 0; urb->next = NULL; /* Don't auto resubmit URBs */ - ret = usb_submit_urb(urb); + ret = usb_submit_urb(urb, GFP_KERNEL); if (ret) { /* If this ever happen, we are in deep s***. * Basically, the Rx path will stop... */