04 Oct, 2014

2 commits

  • Instead of calling xhci_compliance_mode_recovery_timer_quirk_check() again
    in the PCI suspend path, just check for XHCI_COMP_MODE_QUIRK which will
    have been set based on xhci_compliance_mode_recovery_timer_quirk_check()
    in xhci_init().

    Signed-off-by: Andrew Bresticker
    Signed-off-by: Mathias Nyman
    Signed-off-by: Greg Kroah-Hartman

    Andrew Bresticker
     
  • Since the struct hc_driver is mostly the same across the xhci-pci,
    xhci-plat, and the upcoming xhci-tegra driver, introduce the function
    xhci_init_driver() which will populate the hc_driver with the default
    xHCI operations. The caller must supply a setup function which will
    be used as the hc_driver's reset callback.

    Note that xhci-plat also overrides the default ->start() callback so
    that it can do rcar-specific initialization.

    Signed-off-by: Andrew Bresticker
    Signed-off-by: Mathias Nyman
    Signed-off-by: Greg Kroah-Hartman

    Andrew Bresticker
     

29 Sep, 2014

8 commits

  • Add the generic PHY support, analogous to the USB PHY support. Intended it to be
    used with the PCI EHCI/OHCI drivers and the xHCI platform driver.

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

    Sergei Shtylyov
     
  • The USB PHY member of the HCD structure is renamed to 'usb_phy' and
    modifications are done in all drivers accessing it.
    This is in preparation to adding the generic PHY support.

    Signed-off-by: Antoine Tenart
    [Sergei: added missing 'drivers/usb/misc/lvstest.c' file, resolved rejects,
    updated changelog.]
    Signed-off-by: Sergei Shtylyov
    Acked-by: Alan Stern
    Acked-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Antoine Tenart
     
  • Patch "usb: gadget: uvc: rename functions to avoid conflicts with host uvc"
    renamed a lot of symbols but missed one references that was inside of
    an #ifdef:

    drivers/usb/gadget/function/uvc_v4l2.c:363:23: error: 'uvcg_v4l2_get_unmapped_area' undeclared here (not in a function)
    .get_unmapped_area = uvcg_v4l2_get_unmapped_area,
    ^
    drivers/usb/gadget/function/uvc_v4l2.c:344:22: warning: 'uvc_v4l2_get_unmapped_area' defined but not used [-Wunused-function]
    static unsigned long uvc_v4l2_get_unmapped_area(struct file *file,
    ^

    This renames the reference according the changed function name.

    Signed-off-by: Arnd Bergmann
    Fixes: 7ea95b110811 ("usb: gadget: uvc: rename functions to avoid conflicts with host uvc")
    Cc: Andrzej Pietrasiewicz
    Cc: Michael Grzeschik
    Acked-by: Laurent Pinchart
    Cc: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • The newly added sti ehci and ohci drivers come with a single
    Kconfig entry that does not depend on either of the base drivers,
    which leads to a link error when they are disabled:

    drivers/built-in.o: In function `ohci_platform_init':
    :(.init.text+0x14788): undefined reference to `ohci_init_driver'

    To fix that, this patch introduces two separate Kconfig options
    with proper dependencies, which avoids the problem and is also
    more consistent with the other glue drivers.

    Signed-off-by: Arnd Bergmann
    Fixes: d115837259ada ("usb: host: ohci-st: Add OHCI driver support for ST STB devices")
    Cc: Peter Griffin
    Acked-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • Now that we have completely moved from older USB-PHY drivers
    to newer GENERIC-PHY drivers for PHYs available with USB controllers
    on Exynos series of SoCs, we can remove the support for the same
    in our host drivers too.

    We also defer the probe for our host in case we end up getting
    EPROBE_DEFER error when getting PHYs.

    Signed-off-by: Vivek Gautam
    Acked-by: Jingoo Han
    Acked-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Vivek Gautam
     
  • The current code only returns -ENOTSUPP for OTG host, but in fact,
    embedded host also needs to returns -ENOTSUPP if the peripheral
    is not at TPL.

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

    Peter Chen
     
  • There is no need to init .owner field.

    Based on the patch from Peter Griffin
    "mmc: remove .owner field for drivers using module_platform_driver"

    This patch removes the superflous .owner field for drivers which
    use the module_platform_driver API, as this is overriden in
    platform_driver_register anyway."

    Signed-off-by: Kiran Padwal
    Reviewed-by: Ivan T. Ivanov
    Signed-off-by: Greg Kroah-Hartman

    Kiran Padwal
     
  • Commit 0cce2eda19923e5e5ccc8b042dec5af87b3ffad0
    USB: fix LANGID=0 regression

    defaults to a langid of 0x0409 if it's not properly implemented by the
    device. Explain with a higher level error message what this means.

    Signed-off-by: Scot Doyle
    Signed-off-by: Greg Kroah-Hartman

    Scot Doyle
     

25 Sep, 2014

7 commits

  • With this patch, USB activity can be signaled by blinking a LED. There
    are two triggers, one for activity on USB host and one for USB gadget.

    Both triggers should work with all host/device controllers. Tested only
    with musb.

    Performace: I measured performance overheads on ARM Cortex-A8 (TI
    AM335x) running on 600 MHz.

    Duration of usb_led_activity():
    - with no LED attached to the trigger: 2 ± 1 µs
    - with one GPIO LED attached to the trigger: 2 ± 1 µs or 8 ± 2 µs (two peaks in histogram)

    Duration of functions calling usb_led_activity() (with this patch
    applied and no LED attached to the trigger):
    - __usb_hcd_giveback_urb(): 10 - 25 µs
    - usb_gadget_giveback_request(): 2 - 6 µs

    Signed-off-by: Michal Sojka
    Acked-by: Felipe Balbi
    Tested-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Michal Sojka
     
  • In the next commit, we will want the usb-common module to be composed of
    two object files. Since Kbuild cannot "append" another object to an
    existing one, we need to rename usb-common.c to something
    else (common.c) and create usb-common.o by linking the wanted objects
    together. Currently, usb-common.o comprises only common.o.

    Signed-off-by: Michal Sojka
    Acked-by: Felipe Balbi
    Tested-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Michal Sojka
     
  • Use the recently introduced usb_gadget_giveback_request() in favor of
    direct invocation of the completion routine.

    All places in drivers/usb/ matching "[-.]complete(" were replaced with a
    call to usb_gadget_giveback_request(). This was compile-tested with all
    ARM drivers enabled and runtime-tested for musb.

    Signed-off-by: Michal Sojka
    Acked-by: Felipe Balbi
    Tested-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Michal Sojka
     
  • All USB peripheral controller drivers call completion routines directly.
    This patch adds usb_gadget_giveback_request() which will be used instead
    of direct invocation in the next patch. The goal here is to have a place
    where common functionality can be added.

    Signed-off-by: Michal Sojka
    Acked-by: Felipe Balbi
    Tested-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Michal Sojka
     
  • This patch moves the part of code that initializes the PHY bus width.
    This results in simpler code and removes the need to check whether
    the Generic PHY Framework is used.

    Signed-off-by: Kamil Debski
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Robert Baldyga
    Signed-off-by: Greg Kroah-Hartman

    Kamil Debski
     
  • …/linux-phy into usb-next

    Kishon writes:

    Adds 3 new PHY drivers stih407, stih41x and rcar gen2 PHY. It also
    includes miscellaneous cleanup of other PHY drivers.

    Conflicts:
    MAINTAINERS

    Greg Kroah-Hartman
     
  • …it/johan/usb-serial into usb-next

    Johan writes:

    USB-serial fixes for v3.17

    Here are two more device IDs for v3.17.

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

    Greg Kroah-Hartman
     

24 Sep, 2014

23 commits