19 Mar, 2016

1 commit

  • The iowarrior driver expects at least one valid endpoint. If given
    malicious descriptors that specify 0 for the number of endpoints,
    it will crash in the probe function. Ensure there is at least
    one endpoint on the interface before using it.

    The full report of this issue can be found here:
    http://seclists.org/bugtraq/2016/Mar/87

    Reported-by: Ralf Spenneberg
    Cc: stable
    Signed-off-by: Josh Boyer
    Signed-off-by: Greg Kroah-Hartman

    Josh Boyer
     

04 Mar, 2016

1 commit


21 Feb, 2016

3 commits


15 Feb, 2016

1 commit


25 Jan, 2016

7 commits

  • Remove a call to dev_err() that was reporting an unsuccesful call to
    kmalloc(), as reporting memory allocation failures is redundant. Instead
    of logging the error, clean up previously allocated resources and abort
    the probe with -ENOMEM. Before this change sisusb->SiS_Pr could be
    dereferenced even if null after failure of memory allocation.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • This patch remove three calls to dev_err() from sisusb_probe() as
    reporting memory allocation failures is redundant:

    - Remove a call to dev_err() that was reporting unsuccesful call to
    kzalloc().

    - Remove two calls to dev_err() that were reporting unsuccesful calls
    to kmalloc().

    One call to dev_err() reporting memory allocation is left unchanged as
    the last patch of the series removes it.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • This patch removes null test before calls to kfree() as kfree() can
    handle null pointers safely.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • The file drivers/usb/misc/sisusbvga/sisusb.c had 6 assignments inside if
    tests. This patch move the assignment outside the test. The changes
    also fix the remaining 2 lines that were over 80 characters.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • The file drivers/usb/misc/sisusbvga/sisusb.c contained coding style
    issues reported by checkpatch. This patch fixes the following
    errors:
    - 12 WARNING: braces {} are not necessary for single statement blocks
    - 04 ERROR: return is not a function, parentheses are not required
    - 03 ERROR: do not initialise statics to 0
    - 1 WARNING: else is not generally useful after a break or return
    - 1 WARNING: braces {} are not necessary for any arm of this statement
    - 1 WARNING: Block comments use * on subsequent lines

    One case in which braces are not necessary is left unchanged as other
    patch of the series will fix it.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • This patch fixes whitespace coding style issues that can't be fixed
    without adding newlines. This patch fixes the following checkpatch
    warnings:
    - 20 ERROR: trailing statements should be on next line
    - 15 WARNING: line over 80 characters
    - 03 WARNING: Missing a blank line after declarations
    - 01 ERROR: space required after that ','

    Five lines over 80 characters are left. The first three wont change as
    the fix would require split the cast and variable name in different
    lines which makes the code less readable. The last two will be fixed by
    other patch in the series.

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     
  • This patch fixes whitespace coding style issues that can be fixed
    within a single line. This patch fixes the following checkpatch
    warnings:
    - 83 ERROR: space required after that ','
    - 13 ERROR: switch and case should be at the same indent
    - 08 WARNING: please, no spaces at the start of a line
    - 03 ERROR: space required before the open parenthesis '('
    - 04 WARNING: suspect code indent for conditional statements
    - 01 WARNING: space prohibited between function name and open parenthesis
    - 01 ERROR: spaces required around that '='
    - 01 ERROR: code indent should use tabs where possible

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Greg Kroah-Hartman

    Peter Senna Tschudin
     

14 Jan, 2016

1 commit

  • Pull USB updates from Greg KH:
    "Here is the big USB drivers update for 4.5-rc1.

    Lots of gadget driver updates and fixes, like usual, and a mix of
    other USB driver updates as well. Full details in the shortlog. All
    of these have been in linux-next for a while"

    * tag 'usb-4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (191 commits)
    MAINTAINERS: change my email address
    USB: usbmon: remove assignment from IS_ERR argument
    USB: mxu11x0: drop redundant function name from error messages
    USB: mxu11x0: fix debug-message typos
    USB: mxu11x0: rename usb-serial driver
    USB: mxu11x0: fix modem-control handling on B0-transitions
    USB: mxu11x0: fix memory leak on firmware download
    USB: mxu11x0: fix memory leak in port-probe error path
    USB: serial: add Moxa UPORT 11x0 driver
    USB: cp210x: add ID for ELV Marble Sound Board 1
    usb: chipidea: otg: use usb autosuspend to suspend bus for HNP
    usb: chipidea: host: set host to be null after hcd is freed
    usb: chipidea: removing of_find_property
    usb: chipidea: implement platform shutdown callback
    usb: chipidea: clean up CONFIG_USB_CHIPIDEA_DEBUG reference
    usb: chipidea: delete static debug support
    usb: chipidea: support debugfs without CONFIG_USB_CHIPIDEA_DEBUG
    usb: chipidea: udc: improve error handling on _hardware_enqueue
    usb: chipidea: udc: _ep_queue and _hw_queue cleanup
    usb: dwc3: of-simple: fix build warning on !PM
    ...

    Linus Torvalds
     

23 Dec, 2015

1 commit


02 Dec, 2015

2 commits

  • timeval is deprecated and not y2038 safe. Its size also changes according
    to 32 bit/ 64 bit compilation. Replace it with 32 and 64 bit versions of
    its individual fields, giving two ioctls with different code values.
    The two ioctls are necessary to maintain the 32 bit and 64 bit userspace
    compatibility with a 64/32 bit kernel.

    Change unsigned to __u32 types for a definitive userspace interface.
    This is in accordance with the psABI that the unsigned type is always
    32 bits.

    Also use motonic timer instead of real time to ensure positive delta
    values.

    Refactor usbtest_ioctl for readability to isolate the handling of the
    testing timing measurement.

    The official testusb userspace tool can be changed in a separate patch
    to reflect the __u32 changes as well. It can use the usbtest_param_32
    struct, since 32 bit seconds is long enough for test durations.

    Signed-off-by: Deepa Dinamani
    Reviewed-by: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Deepa Dinamani
     
  • Now the function of complicated_callback is not only used for iso
    transfer, improve the error message to reflect it.

    Signed-off-by: Peter Chen
    Signed-off-by: Greg Kroah-Hartman

    Peter Chen
     

25 Oct, 2015

1 commit


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
     

14 Oct, 2015

1 commit

  • The bulk queue tests are used to show 'best performance' for bulk
    transfer, we are often asked this question by users. The implementation
    is the same with iso test, that is queue request at interrupt completion,
    so we reuse the iso structures, and rename them as common one.

    It's result should be very close to IC simulation, in order
    to get that, the device side should also need to prepare enough
    queue.

    We have got the 'best performance' (IN: 41MB, OUT: 39MB) at i.mx platform
    (USB2, ARM Cortex A9, stream mode need to enable) with below command:

    Host side:
    modprobe usbtest
    ./testusb -a -t 27 -g 64 -s 16384
    ./testusb -a -t 28 -g 64 -s 16384
    Gadget side:
    modprobe g_zero loopdefault=1 qlen=64 buflen=16384

    Signed-off-by: Peter Chen
    Cc: Greg KH
    Cc: Alan Stern
    Signed-off-by: Felipe Balbi

    Peter Chen
     

04 Oct, 2015

1 commit


27 Sep, 2015

4 commits


19 Aug, 2015

1 commit

  • The current code prints all wMaxPacketSize content at endpoint
    descriptor, if there is a high speed, high bandwidth endpoint,
    it may confuse the users, eg, if there are 3 transactions during
    microframe, it will print "wMaxPacket 1400" for packet content.
    This commit splits wMaxpacketSize and transaction numbers for
    output messages.

    Signed-off-by: Peter Chen
    Signed-off-by: Greg Kroah-Hartman

    Peter Chen
     

06 Aug, 2015

1 commit


27 Jun, 2015

1 commit

  • Pull USB updates from Greg KH:
    "Here's the big USB patchset for 4.2-rc1. As is normal these days, the
    majority of changes are in the gadget drivers, with a bunch of other
    small driver changes.

    All of these have been in linux-next with no reported issues"

    * tag 'usb-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (175 commits)
    usb: dwc3: Use ASCII space in Kconfig
    usb: chipidea: add work-around for Marvell HSIC PHY startup
    usb: chipidea: allow multiple instances to use default ci_default_pdata
    dt-bindings: Consolidate ChipIdea USB ci13xxx bindings
    phy: add Marvell HSIC 28nm PHY
    phy: Add Marvell USB 2.0 OTG 28nm PHY
    dt-bindings: Add Marvell PXA1928 USB and HSIC PHY bindings
    USB: ssb: use devm_kzalloc
    USB: ssb: fix error handling in ssb_hcd_create_pdev()
    usb: isp1760: check for null return from kzalloc
    cdc-acm: Add support of ATOL FPrint fiscal printers
    usb: chipidea: usbmisc_imx: Remove unneeded semicolon
    USB: usbtmc: add device quirk for Rigol DS6104
    USB: serial: mos7840: Use setup_timer
    phy: twl4030-usb: add ABI documentation
    phy: twl4030-usb: remove incorrect pm_runtime_get_sync() in probe function.
    phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback.
    phy: twl4030-usb: make runtime pm more reliable.
    drivers:usb:fsl: Fix compilation error for fsl ehci drv
    usb: renesas_usbhs: Don't disable the pipe if Control write status stage
    ...

    Linus Torvalds
     

26 Jun, 2015

1 commit

  • pratyush.anand@st.com email-id doesn't exist anymore as I have left the
    company. Replace ST's id with pratyush.anand@gmail.com.

    Signed-off-by: Pratyush Anand
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pratyush Anand
     

01 Jun, 2015

1 commit

  • Removes Vernier Software & Technology devices from the ldusb
    driver and the hid_ignore_list table of the usbhid driver in the
    Linux tree. These devices will now be supported via the hidraw
    driver.

    A user space driver for these devices will be found in the
    Go! Software Development Kit from Vernier at
    http://www.vernier.com/downloads/software-development-kits/go-sdk/.
    These devices are also be supported by the LabQuest2 standalone
    interface shown at http://www.vernier.com/products/interfaces/labq2/
    and the LoggerPro for Linux software shown at
    http://www.vernier.com/downloads/logger-pro-linux/.

    Signed-off-by: Dennis O'Brien
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Jiri Kosina

    Dennis O'Brien
     

10 May, 2015

3 commits


04 Apr, 2015

1 commit

  • Fix build errors when HW_RANDOM is not enabled:

    drivers/built-in.o: In function `chaoskey_disconnect':
    chaoskey.c:(.text+0x5f3f00): undefined reference to `hwrng_unregister'
    drivers/built-in.o: In function `chaoskey_probe':
    chaoskey.c:(.text+0x5f42a6): undefined reference to `hwrng_register'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

01 Apr, 2015

1 commit

  • > drivers/usb/misc/chaoskey.c: In function 'chaoskey_read':
    > >> drivers/usb/misc/chaoskey.c:412:3: error: implicit declaration of function 'copy_to_user'
    > >> [-Werror=implicit-function-declaration]
    > remain = copy_to_user(buffer, dev->buf + dev->used, this_time);

    I was unable to reproduce this locally, but added an explicit

    #include

    which should ensure the definition on all architectures.

    > sparse warnings: (new ones prefixed by >>)
    >
    > >> drivers/usb/misc/chaoskey.c:117:30: sparse: incorrect type in assignment (different base types)
    > drivers/usb/misc/chaoskey.c:117:30: expected int [signed] size
    > drivers/usb/misc/chaoskey.c:117:30: got restricted __le16 [usertype] wMaxPacketSize

    Switched the code to using the USB descriptor accessor functions.

    Signed-off-by: Keith Packard
    Signed-off-by: Greg Kroah-Hartman

    Keith Packard
     

26 Mar, 2015

2 commits

  • This is necessary to set REF_SEL appropriately in uses where refclk is
    always available.

    Signed-off-by: Ben Gamari
    Acked-by: Marek Szyprowski
    Signed-off-by: Greg Kroah-Hartman

    Ben Gamari
     
  • This is a hardware random number generator. The driver provides both a
    /dev/chaoskeyX entry and hooks the entropy source up to the kernel
    hwrng interface. More information about the device can be found at
    http://chaoskey.org

    The USB ID for ChaosKey was allocated from the OpenMoko USB vendor
    space and is visible as 'USBtrng' here:

    http://wiki.openmoko.org/wiki/USB_Product_IDs

    v2: Respond to review from Oliver Neukum

    * Delete extensive debug infrastructure and replace it with calls to
    dev_dbg.

    * Allocate I/O buffer separately from device structure to obey
    requirements for non-coherant architectures.

    * Initialize mutexes before registering device to ensure that open
    cannot be invoked before the device is ready to proceed.

    * Return number of bytes read instead of -EINTR when partial read
    operation is aborted due to a signal.

    * Make sure device mutex is unlocked in read error paths.

    * Add MAINTAINERS entry for the driver

    Signed-off-by: Keith Packard
    Cc: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Keith Packard
     

18 Mar, 2015

2 commits


10 Jan, 2015

1 commit