On Mon, 7 Feb 2005, deepak katgade wrote:

> hi all,
>        I am writing USB mass storage class driver.
> When i am going register my driver to the usb core.
> The driver got registerered to the core and it gave
> the message    usb core : new driver got registerered.
> 
> After registering to the usbcore, the core should
> automatically call the probe function

No.  It should automatically call the probe function when you register 
only if there is a USB device attached that matches your id table.

> but in my driver
> after registering it is returning back without calling
> probe function.And system is going to hang.

Why is the system going to hang?

>    My registeration structure is as follows
>        struct usb_driver pdc_driver {
>             .owner = THIS_MODULE,
>              .name = "usb_pdc",
>              .probe = pdc_probe,
>              .id_table = &id,
>         }
>           usb_register (&pdc_driver);
> 
> my probe function declaration is as follows
>  
> static int pdc_probe ( struct usb_device *dev,struct  
> 
>                          idtable *id ){
> --------------
> -----------
> }
>  I am writing this driver for a pxa255 board having
> ISP1583 usb philips chip.
>       can anybody please help me to solve this problem

Why are you writing a new USB mass storage class driver?  The Linux kernel 
already contains two of them!

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to