Am Donnerstag, 11. Januar 2007 08:34 schrieb Jeroen Baten:
> Hello,
> 
> I am the project lead for the Stakker project which is a project on sf to
> handle the Imation Disc Stakka project. Our handling of the hardware works
> thanks to the excellent libusb sw and the skills of one of our programmers
> (not me).
>
> But.... it seems I have to do a  'rmmod usbhid' before our userspace
> program can attach to the Disc Stakka. I am not absolutely sure about this
> since I'm not an usb expert but it seems that upon connecting the device
> usbhid wants to connect to the device which in turn will do a bus reset
> and the process starts all over again.

If the device is HID, usbhid will try to claim it. After it has claimed the
device, you can unbind it via sysfs, through usbhid's unbind entry.
 
> Is there a way for me to tell the usbhid module to leave the Stakka alone?
> 
> Bus 003 Device 065: ID 0718:d000 Imation Corp.

This kernel patch, that I'll send in for inclusion into mainline will do the 
job.

--- a/drivers/usb/input/hid-core.c      2007-01-11 09:22:36.000000000 +0100
+++ b/drivers/usb/input/hid-core.c      2007-01-11 09:29:59.000000000 +0100
@@ -791,6 +791,9 @@
 #define USB_VENDOR_ID_LOGITECH         0x046d
 #define USB_DEVICE_ID_LOGITECH_USB_RECEIVER    0xc101
 
+#define USB_VENDOR_ID_IMATION          0x0718
+#define USB_DEVICE_ID_DISC_STAKKA      0xd000
+
 /*
  * Alphabetically sorted blacklist by quirk type.
  */
@@ -875,6 +878,7 @@
        { USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1004, HID_QUIRK_IGNORE },
        { USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1005, HID_QUIRK_IGNORE },
        { USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1006, HID_QUIRK_IGNORE },
+       { USB_VENDOR_ID_IMATION, USB_DEVICE_ID_DISC_STAKKA, HID_QUIRK_IGNORE },
        { USB_VENDOR_ID_KBGEAR, USB_DEVICE_ID_KBGEAR_JAMSTUDIO, 
HID_QUIRK_IGNORE },
        { USB_VENDOR_ID_LD, USB_DEVICE_ID_LD_CASSY, HID_QUIRK_IGNORE },
        { USB_VENDOR_ID_LD, USB_DEVICE_ID_LD_POCKETCASSY, HID_QUIRK_IGNORE },

-------------------------------------------------------------------------
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