13 Jan, 2012

1 commit


11 Jan, 2012

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (68 commits)
    hid-input/battery: add FEATURE quirk
    hid-input/battery: remove battery_val
    hid-input/battery: power-supply type really *is* a battery
    hid-input/battery: make the battery setup common for INPUTs and FEATUREs
    hid-input/battery: deal with both FEATURE and INPUT report batteries
    hid-input/battery: add quirks for battery
    hid-input/battery: remove apparently redundant kmalloc
    hid-input: add support for HID devices reporting Battery Strength
    HID: hid-multitouch: add support 9 new Xiroku devices
    HID: multitouch: add support for 3M 32"
    HID: multitouch: add support of Atmel multitouch panels
    HID: usbhid: defer LED setting to a workqueue
    HID: usbhid: hid-core: submit queued urbs before suspend
    HID: usbhid: remove LED_ON
    HID: emsff: use symbolic name instead of hardcoded PID constant
    HID: Enable HID_QUIRK_MULTI_INPUT for Trio Linker Plus II
    HID: Kconfig: fix syntax
    HID: introduce proper dependency of HID_BATTERY on POWER_SUPPLY
    HID: multitouch: support PixArt optical touch screen
    HID: make parser more verbose about parsing errors by default
    ...

    Fix up rename/delete conflict in drivers/hid/hid-hyperv.c (removed in
    staging, moved in this branch) and similarly for the rules for same file
    in drivers/staging/hv/{Kconfig,Makefile}.

    Linus Torvalds
     

10 Jan, 2012

1 commit

  • * 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
    USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
    xhci: Clean up 32-bit build warnings.
    USB: update documentation for usbmon
    usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
    drivers/usb/class/cdc-acm.c: clear dangling pointer
    drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
    drivers/usb/host/isp1760-if.c: introduce missing kfree
    usb: option: add ZD Incorporated HSPA modem
    usb: ch9: fix up MaxStreams helper
    USB: usb-skeleton.c: cleanup open_count
    USB: usb-skeleton.c: fix open/disconnect race
    xhci: Properly handle COMP_2ND_BW_ERR
    USB: remove dead code from suspend/resume path
    USB: add quirk for another camera
    drivers: usb: wusbcore: Fix dependency for USB_WUSB
    xhci: Better debugging for critical host errors.
    xhci: Be less verbose during URB cancellation.
    xhci: Remove debugging about ring structure allocation.
    xhci: Remove debugging about toggling cycle bits.
    xhci: Remove debugging for individual transfers.
    ...

    Linus Torvalds
     

09 Jan, 2012

1 commit

  • * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
    reiserfs: Properly display mount options in /proc/mounts
    vfs: prevent remount read-only if pending removes
    vfs: count unlinked inodes
    vfs: protect remounting superblock read-only
    vfs: keep list of mounts for each superblock
    vfs: switch ->show_options() to struct dentry *
    vfs: switch ->show_path() to struct dentry *
    vfs: switch ->show_devname() to struct dentry *
    vfs: switch ->show_stats to struct dentry *
    switch security_path_chmod() to struct path *
    vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
    vfs: trim includes a bit
    switch mnt_namespace ->root to struct mount
    vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
    vfs: opencode mntget() mnt_set_mountpoint()
    vfs: spread struct mount - remaining argument of next_mnt()
    vfs: move fsnotify junk to struct mount
    vfs: move mnt_devname
    vfs: move mnt_list to struct mount
    vfs: switch pnode.h macros to struct mount *
    ...

    Linus Torvalds
     

04 Jan, 2012

1 commit


10 Dec, 2011

1 commit


27 Nov, 2011

1 commit


20 Nov, 2011

1 commit


19 Nov, 2011

1 commit

  • This converts the drivers in drivers/usb/* to use the
    module_usb_driver() macro which makes the code smaller and a bit
    simpler.

    Added bonus is that it removes some unneeded kernel log messages about
    drivers loading and/or unloading.

    Cc: Simon Arlott
    Cc: Duncan Sands
    Cc: Matthieu CASTET
    Cc: Stanislaw Gruszka
    Cc: Pete Zaitcev
    Cc: Oliver Neukum
    Cc: Juergen Stuber
    Cc: Cesar Miquel
    Cc: Matthew Dharm
    Cc: Matthew Wilcox
    Cc: Sarah Sharp
    Cc: Kuninori Morimoto
    Cc: Felipe Balbi
    Cc: Lucas De Marchi
    Cc: Michael Hund
    Cc: Zack Parsons
    Cc: Melchior FRANZ
    Cc: Tomoki Sekiyama
    Cc: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

18 Sep, 2011

1 commit

  • In a few places in the kernel, the code prints
    a human-readable USB device speed (eg. "high speed").
    This involves a switch statement sometimes wrapped
    around in ({ ... }) block leading to code repetition.

    To mitigate this issue, this commit introduces
    usb_speed_string() function, which returns
    a human-readable name of provided speed.

    It also changes a few places switch was used to use
    this new function. This changes a bit the way the
    speed is printed in few instances at the same time
    standardising it.

    Signed-off-by: Michal Nazarewicz
    Signed-off-by: Greg Kroah-Hartman

    Michal Nazarewicz
     

24 Aug, 2011

2 commits

  • Now ${LINUX}/drivers/usb/* can use usb_endpoint_maxp(desc) to get maximum packet size
    instead of le16_to_cpu(desc->wMaxPacketSize).
    This patch fix it up

    Cc: Armin Fuerst
    Cc: Pavel Machek
    Cc: Johannes Erdfelt
    Cc: Vojtech Pavlik
    Cc: Oliver Neukum
    Cc: David Kubicek
    Cc: Johan Hovold
    Cc: Brad Hards
    Acked-by: Felipe Balbi
    Cc: Sebastian Andrzej Siewior
    Cc: Thomas Dahlmann
    Cc: David Brownell
    Cc: David Lopo
    Cc: Alan Stern
    Cc: Michal Nazarewicz
    Cc: Xie Xiaobo
    Cc: Li Yang
    Cc: Jiang Bo
    Cc: Yuan-hsin Chen
    Cc: Darius Augulis
    Cc: Xiaochen Shen
    Cc: Yoshihiro Shimoda
    Cc: OKI SEMICONDUCTOR,
    Cc: Robert Jarzmik
    Cc: Ben Dooks
    Cc: Thomas Abraham
    Cc: Herbert Pötzl
    Cc: Arnaud Patard
    Cc: Roman Weissgaerber
    Acked-by: Sarah Sharp
    Cc: Tony Olech
    Cc: Florian Floe Echtler
    Cc: Christian Lucht
    Cc: Juergen Stuber
    Cc: Georges Toth
    Cc: Bill Ryder
    Cc: Kuba Ober
    Cc: Inaky Perez-Gonzalez
    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Greg Kroah-Hartman

    Kuninori Morimoto
     
  • Executing
    | testusb -a -c 1 -t 3 -v 421 -s 2048

    does not complete on the gadget side.
    g_zero enqueues a 4096 bytes long buffer. The host sends 2048bytes which
    is a multiple of wMaxPacketSize (either 64 or 512 bytes). The host is
    done with sending data but the gadget waits for more.
    Since the protocol does not include transfer-length-field sending a
    terminating zero packet seems the only way out.

    Reviewed-by: Felipe Balbi
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Andrzej Siewior
     

23 Aug, 2011

2 commits


27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

24 Jun, 2011

1 commit


24 May, 2011

1 commit

  • * 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (205 commits)
    USB: EHCI: Remove SPARC_LEON {read,write}_be definitions from ehci.h
    USB: UHCI: Support big endian GRUSBHC HC
    sparc: add {read,write}*_be routines
    USB: UHCI: Add support for big endian descriptors
    USB: UHCI: Use ACCESS_ONCE rather than using a full compiler barrier
    USB: UHCI: Add support for big endian mmio
    usb-storage: Correct adjust_quirks to include latest flags
    usb/isp1760: Fix possible unlink problems
    usb/isp1760: Move function isp1760_endpoint_disable() within file.
    USB: remove remaining usages of hcd->state from usbcore and fix regression
    usb: musb: ux500: add configuration and build options for ux500 dma
    usb: musb: ux500: add dma glue layer for ux500
    usb: musb: ux500: add dma name for ux500
    usb: musb: ux500: add ux500 specific code for gadget side
    usb: musb: fix compile error
    usb-storage: fix up the unusual_realtek device list
    USB: gadget: f_audio: Fix invalid dereference of initdata
    EHCI: don't rescan interrupt QHs needlessly
    OHCI: fix regression caused by nVidia shutdown workaround
    USB: OTG: msm: Free VCCCX regulator even if we can't set the voltage
    ...

    Linus Torvalds
     

11 May, 2011

1 commit


10 May, 2011

1 commit


04 May, 2011

1 commit


03 May, 2011

2 commits

  • dummy_hcd + g_zero:

    |./testusb -a -s 1024 -v 1024 -t 10
    | usbtest 2-1:3.0: subtest 14 error, status 0

    with patch:
    ./testusb -a -t 10
    |unknown speed /proc/bus/usb/001/002
    | dummy_udc dummy_udc: disabled ep-a
    | dummy_udc dummy_udc: disabled ep-b
    | dummy_udc dummy_udc: enabled ep-a (ep1in-bulk) maxpacket 1024
    | dummy_udc dummy_udc: enabled ep-b (ep2out-bulk) maxpacket 1024
    | zero gadget: source/sink enabled
    | usbtest 1-1:3.0: TEST 10: queue 32 control calls, 1000 times
    | dummy_hcd dummy_hcd: timer fired with no URBs pending?
    |/proc/bus/usb/001/002 test 10, 0.022370 secs

    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Andrzej Siewior
     
  • Signed-off-by: Sebastian Andrzej Siewior
    Reviewed-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Andrzej Siewior
     

30 Apr, 2011

1 commit

  • This patch (as1452b) adds a new test case to the usbtest driver. Test
    24 exercises the unlink-from-queue pathways in the host. It queues a
    user-specified number of bulk-OUT URBs of user-specified size, unlinks
    the fourth- and second-from-last URBs in the queue, and then waits to
    see if all the URBs complete in the expected way (except of course
    that the unlinked URBs might complete normally, if they weren't
    unlinked soon enough).

    This new test has confirmed the existence of a bug in the ehci-hcd
    driver, to be fixed by a separate patch.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

14 Apr, 2011

1 commit

  • The kernel already prints its build timestamp during boot, no need to
    repeat it in random drivers and produce different object files each
    time.

    Cc: Tony Olech
    Cc: linux-usb@vger.kernel.org
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Michal Marek
     

31 Mar, 2011

1 commit


24 Mar, 2011

1 commit

  • My testprog do a lot of bitbang - after hours i got following warning and my machine lockups:
    WARNING: at /build/buildd/linux-2.6.38/lib/kref.c:34
    After debugging uss720 driver i discovered that the completion callback was called before
    usb_submit_urb returns. The callback frees the request structure that is krefed on return by
    usb_submit_urb.

    Signed-off-by: Peter Holik
    Acked-by: Thomas Sailer
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Peter Holik
     

23 Mar, 2011

1 commit

  • There may be multiple ways of controlling the backlight on a given
    machine. Allow drivers to expose the type of interface they are
    providing, making it possible for userspace to make appropriate policy
    decisions.

    Signed-off-by: Matthew Garrett
    Cc: Richard Purdie
    Cc: Chris Wilson
    Cc: David Airlie
    Cc: Alex Deucher
    Cc: Ben Skeggs
    Cc: Zhang Rui
    Cc: Len Brown
    Cc: Jesse Barnes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     

18 Feb, 2011

1 commit


23 Jan, 2011

3 commits

  • Add a set of new tests similar to the existing ones but using
    transfer buffers at an "odd" address [ie offset of +1 from
    the buffer obtained by kmalloc() or usb_alloc_coherent()]

    The new tests are:
    #17 : bulk out (like #1) using kmalloc and DMA mapping by USB core.
    #18 : bulk in (like #2) using kmalloc and DMA mapping by USB core.
    #19 : bulk out (like #1) using usb_alloc_coherent()
    #20 : bulk in (like #2) using usb_alloc_coherent()
    #21 : control write (like #14)
    #22 : isochonous out (like #15)
    #23 : isochonous in (like #16)

    Signed-off-by: Martin Fuzzey
    Signed-off-by: Greg Kroah-Hartman

    Martin Fuzzey
     
  • Commit ecc1624a2fff45780959efbcb73ace18fdb3c58d (USB: misc: uss720.c: add
    another vendor/product ID) duplicated entry in the driver's USB device ID
    table. Remove the duplicate.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Greg Kroah-Hartman

    Sergei Shtylyov
     
  • If case of an unknown usb_device_id->driver_info (which could only
    occur if the info got corrupted somewhere outside the usbled driver),
    a debug message depended on an uninitialized value. This was harmless,
    but ugly, and gets fixed with this patch.

    Signed-off-by: Melchior FRANZ
    Signed-off-by: Greg Kroah-Hartman

    Melchior FRANZ
     

14 Jan, 2011

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    Documentation/trace/events.txt: Remove obsolete sched_signal_send.
    writeback: fix global_dirty_limits comment runtime -> real-time
    ppc: fix comment typo singal -> signal
    drivers: fix comment typo diable -> disable.
    m68k: fix comment typo diable -> disable.
    wireless: comment typo fix diable -> disable.
    media: comment typo fix diable -> disable.
    remove doc for obsolete dynamic-printk kernel-parameter
    remove extraneous 'is' from Documentation/iostats.txt
    Fix spelling milisec -> ms in snd_ps3 module parameter description
    Fix spelling mistakes in comments
    Revert conflicting V4L changes
    i7core_edac: fix typos in comments
    mm/rmap.c: fix comment
    sound, ca0106: Fix assignment to 'channel'.
    hrtimer: fix a typo in comment
    init/Kconfig: fix typo
    anon_inodes: fix wrong function name in comment
    fix comment typos concerning "consistent"
    poll: fix a typo in comment
    ...

    Fix up trivial conflicts in:
    - drivers/net/wireless/iwlwifi/iwl-core.c (moved to iwl-legacy.c)
    - fs/ext4/ext4.h

    Also fix missed 'diabled' typo in drivers/net/bnx2x/bnx2x.h while at it.

    Linus Torvalds
     

23 Dec, 2010

2 commits


22 Dec, 2010

1 commit

  • So far the USBLED driver only supports Delcom's "USB Visual Signal
    Indicator" (http://www.delcomproducts.com/products_USBLMP.asp). The
    driver generates virtual files "red", "green", and "blue" under the
    device's /sys/ directory, where color values can be read from and
    written to.

    This patch adds support for Dream Cheeky's "DL100B Webmail Notifier"
    (http://www.dreamcheeky.com/webmail-notifier -- available from several
    shops, such as http://www.conrad.at/ce/de/product/777048/USB-WEBMAIL).
    This device isn't as pretty as Delcom's, but it's *far* cheaper, and
    its 3 LEDs can be set in 32 brightness steps each. The grey envelope
    contour can easily be removed, leaving a rather neutral white box (with
    a few small holes), which is useful for generic signalling purposes.
    Of course, the small circuit board can easily be put into a prettier
    case.

    The DL100B device pretends to be a HID, but the HID descriptor shows
    that it's not overly useful as such (see below). The patch therefore
    removes the "HID-ness" (hid-core.c, hid-ids.h), and adds the necessary
    commands to usbled.c. The protocol info comes from the developer's
    manual that Dream Cheeky kindly provided (815DeveloperManual.pdf).

    HID descriptor:

    0: 05 01 Usage Page 'Generic Desktop Controls'
    2: 09 10 Usage 'Reserved'
    4: a1 01 Collection 'Application (mouse, keyboard)'
    6: 05 00 Usage Page 'Undefined'
    8: 19 10 Usage Minimum = 16
    10: 29 11 Usage Maximum = 17
    12: 15 00 Logical Minimum = 0
    14: 25 0f Logical Maximum = 15
    16: 75 08 Report Size = 8
    18: 95 08 Report Count = 8
    20: 91 02 Output data *var abs lin pref-state null-pos non-vol bit-field
    22: 19 10 Usage Minimum = 16
    24: 29 11 Usage Maximum = 17
    26: 15 00 Logical Minimum = 0
    28: 25 0f Logical Maximum = 15
    30: 75 08 Report Size = 8
    32: 95 08 Report Count = 8
    34: 81 00 Input data array abs lin pref-state null-pos non-vol bit-field
    36: c0 End Collection

    Signed-off-by: Melchior FRANZ
    Signed-off-by: Greg Kroah-Hartman

    Melchior FRANZ
     

17 Dec, 2010

1 commit


01 Dec, 2010

1 commit

  • Default llseek operation behavior was changed by the patch named
    "vfs: make no_llseek the default" after the yurex driver had been merged,
    so the llseek to yurex is now ignored.

    This patch add llseek fop with default_llseek to yurex driver
    to catch up to the change.

    Signed-off-by: Tomoki Sekiyama
    Signed-off-by: Greg Kroah-Hartman

    Tomoki Sekiyama
     

16 Nov, 2010

3 commits