<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/usb/misc, branch v2.6.36</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.36</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.36'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2010-08-24T03:50:17Z</updated>
<entry>
<title>USB: adutux: fix misuse of return value of copy_to_user()</title>
<updated>2010-08-24T03:50:17Z</updated>
<author>
<name>Kulikov Vasiliy</name>
<email>segooon@gmail.com</email>
</author>
<published>2010-07-31T17:40:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1865a9c382ede507065cf1575308b53495814c7d'/>
<id>urn:sha1:1865a9c382ede507065cf1575308b53495814c7d</id>
<content type='text'>
copy_to_user() returns number of not copied bytes, not error code.

Signed-off-by: Kulikov Vasiliy &lt;segooon@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: iowarrior: fix misuse of return value of copy_to_user()</title>
<updated>2010-08-24T03:50:16Z</updated>
<author>
<name>Kulikov Vasiliy</name>
<email>segooon@gmail.com</email>
</author>
<published>2010-07-31T17:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6d4d4554863b7897f2bc9cd9085f54c819152825'/>
<id>urn:sha1:6d4d4554863b7897f2bc9cd9085f54c819152825</id>
<content type='text'>
copy_to_user() returns number of not copied bytes, not error code.

Signed-off-by: Kulikov Vasiliy &lt;segooon@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: usbtest: support test device with only one iso-in or iso-out endpoint</title>
<updated>2010-08-10T21:35:45Z</updated>
<author>
<name>Ming Lei</name>
<email>tom.leiming@gmail.com</email>
</author>
<published>2010-08-02T14:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=951fd8ee6a9493f80bc5bccf2c8cfa1535c6ce15'/>
<id>urn:sha1:951fd8ee6a9493f80bc5bccf2c8cfa1535c6ce15</id>
<content type='text'>
It is very common that one altsetting may include only one iso-in or iso-out
single endpoint, especially for high bandwidth endpoint, so support it.

Signed-off-by: Ming Lei &lt;tom.leiming@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: usbtest: avoid to free coherent buffer in atomic context</title>
<updated>2010-08-10T21:35:45Z</updated>
<author>
<name>Ming Lei</name>
<email>tom.leiming@gmail.com</email>
</author>
<published>2010-08-02T14:09:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e10e1bec8e6654de4591ef45ddd6a6d1e5b2591c'/>
<id>urn:sha1:e10e1bec8e6654de4591ef45ddd6a6d1e5b2591c</id>
<content type='text'>
This patch fixes the warning below:
[30753.755998] ------------[ cut here ]------------
[30753.755998] WARNING: at /home/tom/git/linux-2.6/linux-2.6-next/arch/x86/include/asm/dma-mapping.h:155 hcd_buffer_free+0xb1/0xd4 [usbcore]()
[30753.755998] Hardware name: 6475EK2
[30753.755998] Modules linked in: uvcvideo ehci_hcd usbtest cdc_ether usbnet vfat fat usb_storage nfsd lockd nfs_acl auth_rpcgss exportfs mii tun videodev v4l1_compat v4l2_compat_ioctl32 fuse bridge stp llc sunrpc ipv6 cpufreq_ondemand acpi_cpufreq freq_table mperf kvm_intel kvm arc4 ecb ath5k usbhid mac80211 snd_hda_codec_conexant ch341 usbserial ath cfg80211 thinkpad_acpi snd_hda_intel pcspkr wmi hwmon yenta_socket iTCO_wdt iTCO_vendor_support i2c_i801 e1000e snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore snd_page_alloc pata_acpi uhci_hcd ohci_hcd usbcore i915 drm_kms_helper drm i2c_algo_bit i2c_core video output [last unloaded: uvcvideo]
[30753.755998] Pid: 0, comm: swapper Tainted: G        W   2.6.35-rc6-gkh-wl+ #49
[30753.755998] Call Trace:
[30753.755998]  &lt;IRQ&gt;  [&lt;ffffffff8104478a&gt;] warn_slowpath_common+0x80/0x98
[30753.755998]  [&lt;ffffffff810447b7&gt;] warn_slowpath_null+0x15/0x17
[30753.755998]  [&lt;ffffffffa00ce02d&gt;] hcd_buffer_free+0xb1/0xd4 [usbcore]
[30753.755998]  [&lt;ffffffffa00c1345&gt;] usb_free_coherent+0x1c/0x1e [usbcore]
[30753.755998]  [&lt;ffffffffa00b13e4&gt;] simple_free_urb+0x23/0x2f [usbtest]
[30753.755998]  [&lt;ffffffffa00b210b&gt;] iso_callback+0xbb/0x10f [usbtest]
[30753.755998]  [&lt;ffffffffa00c7390&gt;] usb_hcd_giveback_urb+0x8c/0xc0 [usbcore]
[30753.755998]  [&lt;ffffffffa0449b35&gt;] ehci_urb_done+0x84/0x95 [ehci_hcd]
[30753.755998]  [&lt;ffffffffa044b5a5&gt;] ehci_work+0x41a/0x7dd [ehci_hcd]
[30753.755998]  [&lt;ffffffffa044e298&gt;] ehci_irq+0x33b/0x370 [ehci_hcd]
[30753.755998]  [&lt;ffffffff8100fb05&gt;] ? sched_clock+0x9/0xd
[30753.755998]  [&lt;ffffffff8105e641&gt;] ? sched_clock_local+0x1c/0x82
[30753.755998]  [&lt;ffffffff8105e76a&gt;] ? sched_clock_cpu+0xc3/0xce
[30753.755998]  [&lt;ffffffff81067c7e&gt;] ? trace_hardirqs_off+0xd/0xf
[30753.755998]  [&lt;ffffffff8105e7b8&gt;] ? cpu_clock+0x43/0x5e
[30753.755998]  [&lt;ffffffffa00c6999&gt;] usb_hcd_irq+0x45/0xa1 [usbcore]
[30753.755998]  [&lt;ffffffff81092e02&gt;] handle_IRQ_event+0x20/0xa5
[30753.755998]  [&lt;ffffffff81094cea&gt;] handle_fasteoi_irq+0x92/0xd2
[30753.755998]  [&lt;ffffffff8100c0ed&gt;] handle_irq+0x1f/0x2a
[30753.755998]  [&lt;ffffffff8100b75d&gt;] do_IRQ+0x57/0xbe
[30753.755998]  [&lt;ffffffff8136a693&gt;] ret_from_intr+0x0/0x16
[30753.755998]  &lt;EOI&gt;  [&lt;ffffffff81223baa&gt;] ? acpi_idle_enter_bm+0x231/0x269
[30753.755998]  [&lt;ffffffff81223ba3&gt;] ? acpi_idle_enter_bm+0x22a/0x269
[30753.755998]  [&lt;ffffffff812c4b6b&gt;] cpuidle_idle_call+0x99/0xce
[30753.755998]  [&lt;ffffffff81008dd5&gt;] cpu_idle+0x61/0xaa
[30753.755998]  [&lt;ffffffff8136374b&gt;] start_secondary+0x1c2/0x1c6
[30753.755998] ---[ end trace 904cfaf7ab4cb1a2 ]---

Signed-off-by: Ming Lei &lt;tom.leiming@gmail.com&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: misc: Remove unnecessary casts of private_data</title>
<updated>2010-08-10T21:35:39Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2010-07-12T20:50:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55'/>
<id>urn:sha1:5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55</id>
<content type='text'>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: autoconvert trivial BKL users to private mutex</title>
<updated>2010-08-10T21:35:39Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2010-07-11T21:18:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=925ce689bb31960c839804c19ef38d676f1939b9'/>
<id>urn:sha1:925ce689bb31960c839804c19ef38d676f1939b9</id>
<content type='text'>
All these files use the big kernel lock in a trivial
way to serialize their private file operations,
typically resulting from an earlier semi-automatic
pushdown from VFS.

None of these drivers appears to want to lock against
other code, and they all use the BKL as the top-level
lock in their file operations, meaning that there
is no lock-order inversion problem.

Consequently, we can remove the BKL completely,
replacing it with a per-file mutex in every case.
Using a scripted approach means we can avoid
typos.

file=$1
name=$2
if grep -q lock_kernel ${file} ; then
    if grep -q 'include.*linux.mutex.h' ${file} ; then
            sed -i '/include.*&lt;linux\/smp_lock.h&gt;/d' ${file}
    else
            sed -i 's/include.*&lt;linux\/smp_lock.h&gt;.*$/include &lt;linux\/mutex.h&gt;/g' ${file}
    fi
    sed -i ${file} \
        -e "/^#include.*linux.mutex.h/,$ {
                1,/^\(static\|int\|long\)/ {
                     /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex);

} }"  \
    -e "s/\(un\)*lock_kernel\&gt;[ ]*()/mutex_\1lock(\&amp;${name}_mutex)/g" \
    -e '/[      ]*cycle_kernel_lock();/d'
else
    sed -i -e '/include.*\&lt;smp_lock.h\&gt;/d' ${file}  \
                -e '/cycle_kernel_lock()/d'
fi

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

</content>
</entry>
<entry>
<title>USB-BKL: Convert usb_driver ioctl to unlocked_ioctl</title>
<updated>2010-08-10T21:35:35Z</updated>
<author>
<name>Andi Kleen</name>
<email>ak@linux.intel.com</email>
</author>
<published>2010-06-01T21:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c532b29a6f6d31e84a7c88f995eebdc75ebd4248'/>
<id>urn:sha1:c532b29a6f6d31e84a7c88f995eebdc75ebd4248</id>
<content type='text'>
And audit all the users. None needed the BKL.  That was easy
because there was only very few around.

Tested with allmodconfig build on x86-64

Signed-off-by: Andi Kleen &lt;ak@linux.intel.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
From: Andi Kleen &lt;ak@linux.intel.com&gt;

</content>
</entry>
<entry>
<title>USB: sisusbvga: Fix for USB 3.0</title>
<updated>2010-07-26T19:00:58Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2010-07-16T15:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=20a12f007feee1cfa761b431047271d1141d8031'/>
<id>urn:sha1:20a12f007feee1cfa761b431047271d1141d8031</id>
<content type='text'>
Super speed is also fast enough to let sisusbvga operate.
Therefor expand the checks.

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>
</entry>
<entry>
<title>usb: sisusb_con.c: fix shadows sparse warning</title>
<updated>2010-05-20T20:21:41Z</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2010-04-28T20:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=993e33b032cfc072898bab78b8fa8b21bc666c7e'/>
<id>urn:sha1:993e33b032cfc072898bab78b8fa8b21bc666c7e</id>
<content type='text'>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: sisusbvga: Remove the BKL from open</title>
<updated>2010-05-20T20:21:39Z</updated>
<author>
<name>Alessio Igor Bogani</name>
<email>abogani@texware.it</email>
</author>
<published>2010-04-25T10:37:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1170656d94aff5e86e003394134b9c3ecbdaf10a'/>
<id>urn:sha1:1170656d94aff5e86e003394134b9c3ecbdaf10a</id>
<content type='text'>
BKL is not needed here because necessary locking is already provided
by mutex sisusb-&gt;lock.

Signed-off-by: Alessio Igor Bogani &lt;abogani@texware.it&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

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