<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/usb, branch v3.13</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/tools/usb?h=v3.13</id>
<link rel='self' href='https://git.amat.us/linux/atom/tools/usb?h=v3.13'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-12-04T23:10:54Z</updated>
<entry>
<title>usb: tools: fix a regression issue that gcc can't link to pthread</title>
<updated>2013-12-04T23:10:54Z</updated>
<author>
<name>Huang Rui</name>
<email>ray.huang@amd.com</email>
</author>
<published>2013-12-04T07:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cb292ce222cb5ad5b8b3f9fc4b74b8109fb16c19'/>
<id>urn:sha1:cb292ce222cb5ad5b8b3f9fc4b74b8109fb16c19</id>
<content type='text'>
Reproduce:
ray@hr-bak:~/usb$ make -C tools/usb/
make: Entering directory `/home/ray/usb/tools/usb'
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c
/tmp/cc0EMxfy.o: In function `main':
/home/ray/usb/tools/usb/testusb.c:508: undefined reference to `pthread_create'
/home/ray/usb/tools/usb/testusb.c:531: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make: *** [testusb] Error 1
make: Leaving directory `/home/ray/usb/tools/usb'

Comments:
In the latest version (4.7.3) of gcc compiler, it requres that
libraries must follow the object or source files like below:

"gcc hello.c -lpthread" instead of "gcc -lpthread hello.c"

And it isn't encountered at gcc version 4.7.2.
So this patch fix to move the pthread option after testusb.c.

Signed-off-by: Huang Rui &lt;ray.huang@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools: usb: ffs-test: Fix build failure</title>
<updated>2013-03-07T04:23:17Z</updated>
<author>
<name>Maxin B. John</name>
<email>maxin.john@enea.com</email>
</author>
<published>2013-02-20T23:57:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a0f11aceee531d444f58b939e6a537ee5e2b9cc5'/>
<id>urn:sha1:a0f11aceee531d444f58b939e6a537ee5e2b9cc5</id>
<content type='text'>
Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c
gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c
In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory
compilation terminated.
make: *** [ffs-test] Error 1

Signed-off-by: Maxin B. John &lt;maxin.john@enea.com&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;  # 3.7+
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>testusb: remove all mentions of 'usbfs'</title>
<updated>2013-02-08T20:15:24Z</updated>
<author>
<name>Sergei Shtylyov</name>
<email>sshtylyov@dev.rtsoft.ru</email>
</author>
<published>2013-02-08T15:48:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9742aecda4d02976535051db4af4830bd98373a1'/>
<id>urn:sha1:9742aecda4d02976535051db4af4830bd98373a1</id>
<content type='text'>
Commit 8a424bf40d772fedacc91862ecc86f10541fabb3 (tools/usb: remove last USBFS
user) removed 'usbfs' files from the source but retained mentions of 'usbfs'
all over the place, most importantly in the misleading error messages printed
in case USB device files are not there.  Remove all the  mentions of 'usbfs'
for good now!

Signed-off-by: Sergei Shtylyov &lt;sshtylyov@dev.rtsoft.ru&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools/usb: remove unneeded 'continue' and simplify condition</title>
<updated>2013-01-12T00:03:37Z</updated>
<author>
<name>Sasha Levin</name>
<email>sasha.levin@oracle.com</email>
</author>
<published>2012-12-20T19:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2c449e380153b72e184dd253ce6470acaee53cb0'/>
<id>urn:sha1:2c449e380153b72e184dd253ce6470acaee53cb0</id>
<content type='text'>
Basically remove unneeded code. Since that 'continue' is at the end
of the for() there's no need for it.

Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
Acked-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools/usb: remove last USBFS user</title>
<updated>2012-09-10T18:10:37Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
<email>bigeasy@linutronix.de</email>
</author>
<published>2012-09-10T07:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8a424bf40d772fedacc91862ecc86f10541fabb3'/>
<id>urn:sha1:8a424bf40d772fedacc91862ecc86f10541fabb3</id>
<content type='text'>
In commit fb28d58b ("USB: remove CONFIG_USB_DEVICEFS") USBFS got
removed. Since it is gone we can stop using it in testusb and try udev
nodes right away.

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>testusb: expose looping forever option "l" to user</title>
<updated>2012-06-13T23:15:03Z</updated>
<author>
<name>Du, ChangbinX</name>
<email>changbinx.du@intel.com</email>
</author>
<published>2012-05-23T02:43:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7e54e97812ccf59e71e002f9bd6d12bf4ab448b8'/>
<id>urn:sha1:7e54e97812ccf59e71e002f9bd6d12bf4ab448b8</id>
<content type='text'>
The testusb.c tool has support for looping forever implemented, which
may be useful for stress test, yet it is not exposed to the user, so
even though the code is there, it cannot be used.  This commit adds
"l" to the set of options handled by the application which enables
the feature.

Also, I collate help information for each command line option to make
it easier to use for novice.

Signed-off-by: Du Changbin &lt;changbinx.du@intel.com&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>USB: testusb: add path /dev/bus/usb to default search paths for usbfs</title>
<updated>2012-05-15T15:41:13Z</updated>
<author>
<name>Du, ChangbinX</name>
<email>changbinx.du@intel.com</email>
</author>
<published>2012-05-15T01:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f6fe916ed0a383ae89b041200dae271579c053b3'/>
<id>urn:sha1:f6fe916ed0a383ae89b041200dae271579c053b3</id>
<content type='text'>
As real device-nodes managed by udev whose nodes lived in /dev/bus/usb
are mostly used today, let testusb tool use that directory as one default
path make tool be more convenient to use.

Signed-off-by: Du Changbin &lt;changbinx.du@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>USB: ffs-test: fix length argument of out function call</title>
<updated>2012-05-07T23:45:48Z</updated>
<author>
<name>Matthias Fend</name>
<email>Matthias.Fend@wolfvision.net</email>
</author>
<published>2012-05-07T12:37:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eb9c5836384cd2a276254df6254ed71117983626'/>
<id>urn:sha1:eb9c5836384cd2a276254df6254ed71117983626</id>
<content type='text'>
The out functions should only handle actual available data instead of the complete buffer.
Otherwise for example the ep0_consume function will report ghost events since it tries to decode
the complete buffer - which may contain partly invalid data.

Signed-off-by: Matthias Fend &lt;matthias.fend@wolfvision.net&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip</title>
<updated>2012-03-22T16:40:53Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-03-22T16:40:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=02c502566ef505d0469fa27567f48766c1f5f7af'/>
<id>urn:sha1:02c502566ef505d0469fa27567f48766c1f5f7af</id>
<content type='text'>
Pull x86/build changes from Ingo Molnar.

* 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, build: Fix portability issues when cross-building
  x86, tools: Remove unneeded header files from tools/build.c
  USB: ffs-test: Don't duplicate {get,put}_unaligned*() functions
  x86, efi: Fix endian issues and unaligned accesses
  x86, boot: Restrict CFLAGS for hostprogs
  x86, mkpiggy: Don't open code put_unaligned_le32()
  x86, relocs: Don't open code put_unaligned_le32()
  tools/include: Add byteshift headers for endian access
</content>
</entry>
<entry>
<title>USB: ffs-test: Don't duplicate {get,put}_unaligned*() functions</title>
<updated>2012-02-28T18:23:18Z</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2012-02-28T13:37:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=24fa9a9d6d70ef7ef7087dce472a8f43a9078da5'/>
<id>urn:sha1:24fa9a9d6d70ef7ef7087dce472a8f43a9078da5</id>
<content type='text'>
Use the header file in tools/include instead of duplicating the endian
functions.

Cc: Davidlohr Bueso &lt;dave@gnu.org&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
Link: http://lkml.kernel.org/r/1330436245-24875-7-git-send-email-matt@console-pimps.org
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
</feed>
