Re: Custom MSC Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Yes, this should be correct.  But note that you then need to rebuild and
> load the usb-storage driver that you just changed in order for it to
> work properly.
>

I had added an entry in unusual_devs.h to ignore my device. The dev
structured is defined as

UNUSUAL_DEV(  0x01253, 0x6537, 0x0100, 0x0100,
		"xxx",
		"USB Mass Storage Device",
		US_SC_SCSI, US_PR_BULK, NULL,
		US_FL_IGNORE_RESIDUE ),

Unfortunately, i cannot reveal Vendor Id, Device Id and Vendor Name.
When i plugged in my device, the storage driver is still loaded. I
cannot see custom driver being loaded. Also, i would like to tell that
when i rebooted my PC, i did not see neither storage or my custom
driver is available in /proc list of modules. When i plugged in my
device usb_storage was added.

Also, i did the following thing. After rebooting, I plugged in device,
usb_storage module was loaded, then i inserted the my module using
insmod. In /proc i could see both modules being present. Then i
plugged in my device, still default storage was loaded.

Then i removed the default storage module using modprobe -r
usb_storage, and then added the default storage module using modprobe
-a usb_storage. Then i plugged in my device, now i could see my module
being loaded.

My question is, How can i make my module to load when i plug in the
device? Is there any thing i'm missing in above dev structure? Do i
need to handle any thing else?

Thank You.

Regards,
Madhukar
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux