Commit 36660432 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB core update

Here's a patch against 2.5.3 for the USB core that fixes a possible
initialization bug for some platforms when allocating a new usb, and
changes the warning level on a message (it isn't an error.)  This patch
was done by Oliver Neukum and David Brownell.
parent 09d84299
......@@ -1100,7 +1100,7 @@ struct urb *usb_alloc_urb(int iso_packets)
}
memset(urb, 0, sizeof(*urb));
atomic_inc(&urb->count);
urb->count = (atomic_t)ATOMIC_INIT(1);
spin_lock_init(&urb->lock);
return urb;
......@@ -2283,7 +2283,7 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate)
/* 9.4.10 says devices don't need this, if the interface
only has one alternate setting */
if (iface->num_altsetting == 1) {
warn("ignoring set_interface for dev %d, iface %d, alt %d",
dbg("ignoring set_interface for dev %d, iface %d, alt %d",
dev->devnum, interface, alternate);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment