All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <ext-felipe.lima@nokia.com>
To: Linux OMAP Mailing List <linux-omap-open-source@linux.omap.com>
Subject: [ERROR]: -ENODEV Error!
Date: Mon, 06 Nov 2006 14:52:56 -0400	[thread overview]
Message-ID: <454F8488.6010806@nokia.com> (raw)

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

             reply	other threads:[~2006-11-06 18:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06 18:52 Felipe Balbi [this message]
2006-11-06 21:44 ` [ERROR]: -ENODEV Error! David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=454F8488.6010806@nokia.com \
    --to=ext-felipe.lima@nokia.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.