public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [ERROR]: -ENODEV Error!
@ 2006-11-06 18:52 Felipe Balbi
  2006-11-06 21:44 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Balbi @ 2006-11-06 18:52 UTC (permalink / raw)
  To: Linux OMAP Mailing List

Hello all,

I'm getting some "No such Device" messages when loading any of the g_* 
modules.
I was trying to hack omap_udc.c and I figured out the error is with the 
first "sanity test", as called in the source-code:

int usb_gadget_register_driver (struct usb_gadget_driver *driver)
{
        int             status = -ENODEV;
        struct omap_ep  *ep;
        unsigned long   flags;

        /* basic sanity tests */
        if (!udc)       <---- THIS IS GIVING ME THE ERROR... I COMMENTED 
THIS AND
                return -ENODEV;
        if (!driver 
                        // FIXME if otg, check:  driver->is_otg
                        || driver->speed < USB_SPEED_FULL
                        || !driver->bind
                        || !driver->unbind
                        || !driver->setup)    <------ THIS GAVE ME 
ANOTHER BUG!!! :-P
                return -EINVAL;

        spin_lock_irqsave(&udc->lock, flags);
        if (udc->driver) {
                spin_unlock_irqrestore(&udc->lock, flags);
                return -EBUSY;
        }


The error:
# modprobe g_serial
udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
udc: OMAP UDC rev 6.1, Mini-AB
gs_module_init: cannot register gadget driver, ret=-19
FATAL: Error inserting g_serial 
(/lib/modules/2.6.19-rc4-omap1-gfb280632-dirty/kernel/drivers/usb/gadget/g_serial.ko): 
No such device

-- 
Best Regards,

Felipe Balbi
ext-felipe.lima@nokia.com
OSMRC - INdT

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-06 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 18:52 [ERROR]: -ENODEV Error! Felipe Balbi
2006-11-06 21:44 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox