Re: Custom MSC Driver

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

 




Madhukar G wrote:
> Hi All,
> 
> I'm developing a USB class driver for a custom device which is
> something similiar to Mass Storage Device (USB Stick). I can modify
> the exisiting storage class driver provided in /drivers/usb/storage.
> But i thought of keeping the original driver in the directory. I had
> taken a copy of storage and renamed to USBCustom and did the required
> modifications in code. But still lot of modifications left.
> 
> Now, i want to load my driver when device is plugged in. But core
> always probes default storage driver. By the way, the device class of
> my device is USB_CLASS_MASS_STORAGE. So, storage driver is loaded by
> default.

IMO thats the way it should be...

> Also, i dont want to depend of VendorId and DeviceId for
> probing.

But that is almost the only way to tell kernel to use another driver.
How to distinguish between your device and usual USB Flash drive?

> How can i tell USB core to load my custom driver instead of default
> storage driver.

rmmod <old_driver>
insmod <new_driver>

> Any help is much appreciated.
> 
> Thank you.
> 
> Regards,
> Madhukar
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@xxxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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