Hi, I try to make a new driver for infinity unlimited usb. I use the
usbserial layer to manage the lowlevel functions like probing or ttyUSBx
creation/selection.
The driver works but only after a first sequence "open and close" of the
device by a program in the user space. After this first "open/close"
sequence, all is running well. I join the (hugly ?) code for a review. I'm a
newbie in driver coding, so there is a lot of bad things in the code
probably and with your help, I hope to have soon a clean and working code.
For exemple, I'm not very sure if I need to use the lock mechanism
(spin_lock_irq) . This code is for kernel 2.6.21 with GCC 4.1.

Thanks,

Alain

Attachment: iuu_phoenix.c
Description: Binary data

Attachment: Makefile
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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