<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/usb/class, branch v2.6.28.9</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>USB: usbtmc: add protocol 1 support</title>
<updated>2009-03-23T21:55:29+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-03-11T20:51:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=76840acdb3a430e1d7eedacbcbb42397577f3288'/>
<id>76840acdb3a430e1d7eedacbcbb42397577f3288</id>
<content type='text'>
commit 228dd05dbfdd0fced8ab1a28ed73b500ba6bb0a6 upstream.

The driver already supports the 1 protocol support, so just add it to
the MODULE_DEVICE_TABLE entry so it properly picks up these devices.

Thanks to Jouni Rynö for pointing this out.

Reported-by: Jouni Ryno &lt;Jouni.Ryno@fmi.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 228dd05dbfdd0fced8ab1a28ed73b500ba6bb0a6 upstream.

The driver already supports the 1 protocol support, so just add it to
the MODULE_DEVICE_TABLE entry so it properly picks up these devices.

Thanks to Jouni Rynö for pointing this out.

Reported-by: Jouni Ryno &lt;Jouni.Ryno@fmi.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: usbtmc: fix stupid bug in open()</title>
<updated>2009-03-23T21:55:29+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-03-11T03:42:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=df17d7bed92939eb7e1c9966e8622e21ad27e2dc'/>
<id>df17d7bed92939eb7e1c9966e8622e21ad27e2dc</id>
<content type='text'>
commit 5b10916ea0a62920204517e1c4ce14560b4f96ab upstream.

open() will never succeed, as we always return -ENODEV.  Fix this
obvious bug.

Thanks to Jouni Ryno for reporting it.

Reported-by: Jouni Ryno &lt;Jouni.Ryno@fmi.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 5b10916ea0a62920204517e1c4ce14560b4f96ab upstream.

open() will never succeed, as we always return -ENODEV.  Fix this
obvious bug.

Thanks to Jouni Ryno for reporting it.

Reported-by: Jouni Ryno &lt;Jouni.Ryno@fmi.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: cdc-acm: add usb id for motomagx phones</title>
<updated>2009-03-17T00:32:04+00:00</updated>
<author>
<name>Dmitriy Taychenachev</name>
<email>dimichxp@gmail.com</email>
</author>
<published>2009-02-25T04:36:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e8c0f6bbd71a4612ac604879593be7b8d225d28c'/>
<id>e8c0f6bbd71a4612ac604879593be7b8d225d28c</id>
<content type='text'>
commit 155df65ae11dfc322214c6f887185929c809df1b upstream.

The Motorola MOTOMAGX phones (Z6, E8, Zn5 so far) are providing
combined ACM/BLAN USB configuration. Since it has Vendor Specific
class, the corresponding drivers (cdc-acm, zaurus) can't find it just
by interface info. This patch adds usb id so the cdc-acm driver can
properly handle this combined device.

Signed-off-by: Dmitriy Taychenachev &lt;dimichxp@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 155df65ae11dfc322214c6f887185929c809df1b upstream.

The Motorola MOTOMAGX phones (Z6, E8, Zn5 so far) are providing
combined ACM/BLAN USB configuration. Since it has Vendor Specific
class, the corresponding drivers (cdc-acm, zaurus) can't find it just
by interface info. This patch adds usb id so the cdc-acm driver can
properly handle this combined device.

Signed-off-by: Dmitriy Taychenachev &lt;dimichxp@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: fix problem with usbtmc driver not loading properly</title>
<updated>2008-12-17T18:49:10+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2008-12-04T00:33:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5413aa467806578bf5f78a83893cb9426b815231'/>
<id>5413aa467806578bf5f78a83893cb9426b815231</id>
<content type='text'>
The usbtmc driver forgot to export its device table to userspace.
Without this, it is never loaded properly when such a device is seen by
the system.

Cc: Marcel Janssen &lt;marcel.janssen@admesy.nl&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The usbtmc driver forgot to export its device table to userspace.
Without this, it is never loaded properly when such a device is seen by
the system.

Cc: Marcel Janssen &lt;marcel.janssen@admesy.nl&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: cdc-acm.c: fix recursive lock in acm_start_wb error path</title>
<updated>2008-11-13T22:45:02+00:00</updated>
<author>
<name>Brandon Philips</name>
<email>brandon@ifup.org</email>
</author>
<published>2008-11-06T19:19:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ad0b65efd12d020b046cde8d6f474e37bb98dd73'/>
<id>ad0b65efd12d020b046cde8d6f474e37bb98dd73</id>
<content type='text'>
Fixes an obvious bug in cdc-acm by avoiding a recursive lock on
acm_start_wb()'s error path. Should apply towards 2.6.27 stable and
2.6.28.

=============================================
[ INFO: possible recursive locking detected ]
2.6.27-2-pae #109
---------------------------------------------
python/31449 is trying to acquire lock:
 (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a0348&gt;] acm_start_wb+0x5c/0x7b [cdc_acm]

but task is already holding lock:
 (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a04fb&gt;] acm_tty_write+0xe1/0x167 [cdc_acm]

other info that might help us debug this:
2 locks held by python/31449:
 #0:  (&amp;tty-&gt;atomic_write_lock){--..}, at: [&lt;c0260fae&gt;] tty_write_lock+0x14/0x3b
 #1:  (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a04fb&gt;] acm_tty_write+0xe1/0x167 [cdc_acm]

stack backtrace:
Pid: 31449, comm: python Not tainted 2.6.27-2-pae #109
 [&lt;c030f42f&gt;] ? printk+0xf/0x18
 [&lt;c0149f33&gt;] __lock_acquire+0xc7b/0x1316
 [&lt;c014a63e&gt;] lock_acquire+0x70/0x97
 [&lt;f89a0348&gt;] ? acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;c0312109&gt;] _spin_lock_irqsave+0x37/0x47
 [&lt;f89a0348&gt;] ? acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;f89a0348&gt;] acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;f89a055d&gt;] acm_tty_write+0x143/0x167 [cdc_acm]
 [&lt;c0262a98&gt;] write_chan+0x1cd/0x297
 [&lt;c012527e&gt;] ? default_wake_function+0x0/0xd
 [&lt;c026111e&gt;] tty_write+0x149/0x1b9
 [&lt;c02628cb&gt;] ? write_chan+0x0/0x297
 [&lt;c01912c5&gt;] ? rw_verify_area+0x76/0x98
 [&lt;c0260fd5&gt;] ? tty_write+0x0/0x1b9
 [&lt;c01919ba&gt;] vfs_write+0x8c/0x136
 [&lt;c0191afd&gt;] sys_write+0x3b/0x60
 [&lt;c0103beb&gt;] sysenter_do_call+0x12/0x3f
 =======================

Signed-off-by: Brandon Philips &lt;bphilips@suse.de&gt;
Cc: Oliver Neukum &lt;oliver@neukum.org&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes an obvious bug in cdc-acm by avoiding a recursive lock on
acm_start_wb()'s error path. Should apply towards 2.6.27 stable and
2.6.28.

=============================================
[ INFO: possible recursive locking detected ]
2.6.27-2-pae #109
---------------------------------------------
python/31449 is trying to acquire lock:
 (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a0348&gt;] acm_start_wb+0x5c/0x7b [cdc_acm]

but task is already holding lock:
 (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a04fb&gt;] acm_tty_write+0xe1/0x167 [cdc_acm]

other info that might help us debug this:
2 locks held by python/31449:
 #0:  (&amp;tty-&gt;atomic_write_lock){--..}, at: [&lt;c0260fae&gt;] tty_write_lock+0x14/0x3b
 #1:  (&amp;acm-&gt;write_lock){++..}, at: [&lt;f89a04fb&gt;] acm_tty_write+0xe1/0x167 [cdc_acm]

stack backtrace:
Pid: 31449, comm: python Not tainted 2.6.27-2-pae #109
 [&lt;c030f42f&gt;] ? printk+0xf/0x18
 [&lt;c0149f33&gt;] __lock_acquire+0xc7b/0x1316
 [&lt;c014a63e&gt;] lock_acquire+0x70/0x97
 [&lt;f89a0348&gt;] ? acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;c0312109&gt;] _spin_lock_irqsave+0x37/0x47
 [&lt;f89a0348&gt;] ? acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;f89a0348&gt;] acm_start_wb+0x5c/0x7b [cdc_acm]
 [&lt;f89a055d&gt;] acm_tty_write+0x143/0x167 [cdc_acm]
 [&lt;c0262a98&gt;] write_chan+0x1cd/0x297
 [&lt;c012527e&gt;] ? default_wake_function+0x0/0xd
 [&lt;c026111e&gt;] tty_write+0x149/0x1b9
 [&lt;c02628cb&gt;] ? write_chan+0x0/0x297
 [&lt;c01912c5&gt;] ? rw_verify_area+0x76/0x98
 [&lt;c0260fd5&gt;] ? tty_write+0x0/0x1b9
 [&lt;c01919ba&gt;] vfs_write+0x8c/0x136
 [&lt;c0191afd&gt;] sys_write+0x3b/0x60
 [&lt;c0103beb&gt;] sysenter_do_call+0x12/0x3f
 =======================

Signed-off-by: Brandon Philips &lt;bphilips@suse.de&gt;
Cc: Oliver Neukum &lt;oliver@neukum.org&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: usbtmc: Use explicit unsigned type for input buffer instead of char*</title>
<updated>2008-10-29T21:54:40+00:00</updated>
<author>
<name>Chris Malley</name>
<email>mail@chrismalley.co.uk</email>
</author>
<published>2008-10-25T21:07:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b361a6e348a5de9e18eb17542663d34a57740e87'/>
<id>b361a6e348a5de9e18eb17542663d34a57740e87</id>
<content type='text'>
Silences compiler warning about comparison with 0x80, and type now matches the
corresponding _bulk_out function.

drivers/usb/class/usbtmc.c: In function ‘usbtmc_ioctl_abort_bulk_in’:
drivers/usb/class/usbtmc.c:163: warning: comparison is always false due to limited range of data type

Signed-off-by: Chris Malley &lt;mail@chrismalley.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Silences compiler warning about comparison with 0x80, and type now matches the
corresponding _bulk_out function.

drivers/usb/class/usbtmc.c: In function ‘usbtmc_ioctl_abort_bulk_in’:
drivers/usb/class/usbtmc.c:163: warning: comparison is always false due to limited range of data type

Signed-off-by: Chris Malley &lt;mail@chrismalley.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: fix memory leak in cdc-acm</title>
<updated>2008-10-22T17:05:29+00:00</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2008-10-21T08:39:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a496c64f1363ec4d67ebdc1e1f619ad6372a574c'/>
<id>a496c64f1363ec4d67ebdc1e1f619ad6372a574c</id>
<content type='text'>
This fixes a memory leak on disconnect in cdc-acm

Thanks to 施金前 for finding it.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a memory leak on disconnect in cdc-acm

Thanks to 施金前 for finding it.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>USB: cdc-wdm: make module autoload work</title>
<updated>2008-10-22T17:05:29+00:00</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2008-10-13T12:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=aa5380b904e7f896db0931320160bdea93e41f6a'/>
<id>aa5380b904e7f896db0931320160bdea93e41f6a</id>
<content type='text'>
this fixes an omission that led to no alias being computed for the
cdc-wdm module.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this fixes an omission that led to no alias being computed for the
cdc-wdm module.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: remove err() macro from usb class drivers</title>
<updated>2008-10-17T21:41:10+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2008-08-14T16:37:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9908a32e94de2141463e104c9924279ed3509447'/>
<id>9908a32e94de2141463e104c9924279ed3509447</id>
<content type='text'>
USB should not be having it's own printk macros, so remove err() and
use the system-wide standard of dev_err() wherever possible.  In the
few places that will not work out, use a basic printk().

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
USB should not be having it's own printk macros, so remove err() and
use the system-wide standard of dev_err() wherever possible.  In the
few places that will not work out, use a basic printk().

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: remove info() macro from remaining usb drivers</title>
<updated>2008-10-17T21:41:09+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2008-08-18T20:21:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5909f6ea2bc7f785ceb1bed14c670946a536ff2d'/>
<id>5909f6ea2bc7f785ceb1bed14c670946a536ff2d</id>
<content type='text'>
USB should not be having it's own printk macros, so remove info() and
use the system-wide standard of dev_info() wherever possible.  In the
few places that will not work out, use a basic printk().

Clean up the remaining usages of this in the drivers/usb/ directory.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
USB should not be having it's own printk macros, so remove info() and
use the system-wide standard of dev_info() wherever possible.  In the
few places that will not work out, use a basic printk().

Clean up the remaining usages of this in the drivers/usb/ directory.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
</feed>
