04 May, 2016

1 commit

  • Adding names database to port command.

    BEFORE) 'unknown' for vendor and product string.

    Imported USB devices
    ====================
    Port 00: at Low Speed(1.5Mbps)
    unknown vendor : unknown product (03f0:0224)
    3-1 -> usbip://10.0.2.15:3240/5-1
    -> remote bus/dev 005/002

    AFTER) Most vendor string will be converted.

    Imported USB devices
    ====================
    Port 00: at Low Speed(1.5Mbps)
    Hewlett-Packard : unknown product (03f0:0224)
    3-1 -> usbip://10.0.2.15:3240/5-1
    -> remote bus/dev 005/002

    Signed-off-by: Nobuo Iwata
    Signed-off-by: Greg Kroah-Hartman

    Nobuo Iwata
     

27 Apr, 2016

3 commits

  • Modify userspace tools to allow exporting and connecting to vudc.

    This commit is a result of cooperation between Samsung R&D Institute
    Poland and Open Operating Systems Student Society at University
    of Warsaw (O2S3@UW) consisting of:

    Igor Kotrasinski
    Karol Kosik
    Ewelina Kosmider
    Dawid Lazarczyk
    Piotr Szulc

    Tutor and project owner:
    Krzysztof Opasiak

    Signed-off-by: Igor Kotrasinski
    Signed-off-by: Ewelina Kosmider
    [Various bug fixes and improvements]
    Signed-off-by: Krzysztof Opasiak
    Signed-off-by: Greg Kroah-Hartman

    Igor Kotrasinski
     
  • Adds an equivalent of usbip_host_driver for the vudc. Most
    of the code is already shared, but this adds some vudc specific
    code for getting information about devices.

    Based on code created in cooperation with Open Operating Systems
    Student Society at University of Warsaw (O2S3@UW) consisting of:

    Igor Kotrasinski
    Karol Kosik
    Ewelina Kosmider
    Dawid Lazarczyk
    Piotr Szulc

    Tutor and project owner:
    Krzysztof Opasiak

    Signed-off-by: Krzysztof Opasiak
    Signed-off-by: Greg Kroah-Hartman

    Krzysztof Opasiak
     
  • Extract the code from current stub driver backend and a common
    interface for both stub driver and vudc. This allows to share most
    of the usbipd code for both of them.

    Based on code created in cooperation with Open Operating Systems
    Student Society at University of Warsaw (O2S3@UW) consisting of:

    Igor Kotrasinski
    Karol Kosik
    Ewelina Kosmider
    Dawid Lazarczyk
    Piotr Szulc

    Tutor and project owner:
    Krzysztof Opasiak

    Signed-off-by: Krzysztof Opasiak
    Signed-off-by: Greg Kroah-Hartman

    Krzysztof Opasiak
     

23 Oct, 2015

1 commit

  • Felipe writes:

    usb: patches for v4.4 merge window

    This pull request is large with a total of 136 non-merge
    commits. Because of its size, we will only describe the big things in
    broad terms.

    Many will be happy to know that dwc3 is now almost twice as fast after
    some profiling and speed improvements. Also in dwc3, John Youn from
    Synopsys added support for their new DWC USB3.1 IP Core and the HAPS
    platform which can be used to validate it.

    A series of patches from Robert Baldyga cleaned up uses of
    ep->driver_data as a flag for "claimed endpoint" in favor of the new
    ep->claimed flag.

    Sudip Mukherjee fixed a ton of really old problems on the amd5536udc
    driver. That should make a few people happy.

    Heikki Krogerus worked on converting dwc3 to the unified device property
    interface.

    Together with these, there's a ton of non-critical fixes, typos and
    stuff like that.

    Signed-off-by: Felipe Balbi

    Greg Kroah-Hartman
     

27 Sep, 2015

2 commits


23 Sep, 2015

1 commit


15 Jan, 2015

1 commit


13 Jan, 2015

1 commit


15 Dec, 2014

1 commit

  • Pull USB updates from Greg KH:
    "Here's the big set of USB and PHY patches for 3.19-rc1.

    The normal churn in the USB gadget area is in here, as well as xhci
    and other individual USB driver updates. The PHY tree is also in
    here, as there were dependancies on the USB tree.

    All of these have been in linux-next"

    * tag 'usb-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (351 commits)
    arm: omap3: twl: remove usb phy init data
    usbip: fix error handling in stub_probe()
    usb: gadget: udc: missing curly braces
    USB: mos7720: delete some unneeded code
    wusb: replace memset by memzero_explicit
    usbip: remove unneeded structure
    usb: xhci: fix comment for PORT_DEV_REMOVE
    xhci: don't use the same variable for stopped and halted rings current TD
    xhci: clear extra bits from slot context when setting max exit latency
    xhci: cleanup finish_td function
    USB: adutux: NULL dereferences on disconnect
    usb: chipidea: fix platform_no_drv_owner.cocci warnings
    usb: chipidea: Fixed a few typos in comments
    Documentation: bindings: add doc for the USB2 ChipIdea USB driver
    usb: chipidea: add a usb2 driver for ci13xxx
    usb: chipidea: fix phy handling
    usb: chipidea: remove duplicate dev_set_drvdata for host_start
    usb: chipidea: parameter 'mode' isn't needed for hw_device_reset
    usb: chipidea: add controller reset API
    usb: chipidea: remove flag CI_HDRC_REQUIRE_TRANSCEIVER
    ...

    Linus Torvalds
     

03 Dec, 2014

1 commit

  • Delete a local structure that is only used to be initialized by memset.

    A semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    identifier x,i;
    @@

    {
    ... when any
    -struct i x;

    }
    //

    Signed-off-by: Julia Lawall
    Acked-by: Valentina Manea
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     

20 Nov, 2014

2 commits


16 Sep, 2014

1 commit


09 Sep, 2014

1 commit

  • Merge Linux 3.17-rc4 here so we have all the latest
    fixes on next too. This also cleans up a few conflicts
    when applying patches.

    Signed-off-by: Felipe Balbi

    Conflicts:
    drivers/usb/gadget/Makefile
    drivers/usb/gadget/function/Makefile
    drivers/usb/gadget/legacy/Makefile
    drivers/usb/phy/phy-samsung-usb.h

    Felipe Balbi
     

05 Sep, 2014

1 commit


02 Sep, 2014

2 commits

  • If ffs-test is used with a kernel prior to 3.14, which do not
    support the new descriptors format, it will fail when trying to
    write the descriptors. Add a function that converts the new
    descriptors to the legacy ones and use it to retry writing the
    descriptors using the legacy format.

    Also add “-l” flag to ffs-test which will cause the tool to
    never try the new format and instead immediatelly try the
    legacy one. This should be useful to test whether parsing
    of the old format still works on given 3.14+ kernel.

    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Michal Nazarewicz
     
  • Since commit [ac8dde11: “Add flags to descriptors block”] functionfs
    supports a new, more powerful and extensible, descriptor format.
    Since ffs-test is probably the first thing users of the functionfs
    interface see when they start writing functionfs user space daemons,
    convert it to use the new format thus promoting it.

    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Michal Nazarewicz
     

26 Aug, 2014

1 commit


22 Jul, 2014

1 commit


01 Jul, 2014

4 commits


27 Jun, 2014

1 commit


19 Jun, 2014

1 commit

  • Commit [ac8dde11: “usb: gadget: f_fs: Add flags to descriptors block”]
    which introduced a new descriptor format for FunctionFS removed the
    usb_functionfs_descs_head structure, which is still used by ffs-test.
    tool.

    Convert ffs-test by converting it to use the new header format. For
    testing kernels prior to 3.14 (when the new format was introduced) and
    parsing of the legacy headers in the new kernels, provide a compilation
    flag to make the tool use the old format.

    Finally, include information as to when the legacy FunctionFS headers
    format has been deprecated (which is also when the new one has been
    introduced).

    Reported-by: Lad, Prabhakar
    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Felipe Balbi

    Michal Nazarewicz
     

14 May, 2014

1 commit

  • This patch adds two example applications showing usage of Asynchronous I/O API
    of FunctionFS. First one (aio_simple) is simple example of bidirectional data
    transfer. Second one (aio_multibuff) shows multi-buffer data transfer, which
    may to be used in high performance applications.

    Both examples contains userspace applications for device and for host.
    It needs libaio library on the device, and libusb library on host.

    Signed-off-by: Robert Baldyga
    Signed-off-by: Felipe Balbi

    Robert Baldyga
     

05 Dec, 2013

1 commit

  • 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
    Signed-off-by: Greg Kroah-Hartman

    Huang Rui
     

07 Mar, 2013

1 commit

  • 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
    Acked-by: Michal Nazarewicz
    Cc: stable # 3.7+
    Signed-off-by: Greg Kroah-Hartman

    Maxin B. John
     

09 Feb, 2013

1 commit

  • 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
    Signed-off-by: Greg Kroah-Hartman

    Sergei Shtylyov
     

12 Jan, 2013

1 commit


11 Sep, 2012

1 commit


14 Jun, 2012

1 commit

  • 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
    Acked-by: Michal Nazarewicz
    Signed-off-by: Greg Kroah-Hartman

    Du, ChangbinX
     

15 May, 2012

1 commit


08 May, 2012

1 commit

  • 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
    Cc: stable
    Acked-by: Michal Nazarewicz
    Signed-off-by: Greg Kroah-Hartman

    Matthias Fend
     

23 Mar, 2012

1 commit

  • 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

    Linus Torvalds
     

29 Feb, 2012

1 commit


24 Jan, 2012

1 commit


01 Mar, 2011

1 commit

  • When compiling this program the functionfs.h header cannot be found, producing:
    ffs-test.c:40: fatal error: linux/usb/functionfs.h: No such file or directory

    This patch also fixes the following warning:
    ffs-test.c:453: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘size_t’

    Signed-off-by: Davidlohr Bueso
    Signed-off-by: Greg Kroah-Hartman

    Davidlohr Bueso