Note that there are some explanatory texts on larger screens.

plurals
  1. POLinux USB driver probe() problem
    primarykey
    data
    text
    <p>I'm currently work on kernel-mode USB driver for Seowon SWU-3220A WiMAX USB modem. It is a complex device (after plugging it appear in system as USB CDROM, and driver needs to switch it to modem mode). My problem is that the probe() function from my driver is never called. I think it because OS uses standard usb mass storage driver instead of my own.</p> <p>I initialize driver as follow:</p> <pre><code>#define GDM7213_VENDOR_ID 0x1076 #define GDM7213_PRODUCT_ID 0x7f40 static struct usb_device_id gdm7213_table [] = { { USB_DEVICE(GDM7213_VENDOR_ID, GDM7213_PRODUCT_ID) }, { } }; MODULE_DEVICE_TABLE(usb, gdm7213_table); static struct usb_driver gdm7213_driver = { .name = "gdm7213", .probe = gdm7213_probe, .disconnect = gdm7213_disconnect, .suspend = gdm7213_suspend, .resume = gdm7213_resume, .pre_reset = gdm7213_pre_reset, .post_reset = gdm7213_post_reset, .id_table = gdm7213_table, }; static int gdm7213_probe(struct usb_interface *interface, const struct usb_device_id *id) { printk(KERN_INFO "GDM7213 gdm7213_probe()\n"); return 0; } static int __init gdm7213_init_module(void) { int result; printk(KERN_INFO "GDM7213 init_module()\n"); result = usb_register(&amp;gdm7213_driver); if (result) err("usb_register failed. Error number %d", result); return result; } static void __exit gdm7213_cleanup_module(void) { printk(KERN_INFO "GDM7213 cleanup_module()\n"); usb_deregister(&amp;gdm7213_driver); } module_init(gdm7213_init_module); module_exit(gdm7213_cleanup_module); </code></pre> <p>Can anybody say me where is a bug or suggest any workaround?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload