Hm, any reason you took this off of the list?

On Thu, Jul 31, 2003 at 09:43:35AM +0200, Koen Van Renterghem wrote:
> At 14:16 30/07/2003 -0700, you wrote:
> >On Tue, Jul 29, 2003 at 04:03:15PM +0200, Koen Van Renterghem wrote:
> >> Hello,
> >>
> >> I noticed that usb_register_dev() has changed in recent kernels. The 
> >'old'
> >> function (2.5.69) could allocate a continious chunk of 16 minors, but the
> >> new version only allocates a single minor. I would like to have several
> >> minors available to my driver, how can this be implemented?
> >
> >You still have many minors available to your driver, just ask for them
> >when your device is connected.
> 
> Could you elaborate a bit more on how this should be handled?  In the probe 
> function I used to allocate 16 minors with usb_register_dev(). I want
> to control a single piece of hardware through that minor range. How do
> I ask for additional minors after calling usb_register_dev() in the
> probe function?

You want more than one minor per USB device?  During 2.5,
usb_register_dev() could handle that, but no one ever used it that way,
so it was changed to only dole out 1 minor at a time per device.  If you
want your driver to go into the main kernel tree, I can reconsider
changing the function back.

> > What driver are you writing, and have
> >you reserved a minor number range for it?
> 
> No I don't, but this isn't a real problem since I'am working on custom 
> hardware based on the Cypress FX2. Everything is currently in the
> research phase.

Any reason why you have to write a kernel driver and can't do everything
from libusb/usbfs?

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to