Hi !

I agree with you on all the points, but then, I cannot do what I want, as this
job is for a customer.

Greg KH a wrote :
> On Thu, Jan 25, 2007 at 10:25:34AM +0100, Nathael Pajani wrote:
> Don't use the generic driver for any real device, it's not made for that
> at all.
That's what the customer is actually doing, and what is found at the end of the
documentation: Documentation/usb/usb-serial.txt
Generic Serial driver
        insmod usbserial vendor=0x#### product=0x####


>> So I'm "writting" a "fake" driver, which uses most of the generic one, but 
>> is not the generic one.
> 
> You can do that in very few lines, look at the funsoft.c driver for such
> an example.  I recommend doing that.
That's what my driver looks like, whith only probe and disconnect functions for
some stuff.

>> Why don't I simply modify the generic driver ?
> 
> Because I will not let you :)
Of course :)
But this is for a customer with very particular needs, not for the mainstream
kernel.

>> Because I need other functionnalities like "static" allocation of tty 
>> numbers (just think of the number of cables connected to the PC, and try to 
>> immagine yourself trying to find which ttyUSB is which device....)
> 
> That's what sysfs and udev solve.
Partly, but the customer does not want udev.
And I do not see which part in the usb-serial code makes device connected to
port 18 on the machine be ttyUSB18 if it's the first connected device.
It would be ttyUSB0. no?
Maybe I'm missing something, I'm not accustomed to udev, just told the client
that we should have a look at it for it may solve some parts of his problem and
he told me he does not want udev, so I did not look further.


> Care to post what you have?
This would be no problem,
If you want I can send it all to you in the end, just ask me.
This is GPL code isn't it ?


> I still don't see why you are doing
> something different from what everyone else has been doing for a while.
This is a request from the customer.


+++
Have fun,
Nathael.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to