Discussion:
[patch ldusb.c] ldusb serial driver now supports ADU devices.
John Homppi
2007-12-20 23:55:44 UTC
Permalink
The following patch causes the ldusb driver to claim ADU devices.
I have tested it with both an OHCI controller and an UHCI controller
with multiple ADU devices attached.
Note that udev allows symlinking to the /dev/usb/adutux names so that
application code does not need to change.

Question: what is the procedure to remove the adutux driver from the
kernel?



diff -urN linux-2.6.23.11.old/drivers/usb/misc/ldusb.c
linux-2.6.23.11.new/drivers/usb/misc/ldusb.c
--- linux-2.6.23.11.old/drivers/usb/misc/ldusb.c 2007-12-14
22:50:05.000000000 -0500
+++ linux-2.6.23.11.new/drivers/usb/misc/ldusb.c 2007-12-20
17:14:49.420253528 -0500
@@ -65,6 +65,9 @@
#define USB_VENDOR_ID_MICROCHIP 0x04d8
#define USB_DEVICE_ID_PICDEM 0x000c

+#define USB_VENDOR_ID_ONTRAK 0x0a07
+#define USB_DEVICE_ID_ONTRAK 0x0064
+
#ifdef CONFIG_USB_DYNAMIC_MINORS
#define USB_LD_MINOR_BASE 0
#else
@@ -92,6 +95,12 @@
{ USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_SKIP) },
{ USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_CYCLOPS) },
{ USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICDEM) },
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK) },
/* ADU100 */
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+20) },
/* ADU120 */
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+30) },
/* ADU130 */
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+100) },
/* ADU200 */
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+108) },
/* ADU208 */
+ { USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK+118) },
/* ADU218 */
{ } /* Terminating entry */
};
MODULE_DEVICE_TABLE(usb, ld_usb_table);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Greg KH
2007-12-23 07:53:17 UTC
Permalink
Post by John Homppi
The following patch causes the ldusb driver to claim ADU devices.
I have tested it with both an OHCI controller and an UHCI controller
with multiple ADU devices attached.
Note that udev allows symlinking to the /dev/usb/adutux names so that
application code does not need to change.
Question: what is the procedure to remove the adutux driver from the
kernel?
Can you send this in a format I can apply it (read
Documentation/SendingPatches for details.)

As for removing the driver, just get the author to send me a patch
removing it if it's no longer needed.

thanks,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Loading...