<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/staging/usbip, branch v3.11.1</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2013-05-13T20:39:31+00:00</updated>
<entry>
<title>staging: usbip: Renaming pr_warning function</title>
<updated>2013-05-13T20:39:31+00:00</updated>
<author>
<name>Lisa Nguyen</name>
<email>lisa@xenapiadmin.com</email>
</author>
<published>2013-05-05T23:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ff4513705d07eba9ee2adcb99c9f328dfa5eac71'/>
<id>urn:sha1:ff4513705d07eba9ee2adcb99c9f328dfa5eac71</id>
<content type='text'>
Eliminated the following warning "WARNING: Prefer pr_warn(... to
pr_warning(...)" by renaming the pr_warning function to pr_warn in
usbip_event.c file.

Signed-off-by: Lisa Nguyen &lt;lisa@xenapiadmin.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: userspace: show product name in `list -l' command</title>
<updated>2013-04-05T21:22:52+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=70e90fb57f517dca891c737f8120389af71baee0'/>
<id>urn:sha1:70e90fb57f517dca891c737f8120389af71baee0</id>
<content type='text'>
The `usbip list -l' command shows your local usb-devices.
Example:
 $ usbip list -l
 $ Local USB devices
 $ =================
 $ - busid 1-1 (13fe:1d00)
 $         1-1:1.0 -&gt; usb-storage
 $
 $ - busid 1-2 (0409:55aa)
 $         1-2:1.0 -&gt; hub

However this list command doesn't show which device is connected
to this busid. Therefore you have to use another tool e.g. lsusb
to determine that.

This patches adds the possibility to see which device that is.
Example:
 $ usbip list -l
 $ Local USB devices
 $ =================
 $ - busid 1-1 (13fe:1d00)
 $   Kingston Technology Company Inc. : DataTraveler 2.0 1GB/4GB Flash Drive / Patriot Xporter 4GB Flash
 $         1-1:1.0 -&gt; usb-storage
 $
 $ - busid 1-2 (0409:55aa)
 $   NEC Corp. : Hub (0409:55aa)
 $         1-2:1.0 -&gt; hub

If parsable is specified the info will be not printed.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: userspace: unified command line arguments</title>
<updated>2013-04-05T21:22:52+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=80e4b9432c7d84f70686e69bb7469d89d58e5d87'/>
<id>urn:sha1:80e4b9432c7d84f70686e69bb7469d89d58e5d87</id>
<content type='text'>
The command `usbip attach' uses --host for specifing
the remote host, while `usbip list' uses --remote.
This is confusing and this patch adapts this.
In Addition changed the manpage and README accordingly.

Before:
 $ usbip attach --host &lt;host&gt; -b &lt;busid&gt;
 $ usbip list --remote &lt;host&gt;

Now:
 $ usbip attach --remote &lt;host&gt; -b &lt;busid&gt;
 $ usbip list --remote &lt;host&gt;

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: userspace: libsrc: cleanup parsing</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b2e0228409ac880b2defb51ab9e76b8f8af56ff2'/>
<id>urn:sha1:b2e0228409ac880b2defb51ab9e76b8f8af56ff2</id>
<content type='text'>
Since the names.c/names.h are taken from another project, some
functions which names.c provides aren't used by usbipd.
This patch fixes:
 - removed useless comments
 - unified debug/error messages by using the macros
   provided by usbip_common.h
 - removed unnused code

The code cleanup includes:
 - remove unused data structures
 - remove code to create them
 - remove code to access them

The file names.c is used to parse the `usb.ids' file. The parser
stores a lot of information about usb devices that is never used.

The `usb.ids' file has several sections. Some variables (like
`lasthut') store the ID of the current section, and those variables
are used to decide which section is currently being parsed (i.e. in
which data structure the current line will be  stored).

We removed the code to read those IDs because they are never used
anyway. We replaced them by the pseudo-ID `1' (instead of reading the
ID from the file) to indicate that the parser is in a section that
can be ignored. If the parser is in such a section, the current line
(which contains sub-items for this section) is discarded.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: userspace: removed unnecessary code</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e71e781ba4f0db19775635443a208ba69d403ad6'/>
<id>urn:sha1:e71e781ba4f0db19775635443a208ba69d403ad6</id>
<content type='text'>
Since no usbip_name function is used in usbipd, it's not
necessary to parse "usb.ids" file at startup.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: userspace: avoid memory leaks</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Stefan Reif</name>
<email>ke42caxa@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e697949944c1427816e3cd01f8316040d7bddc57'/>
<id>urn:sha1:e697949944c1427816e3cd01f8316040d7bddc57</id>
<content type='text'>
Call freeaddrinfo when connect/listen fails.
Call usbip_host_driver_close on error.

Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: simplified cleanup function</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b94b3a627f415b17f5451e2cd607164655f30491'/>
<id>urn:sha1:b94b3a627f415b17f5451e2cd607164655f30491</id>
<content type='text'>
This patch simplified "stub_device_free" cleanup function:
 - changed return type to void, since the return value is
   not checked anywhere
 - kfree is NULL-safe, so removed if statement
 - deleted debug-message

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: removed unnecessary for loop</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=521e1e7cc9c641caa892d420034fcfe3f2ad6ae5'/>
<id>urn:sha1:521e1e7cc9c641caa892d420034fcfe3f2ad6ae5</id>
<content type='text'>
This for loop is not needed, since STUB_BUSID_OTHER is defined as 0.
In Addition added a comment if STUB_BUSID_OTHER changes sometime.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: removed unnecessary if-else-statements</title>
<updated>2013-04-05T21:22:51+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2183b77ece517fe4a17cae59d227d341b9d271c8'/>
<id>urn:sha1:2183b77ece517fe4a17cae59d227d341b9d271c8</id>
<content type='text'>
In each if-else case "return" is called. This is why
these if-else-statements are useless. Removing them
improves understanding and readability.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: usbip: simplified errorhandling</title>
<updated>2013-04-05T21:22:50+00:00</updated>
<author>
<name>Kurt Kanzenbach</name>
<email>ly80toro@cip.cs.fau.de</email>
</author>
<published>2013-04-04T14:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=31398f6307d52fcb5aca6481fa4c84100aea97e3'/>
<id>urn:sha1:31398f6307d52fcb5aca6481fa4c84100aea97e3</id>
<content type='text'>
In each errorcase spin_unlock_irq is called and -EINVAL is returned.
To simplify that I created a label called "err" doing that.
On Success count will be returned.

Signed-off-by: Kurt Kanzenbach &lt;ly80toro@cip.cs.fau.de&gt;
Signed-off-by: Stefan Reif &lt;ke42caxa@cip.cs.fau.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
