RE: usb_submit_urb errors
"Christopher Piggott HOME" <[email protected]>
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <[email protected]> |
This is really disturbing. I went through and determined that the -ENOMEM
was not coming from net/core/dev.c as I thought it was. So, I went through
at76c503.c and looked for all possible places that there could be an -ENOMEM
returned and I added this:
printk("chrisp: kmalloc failed in " __FILE__ ", line %d\n", __LINE);
recompiled it, and it started WORKING. I never saw any of the debug
messages fire. When I say it works, I mean it completely works - it
associates with the AP and dhcp gets an address, WEP is working, it's full
connectable. It's even happy talking to my dhcp server.
Next, I went back into at76c503.c and put // in front of all the printk
statements that I added (to comment them out), compiled it, and it STILL
works.
I'm mystified. Compared with what's in CVS, the only thing that is
different is an extra commented-out printk, and some braces that I had to
add a couple of places. For example:
if (!hwcfg)
return -ENOMEM;
was changed to:
if (!hwcfg) {
// printk("chrisp: kalloc() " __FILE__ ":%d\n", __LINE__);
return -ENOMEM;
}
(I added braces).
What the ... ? Have any of you ever seen anything like this? Is it
worthwhile to try removing them all one by one and see what happens? I am
reluctant to blame it on the compiler, because every time I blame it on the
compiler I later find out that it was somehow my own fault.
--Chris
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Joerg Albert
Sent: Saturday, April 03, 2004 4:01 PM
To: [email protected]
Subject: Re: [at76c503a-user] usb_submit_urb errors
Hi,
On Sat, 3 Apr 2004, Christopher Piggott HOME wrote:
> Have any of you ever seen this? It happens when I try to do an ifconfig
> wlan0 with an IP address.
>
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: open: submit_rx_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: rx, usb_submit_urb failed: -12
> /root/at76c503a/at76c503.c: wlan0: giving up to submit rx urb after 8
> failures - please unload the driver and/or power cycle the device
-12 is -ENOMEM, seems like the submit_urb of your host controller cannot
alloc enough memory. No idea why. Maybe CONFIG_USB_DEBUG in .config will
reveal more info.
/Jörg
_______________________________________________
at76c503a-user mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/at76c503a-user