04 Oct, 2019

1 commit

  • The Rio500 kernel driver has not been used by Rio500 owners since 2001
    not long after the rio500 project added support for a user-space USB stack
    through the very first versions of usbdevfs and then libusb.

    Support for the kernel driver was removed from the upstream utilities
    in 2008:
    https://gitlab.freedesktop.org/hadess/rio500/commit/943f624ab721eb8281c287650fcc9e2026f6f5db

    Cc: Cesar Miquel
    Signed-off-by: Bastien Nocera
    Cc: stable
    Link: https://lore.kernel.org/r/6251c17584d220472ce882a3d9c199c401a51a71.camel@hadess.net
    Signed-off-by: Greg Kroah-Hartman

    Bastien Nocera
     

08 Aug, 2019

1 commit


20 Jun, 2019

1 commit

  • While there are a mix of things here, most of the stuff
    were written from Kernel developer's PoV. So, add them to
    the driver-api book.

    A follow up for this patch would be to move documents from
    there that are specific to sysadmins, adding them to the
    admin-guide.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Johan Hovold
    Acked-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     

21 May, 2019

1 commit


16 Apr, 2019

1 commit


22 Feb, 2019

1 commit

  • On Chrome OS we want to use USBguard to potentially limit access to USB
    devices based on policy. We however to do not want to wait for userspace to
    come up before initializing fixed USB devices to not regress our boot
    times.

    This patch adds option to instruct the kernel to only authorize devices
    connected to the internal ports. Previously we could either authorize
    all or none (or, by default, we'd only authorize wired devices).

    The behavior is controlled via usbcore.authorized_default command line
    option.

    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Torokhov
     

26 Nov, 2018

1 commit


21 Jul, 2018

1 commit

  • …it/johan/usb-serial into usb-next

    Johan writes:

    USB-serial updates for v4.19-rc1

    Here are the USB-serial updates for 4.19-rc1, including:

    - gpio support for CP2102N devices
    - improved line-speed handling for cp210x
    - conversion to spin_lock_irqsave() in completion handlers
    - dropped kl5kusb105 support from the kl5kusb105 driver (sic!)

    Included are also various lower-priority fixes and clean ups.

    All but the final commit have been in linux-next, and with no reported
    issues.

    Signed-off-by: Johan Hovold <johan@kernel.org>

    Greg Kroah-Hartman
     

11 Jul, 2018

1 commit


18 Jun, 2018

1 commit


15 Jan, 2018

1 commit


12 Jan, 2018

1 commit


12 Dec, 2017

1 commit

  • The URB_NO_FSBR flag has never really been used. It was introduced as
    a potential way for UHCI to minimize PCI bus usage (by not attempting
    full-speed bulk and control transfers more than once per frame), but
    the flag was not set by any drivers.

    There's no point in keeping it around. This patch simplifies the API
    by removing it. Unfortunately, it does have to be kept as part of the
    usbfs ABI, but at least we can document in
    include/uapi/linux/usbdevice_fs.h that it doesn't do anything.

    Signed-off-by: Alan Stern
    Acked-by: Shuah Khan
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

09 Dec, 2017

1 commit


13 Oct, 2017

1 commit


19 Jun, 2017

2 commits

  • This patch adds a new function 'f_uac1'
    (f_uac1 with virtual "ALSA card") that
    uses recently created u_audio API. Comparing
    to legacy f_uac1 function implementation it
    doesn't require any real Audio codec to be
    present on the device. In f_uac1 audio
    streams are simply sinked to and sourced
    from a virtual ALSA sound card created
    using u_audio API.

    Legacy f_uac1 approach is to write audio
    samples directly to existing ALSA sound
    card

    f_uac1 approach is more generic/flexible
    one - create an ALSA sound card that
    represents USB Audio function and allows to
    be used by userspace application that
    may choose to do whatever it wants with the
    data received from the USB Host and choose
    to provide whatever it wants as audio data
    to the USB Host.

    f_uac1 also has capture support (gadget->host)
    thanks to easy implementation via u_audio.
    By default, capture interface has 48000kHz/2ch
    configuration, same as playback channel has.

    f_uac1 descriptors naming convention
    uses f_uac2 driver naming convention that
    makes it more common and meaningful.

    Comparing to f_uac1_legacy, the f_uac1 doesn't
    have volume/mute functionality. This is because
    the f_uac1 volume/mute feature unit was dummy
    implementation since that driver creation (2009)
    and never had any real volume control or mute
    functionality, so there is no any difference
    here.

    Since f_uac1 functionality, exposed
    interface to userspace (virtual ALSA card),
    input parameters are so different comparing
    to f_uac1_legacy, that there is no any
    reason to keep them in the same file/module,
    and separate function was created.

    g_audio can be built using one of existing
    UAC functions (f_uac1, f_uac1_legacy or f_uac2)

    Signed-off-by: Ruslan Bilovol
    Signed-off-by: Felipe Balbi

    Ruslan Bilovol
     
  • Before introducing new f_uac1 function (with virtual
    ALSA card) make current implementation legacy.

    This includes renaming of existing files, some
    variables, config options and documentation

    Signed-off-by: Ruslan Bilovol
    Signed-off-by: Felipe Balbi

    Ruslan Bilovol
     

02 Jun, 2017

1 commit


05 May, 2017

1 commit

  • Pull USB updates from Greg KH:
    "Here is the big USB patchset for 4.12-rc1.

    Lots of good stuff here, after many many many attempts, the kernel
    finally has a working typeC interface, many thanks to Heikki and
    Guenter and others who have taken the time to get this merged. It
    wasn't an easy path for them at all.

    There's also a staging driver that uses this new api, which is why
    it's coming in through this tree.

    Along with that, there's the usual huge number of changes for gadget
    drivers, xhci, and other stuff. Johan also finally refactored pretty
    much every driver that was looking at USB endpoints to do it in a
    common way, which will help prevent any "badly-formed" devices from
    causing problems in drivers. That too wasn't a simple task.

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

    * tag 'usb-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (263 commits)
    staging: typec: Fairchild FUSB302 Type-c chip driver
    staging: typec: Type-C Port Controller Interface driver (tcpci)
    staging: typec: USB Type-C Port Manager (tcpm)
    usb: host: xhci: remove #ifdef around PM functions
    usb: musb: don't mark of_dev_auxdata as initdata
    usb: misc: legousbtower: Fix buffers on stack
    USB: Revert "cdc-wdm: fix "out-of-sync" due to missing notifications"
    usb: Make sure usb/phy/of gets built-in
    USB: storage: e-mail update in drivers/usb/storage/unusual_devs.h
    usb: host: xhci: print correct command ring address
    usb: host: xhci: delete sp_dma_buffers for scratchpad
    usb: host: xhci: using correct specification chapter reference for DCBAAP
    xhci: switch to pci_alloc_irq_vectors
    usb: host: xhci-plat: set resume_quirk() for R-Car controllers
    usb: host: xhci-plat: add resume_quirk()
    usb: host: xhci-plat: enable clk in resume timing
    usb: host: plat: Enable xHCI plat runtime PM
    USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit
    USB: serial: constify static arrays
    usb: fix some references for /proc/bus/usb
    ...

    Linus Torvalds
     

03 May, 2017

1 commit

  • Pull documentation update from Jonathan Corbet:
    "A reasonably busy cycle for documentation this time around. There is a
    new guide for user-space API documents, rather sparsely populated at
    the moment, but it's a start. Markus improved the infrastructure for
    converting diagrams. Mauro has converted much of the USB documentation
    over to RST. Plus the usual set of fixes, improvements, and tweaks.

    There's a bit more than the usual amount of reaching out of
    Documentation/ to fix comments elsewhere in the tree; I have acks for
    those where I could get them"

    * tag 'docs-4.12' of git://git.lwn.net/linux: (74 commits)
    docs: Fix a couple typos
    docs: Fix a spelling error in vfio-mediated-device.txt
    docs: Fix a spelling error in ioctl-number.txt
    MAINTAINERS: update file entry for HSI subsystem
    Documentation: allow installing man pages to a user defined directory
    Doc/PM: Sync with intel_powerclamp code behavior
    zr364xx.rst: usb/devices is now at /sys/kernel/debug/
    usb.rst: move documentation from proc_usb_info.txt to USB ReST book
    convert philips.txt to ReST and add to media docs
    docs-rst: usb: update old usbfs-related documentation
    arm: Documentation: update a path name
    docs: process/4.Coding.rst: Fix a couple of document refs
    docs-rst: fix usb cross-references
    usb: gadget.h: be consistent at kernel doc macros
    usb: composite.h: fix two warnings when building docs
    usb: get rid of some ReST doc build errors
    usb.rst: get rid of some Sphinx errors
    usb/URB.txt: convert to ReST and update it
    usb/persist.txt: convert to ReST and add to driver-api book
    usb/hotplug.txt: convert to ReST and add to driver-api book
    ...

    Linus Torvalds
     

21 Apr, 2017

2 commits


12 Apr, 2017

9 commits


23 Mar, 2017

1 commit

  • The purpose of USB Type-C connector class is to provide
    unified interface for the user space to get the status and
    basic information about USB Type-C connectors on a system,
    control over data role swapping, and when the port supports
    USB Power Delivery, also control over power role swapping
    and Alternate Modes.

    Signed-off-by: Heikki Krogerus
    Reviewed-by: Mika Westerberg
    Reviewed-and-Tested-by: Felipe Balbi
    Tested-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Heikki Krogerus
     

21 Mar, 2017

1 commit

  • Add Documentation/usb/usb3-debug-port.rst. This document includes
    the guide for using USB3 debug port.

    Signed-off-by: Lu Baolu
    Acked-by: Thomas Gleixner
    Cc: Greg Kroah-Hartman
    Cc: Linus Torvalds
    Cc: Mathias Nyman
    Cc: Peter Zijlstra
    Cc: linux-doc@vger.kernel.org
    Cc: linux-usb@vger.kernel.org
    Link: http://lkml.kernel.org/r/1490083293-3792-6-git-send-email-baolu.lu@linux.intel.com
    Signed-off-by: Ingo Molnar

    Lu Baolu
     

23 Feb, 2017

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "A slightly quieter cycle for documentation this time around.

    Three more DocBook template files have been converted to RST; only 21
    to go. There are various build improvements and the usual array of
    documentation improvements and fixes"

    * tag 'docs-4.11' of git://git.lwn.net/linux: (44 commits)
    docs / driver-api: Fix structure references in device_link.rst
    PM / docs: Fix structure references in device.rst
    Add a target to check broken external links in the Documentation
    Documentation: Fix linux-api list typo
    Documentation: DocBook/Makefile comment typo
    Improve sparse documentation
    Documentation: make Makefile.sphinx no-ops quieter
    Documentation: DMA-ISA-LPC.txt
    Documentation: input: fix path to input code definitions
    docs: Remove the copyright year from conf.py
    docs: Fix a warning in the Korean HOWTO.rst translation
    PM / sleep / docs: Convert PM notifiers document to reST
    PM / core / docs: Convert sleep states API document to reST
    PM / core: Update kerneldoc comments in pm.h
    doc-rst: Fix recursive make invocation from macros
    doc-rst: Delete output of failed dot-SVG conversion
    doc-rst: Break shell command sequences on failure
    Documentation/sphinx: make targets independent of Sphinx work for HAVE_SPHINX=0
    doc-rst: fixed cleandoc target when used with O=dir
    Documentation/sphinx: prevent generation of .pyc files in the source tree
    ...

    Linus Torvalds
     

27 Jan, 2017

1 commit


24 Jan, 2017

1 commit

  • There are only two requests for uac2, it may not be enough at high
    loading system which usb interrupt handler can't be serviced on
    time, then the data will be lost since it is isoc transfer for audio.

    In this patch, we introduce a parameter for the number for usb request,
    and the user can override it if current number for request is not enough
    for his/her use case.

    Besides, update this parameter for legacy audio gadget and documentation.

    Signed-off-by: Peter Chen
    Signed-off-by: Felipe Balbi

    Peter Chen
     

23 Jun, 2016

1 commit


05 May, 2016

1 commit


04 May, 2016

1 commit


14 Apr, 2016

1 commit