Hi,
hm, I think the allocation of the TDs has to be changed too.
regards
Roman
Oliver Neukum wrote:
>Hi,
>
>this is for usb-ohci.c
>
> Regards
> Oliver
>
>--- drivers/usb/usb-ohci.c.pre Sun Feb 3 10:28:31 2002
>+++ drivers/usb/usb-ohci.c Sun Feb 3 10:39:56 2002
>@@ -532,7 +532,7 @@
>
> /* get a transfer request */
>
>-static int sohci_submit_urb (struct urb * urb)
>+static int sohci_submit_urb (struct urb * urb, int gfp)
> {
> ohci_t * ohci;
> ed_t * ed;
>@@ -542,7 +542,6 @@
> int i, size = 0;
> unsigned long flags;
> int bustime = 0;
>- int mem_flags = ALLOC_FLAGS;
>
> if (!urb->dev || !urb->dev->bus)
> return -ENODEV;
>@@ -572,7 +571,7 @@
> }
>
> /* every endpoint has a ed, locate and fill it */
>- if (!(ed = ep_add_ed (urb->dev, pipe, urb->interval, 1, mem_flags))) {
>+ if (!(ed = ep_add_ed (urb->dev, pipe, urb->interval, 1, gfp))) {
> usb_dec_dev_use (urb->dev);
> return -ENOMEM;
> }
>@@ -613,7 +612,7 @@
>
> /* allocate the private part of the URB */
> urb_priv = kmalloc (sizeof (urb_priv_t) + size * sizeof (td_t *),
>- in_interrupt() ? GFP_ATOMIC :
>GFP_KERNEL);
>+ gfp);
> if (!urb_priv) {
> usb_dec_dev_use (urb->dev);
> return -ENOMEM;
>
>
>
>
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel