Re: [linux-usb-devel] changing URB allocation API

2007-07-07 Thread Oliver Neukum
Am Samstag, 7. Juli 2007 schrieb Alan Stern: > On Sat, 7 Jul 2007, Oliver Neukum wrote: > > > > That's a real problem.  During initial enumeration the usb_device > > > hasn't been registered yet, so the ep_device hasn't been created. > > > > > > One possibility is to add yet another allocator: >

Re: [linux-usb-devel] changing URB allocation API

2007-07-07 Thread Alan Stern
On Sat, 7 Jul 2007, Oliver Neukum wrote: > > That's a real problem. During initial enumeration the usb_device > > hasn't been registered yet, so the ep_device hasn't been created. > > > > One possibility is to add yet another allocator: > > > > struct urb *usb_alloc_ep0_urb(struct usb_device *

Re: [linux-usb-devel] changing URB allocation API

2007-07-07 Thread Oliver Neukum
Am Freitag, 6. Juli 2007 schrieb Alan Stern: > On Fri, 6 Jul 2007, Oliver Neukum wrote: > > > Hi, > > > > I tried switching our allocation APIs to: > > > > struct urb *usb_alloc_urb(struct usb_host_endpoint *ep, size_t > > alloc_length, gfp_t mem_flags); > > struct urb *usb_alloc_iso_urb(struct

Re: [linux-usb-devel] changing URB allocation API

2007-07-06 Thread Alan Stern
On Fri, 6 Jul 2007, Oliver Neukum wrote: > Hi, > > I tried switching our allocation APIs to: > > struct urb *usb_alloc_urb(struct usb_host_endpoint *ep, size_t alloc_length, > gfp_t mem_flags); > struct urb *usb_alloc_iso_urb(struct usb_host_endpoint *ep, unsigned int > iso_packets, gfp_t mem_

[linux-usb-devel] changing URB allocation API

2007-07-06 Thread Oliver Neukum
Hi, I tried switching our allocation APIs to: struct urb *usb_alloc_urb(struct usb_host_endpoint *ep, size_t alloc_length, gfp_t mem_flags); struct urb *usb_alloc_iso_urb(struct usb_host_endpoint *ep, unsigned int iso_packets, gfp_t mem_flags); Unfortunately during initialisation ep->ep_dev tu