<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/usb, branch v2.6.30</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.30</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.30'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2009-05-28T20:54:43Z</updated>
<entry>
<title>Revert "USB: Correct Makefile to make isp1760 buildable"</title>
<updated>2009-05-28T20:54:43Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2009-05-20T12:49:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=29868b281f6d057b4cbe348f4483f1717c021c5c'/>
<id>urn:sha1:29868b281f6d057b4cbe348f4483f1717c021c5c</id>
<content type='text'>
This reverts commit 26e1287594864169577327fef233befc9739be3b.

A larger patch (f7e7aa585) a few days after this one added the same line
to the Makefile, but in a different place.  While it'd be more correct to
revert that one, it's easier to revert this one because this is a
one-liner.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
CC: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
CC: linux-usb@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>usb-serial: fix crash when sub-driver updates firmware</title>
<updated>2009-05-28T20:54:43Z</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2009-05-27T15:25:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0a3c8549ea7e94d74a41096d42bc6cdf43d183bf'/>
<id>urn:sha1:0a3c8549ea7e94d74a41096d42bc6cdf43d183bf</id>
<content type='text'>
This patch (as1244) fixes a crash in usb-serial that occurs when a
sub-driver returns a positive value from its attach method, indicating
that new firmware was loaded and the device will disconnect and
reconnect.  The usb-serial core then skips the step of registering the
port devices; when the disconnect occurs, the attempt to unregister
the ports fails dramatically.

This problem shows up with Keyspan devices and it might affect others
as well.

When the attach method returns a positive value, the patch sets
num_ports to 0.  This tells usb_serial_disconnect() not to try
unregistering any of the ports; instead they are cleaned up by
destroy_serial().

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Tested-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>USB: isp1760: urb_dequeue doesn't always find the urbs</title>
<updated>2009-05-28T20:54:43Z</updated>
<author>
<name>Warren Free</name>
<email>wfree@ipmn.com</email>
</author>
<published>2009-05-08T08:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0afb20e00b5053170c85298fed842b32d20b4ea9'/>
<id>urn:sha1:0afb20e00b5053170c85298fed842b32d20b4ea9</id>
<content type='text'>
The option driver (and presumably others) allocates several URBs when it
opens and tries to free them when it closes. The isp1760_urb_dequeue
function gets called, but the packet being dequeued is not necessarily at
the
front of one of the 32 queues. If not, the isp1760_urb_done function doesn't
get called for the URB and the process trying to free it hangs forever on a
wait_queue. This patch does two things. If the URB being dequeued has others
queued behind it, it re-queues them. And it searches the queues looking for
the URB being dequeued rather than just looking at the one at the front of
the queue.

[bigeasy@linutronix] whitespace fixes, reformating

Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Warren Free &lt;wfree@ipmn.com&gt;
Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: Yet another Conexant Clone to add to cdc-acm.c</title>
<updated>2009-05-28T20:54:41Z</updated>
<author>
<name>Xiao Kaijian</name>
<email>xiaokj@gmail.com</email>
</author>
<published>2009-05-07T16:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cab98a0a349829b145d924c0649a2d30cd6a9e3d'/>
<id>urn:sha1:cab98a0a349829b145d924c0649a2d30cd6a9e3d</id>
<content type='text'>
This patch adds another quirky Conexant USB Modem Clone to usb cdc-acm.c

Signed-off-by: Xiao Kaijian &lt;xiaokj@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: atmel_usb_udc: Use kzalloc() to allocate ep structures</title>
<updated>2009-05-28T20:54:41Z</updated>
<author>
<name>Haavard Skinnemoen</name>
<email>haavard.skinnemoen@atmel.com</email>
</author>
<published>2009-05-05T00:22:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fe92c9e481a147a9e1e14f55870f32903b967777'/>
<id>urn:sha1:fe92c9e481a147a9e1e14f55870f32903b967777</id>
<content type='text'>
This ensures that all fields are properly initialized.

Signed-off-by: Haavard Skinnemoen &lt;haavard.skinnemoen@atmel.com&gt;
Acked-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: atmel-usba-udc : fix control out requests.</title>
<updated>2009-05-28T20:54:40Z</updated>
<author>
<name>Martin Fuzzey</name>
<email>mfuzzey@gmail.com</email>
</author>
<published>2009-05-01T15:21:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f42706c90470851fd2e97eda7a4109e8949bde8a'/>
<id>urn:sha1:f42706c90470851fd2e97eda7a4109e8949bde8a</id>
<content type='text'>
usbtest #14 was failing with "udc: ep0: TXCOMP: Invalid endpoint state 2, halting endpoint..."
This occured since ep0 is bidirectional and ep-&gt;is_in is not valid (must always use ep-&gt;state)

Signed-off-by: Martin Fuzzey &lt;mfuzzey@gmail.com&gt;
Acked-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Haavard Skinnemoen &lt;haavard.skinnemoen@atmel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Fix oops on close of hot-unplugged FTDI serial converter</title>
<updated>2009-05-18T15:37:15Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2009-05-18T12:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=80193195f87ebca6d7417516d6edeb3969631c15'/>
<id>urn:sha1:80193195f87ebca6d7417516d6edeb3969631c15</id>
<content type='text'>
Commit c45d6320 ("fix reference counting of ftdi_private") stopped
ftdi_sio_port_remove() from directly freeing the port-private data, with
the intention if the port was still open, it would be freed when
ftdi_close() is eventually called and releases the last refcount on the
structure.

That's all very well, but ftdi_sio_port_remove() still contains a call
to usb_set_serial_port_data(port, NULL) -- so by the time we get to
ftdi_close() for the port which was unplugged, it _still_ oopses on
dereferencing that NULL pointer, as it did before (and does in 2.6.29).

The fix is just not to clear the private data in ftdi_sio_port_remove().
Then the refcount is properly reduced to zero when the final kref_put()
happens in ftdi_close().

Remove a bogus comment too, while we're at it. And stop doing things
inside "if (priv)" -- it must _always_ be there.

Based loosely on an earlier patch by Daniel Mack, and suggestions by
Alan Stern.

Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>usb-serial: ftdi_sio: fix reference counting of ftdi_private</title>
<updated>2009-05-09T02:34:57Z</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2009-04-30T14:06:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c45d63202fbaccef7ef7946c03f27f72c809b1cc'/>
<id>urn:sha1:c45d63202fbaccef7ef7946c03f27f72c809b1cc</id>
<content type='text'>
This patch (as1238) adds proper reference counting for ftdi_sio's
private data structure.  Without it, the driver will free the
structure while it is still in use if the user unplugs the serial
device before closing the device file.

The patch also replaces a slightly dangerous
cancel_delayed_work/flush_scheduled_work pair with
cancel_delayed_work_sync, which is always safer.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Reported-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Tested-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: unusual_devs: extend nokia 6288 bcd range</title>
<updated>2009-05-09T02:34:57Z</updated>
<author>
<name>Phil Dibowitz</name>
<email>phil@ipom.com</email>
</author>
<published>2009-04-26T10:47:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=031defd11ee11753110098603236a4257b2cc03d'/>
<id>urn:sha1:031defd11ee11753110098603236a4257b2cc03d</id>
<content type='text'>
This patch was originaly submitted by Phillip Potter
&lt;phillipinda@hotmail.com&gt; but was re-diffed to conform with
SubmittingPatches and to rebase on a newer tree by me.

Signed-off-by: Phil Dibowitz &lt;phil@ipom.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: Gadget: fix UTF conversion in the usbstring library</title>
<updated>2009-05-09T02:34:56Z</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2009-04-27T17:22:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0f43158caddcbb110916212ebe4e39993ae70864'/>
<id>urn:sha1:0f43158caddcbb110916212ebe4e39993ae70864</id>
<content type='text'>
This patch (as1234) fixes a bug in the UTF8 -&gt; UTF-16 conversion
routine in the gadget/usbstring library.  In a UTF-8 multi-byte
sequence, all bytes after the first should have their high-order
two bits set to 10, not 11.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Acked-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
