04 Dec, 2010

2 commits

  • Annotate whcrc_id_table as '__used' to fix following warning:

    CC drivers/uwb/whc-rc.o
    drivers/uwb/whc-rc.c:452: warning: ‘whcrc_id_table’ defined but not used

    Signed-off-by: Namhyung Kim
    Cc: David Vrabel
    Signed-off-by: Greg Kroah-Hartman

    Namhyung Kim
     
  • If g_audio fails to open the sound control device, it crashes at removal:

    Insertion:
    [ 4143.836536] g_audio gadget: unable to open sound control device file: /dev/snd/controlC0
    [ 4143.836543] g_audio gadget: we need at least one control device
    [ 4143.836551] g_audio gadget: Linux USB Audio Gadget, version: Dec 18, 2008
    [ 4143.836558] g_audio gadget: g_audio ready

    Removal:
    [ 4146.802643] BUG: unable to handle kernel paging request at 00023018
    [ 4146.802655] IP: [] filp_close+0xa/0x5b
    [ 4146.802674] *pdpt = 0000000015426001 *pde = 0000000000000000
    [ 4146.802684] Oops: 0000 [#1] PREEMPT SMP
    [ 4146.802692] last sysfs file: /sys/power/state
    [ 4146.802701] Modules linked in: g_audio(-) ioh_udc fuse asix usbnet [last unloaded: g_audio]
    [ 4146.802719]
    [ 4146.802728] Pid: 1394, comm: rmmod Not tainted 2.6.33.5-26.1-ivi #1 To be filled by O.E.M./To be filled by O.E.M.
    [ 4146.802738] EIP: 0060:[] EFLAGS: 00010206 CPU: 0
    [ 4146.802746] EIP is at filp_close+0xa/0x5b
    [ 4146.802753] EAX: 00023000 EBX: 00023000 ECX: 00000046 EDX: df842680
    [ 4146.802760] ESI: e071cd4c EDI: df842680 EBP: ddbbbef0 ESP: ddbbbee4
    [ 4146.802768] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
    [ 4146.802776] Process rmmod (pid: 1394, ti=ddbba000 task=dd95a4f0 task.ti=ddbba000)
    [ 4146.802782] Stack:
    [ 4146.802787] d540c280 e071cd4c df2bc000 ddbbbefc e071b82c df11e440 ddbbbf04 e071c622
    [ 4146.802804] ddbbbf28 e071c47f 00000008 e071cd74 df11e464 df2bc01c df2bc000 e071ce68
    [ 4146.802822] 00000880 ddbbbf38 e07fd1b8 e071cef0 00000000 ddbbbf40 e071b9f4 ddbbbf48
    [ 4146.802842] Call Trace:
    [ 4146.802857] [] ? gaudio_cleanup+0x87/0xe0 [g_audio]
    [ 4146.802869] [] ? audio_unbind+0x8/0xc [g_audio]
    [ 4146.802881] [] ? composite_unbind+0x8d/0xcb [g_audio]
    [ 4146.802895] [] ? usb_gadget_unregister_driver+0x7b/0xc0 [ioh_udc]
    [ 4146.802908] [] ? usb_composite_unregister+0x15/0x17 [g_audio]
    [ 4146.802920] [] ? cleanup+0xd/0xf [g_audio]
    [ 4146.802932] [] ? sys_delete_module+0x185/0x1dd
    [ 4146.802944] [] ? do_page_fault+0x248/0x276
    [ 4146.802956] [] ? sysenter_do_call+0x12/0x26
    [ 4146.802962] Code: 12 5f 3a 00 8b 43 04 8b 40 0c 0f b3 30 3b 73 44 73 03 89 73 44 89 f8 e8 f1 61 3a 00 5b 5e 5f 5d c3 55 89 e5 57 89 d7 56 53 89 c3 40 18 85 c0 75 0f 68 32 15 5e c1 31 f6 e8 52 39 3a 00 5a eb
    [ 4146.803058] EIP: [] filp_close+0xa/0x5b SS:ESP 0068:ddbbbee4
    [ 4146.803071] CR2: 0000000000023018
    [ 4146.803112] ---[ end trace 0989a7e023da0434 ]---

    This patch makes sure not to assign the_card if gaudio_open_snd_dev fails,
    since the parent function will deallocate the card.

    Also make sure all filp's in gaudio_open_snd_dev is assigned NULL upon error
    and gaudio_close_snd_dev only cleanups when the filp's are non-NULL.

    Signed-off-by: Richard Röjfors
    Cc: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Richard Röjfors
     

01 Dec, 2010

21 commits

  • …-omap-usb into usb-next

    * 'omap4-ehci-for-greg' of git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb:
    omap4: 4430sdp: enable the ehci port on 4430SDP
    arm: omap4: select USB_ARCH_HAS_EHCI
    arm: omap4: usb: add platform init code for EHCI
    arm: omap4: add USBHOST and related base addresses
    usb: ehci-omap: Add OMAP4 support
    omap: usb: ehci: introduce HSIC mode
    usb: ehci-omap: add helpers for checking port mode
    usb: ehci-omap: use clkdev aliases for functional clocks
    omap: clock: add clkdev aliases for EHCI clocks
    usb: ehci: introduce CONFIG_USB_EHCI_HCD_OMAP
    usb: ehci-omap: don't hard-code TLL channel count
    usb: ehci-omap: update clock names to be more generic

    Greg Kroah-Hartman
     
  • This patch add USB client support Marvell PXA9xx/PXA168 chips. The USB
    controller in PXA9xx/PXA168 is a High-Speed OTG controller. The available
    endpoints is different between PXA9xx and PXA168.

    NOTE:
    It is the first version of Marvell PXA9xx/PXA168 USB controller driver.
    The support for OTG mode will be added in later patch.
    PXA9xx and PXA168 has integrated UTMI PHY in the chips. The initialization
    for the PHY is a little different between PXA9xx and PXA168.

    Signed-off-by: Chao Xie
    Signed-off-by: Greg Kroah-Hartman

    cxie4
     
  • Several of the EHCI glue drivers either predate or were merged in the
    same timeframe as API changes at the USB core level, resulting in some
    missing endpoint_reset and clear_tt_buffer_complete callbacks.

    This fixes up all of ehci-atmel, mxc, w90x900, and xilinx-of to tie in
    the new helpers, which brings them in line with everyone else.

    Reported-by: Alan Stern
    Signed-off-by: Paul Mundt
    Signed-off-by: Greg Kroah-Hartman

    Paul Mundt
     
  • This patch adds test mode support for Langwell gadget driver.

    Signed-off-by: Henry Yuan
    Signed-off-by: Andy Luo
    Signed-off-by: Greg Kroah-Hartman

    Luo Andy
     
  • This patch modifies the composite gadget to set vbus_draw current limitation
    during suspend state. This current limitation in suspend state shouldn't be
    more than 2.5mA

    Signed-off-by: Hao Wu
    Signed-off-by: Greg Kroah-Hartman

    Hao Wu
     
  • Function twl4030_usb_remove can cause unbalanced regulator disables in
    twl4030_phy_power if the cable is not connected. Regulator enable/disable
    calls are in balance only if the twl4030_phy_resume was called prior the
    twl4030_usb_remove, that is, the cable was connected.

    Fix this by checking the 'asleep' variable in twl4030_usb_remove since that
    variable is used to check state in other functions.

    Signed-off-by: Jarkko Nikula
    Cc: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Jarkko Nikula
     
  • Some devices (ex ZTE 2726) simply don't respond at all when data is sent
    to some of their USB interfaces. The data gets stuck in the TTYs queue
    and sits there until close(2), which them blocks because closing_wait
    defaults to 30 seconds (even though the fd is O_NONBLOCK). This is
    rarely desired. Implement the standard mechanism to adjust closing_wait
    and let applications handle it how they want to.

    Signed-off-by: Dan Williams

    Dan Williams
     
  • Hi,

    The [vk][cmz]alloc(_node) family of functions return void pointers which
    it's completely unnecessary/pointless to cast to other pointer types since
    that happens implicitly.

    This patch removes such casts from drivers/usb/

    Signed-off-by: Jesper Juhl

    Jesper Juhl
     
  • Usually the usbmon returns the amount of data specified in
    urb->transfer_buffer_length for output submissions and urb->actual_length
    for input callbacks. However, for Isochronous input transfers, this is
    not enough, since the returned data buffer may contain "holes".

    One easy way to fix this is to use urb->transfer_buffer_length,
    but this often transfers a whole lot of unused data, so we find
    how much was actually used instead.

    Original patch by Márton Németh. See also kernel bug 22182.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Márton Németh
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • The OMAP4 SDP has an SMSC3320 PHY hooked up to EHCI on Port1.
    The PHY power is controlled by GPIO 157.

    Turn on the PHY power, and register the controller at init.

    Signed-off-by: Keshava Munegowda
    Signed-off-by: Anand Gadiyar
    Acked-by: Tony Lindgren

    Keshava Munegowda
     
  • The OMAP4 has an on-chip EHCI controller. Select USB_ARCH_HAS_EHCI
    to allow the EHCI driver to be built on OMAP4.

    Signed-off-by: Anand Gadiyar
    Acked-by: Tony Lindgren

    Anand Gadiyar
     
  • - Add platform init code for EHCI on OMAP4
    - Add pad configuration for PHY and TLL modes

    Signed-off-by: Anand Gadiyar
    Acked-by: Tony Lindgren

    Anand Gadiyar
     
  • Add base addresses for USBHOST, USBTLL, EHCI and OHCI to
    the header file.

    This will disappear when the drivers are converted to use
    the hwmod database, however this patch is needed until then.

    Signed-off-by: Anand Gadiyar
    Acked-by: Tony Lindgren

    Anand Gadiyar
     
  • Update the ehci-omap glue layer to support the controller in the
    OMAP4. Major differences from OMAP3 is that the OMAP4 has per-port
    clocking, and supports ULPI output clocking mode. The old input
    clocking mode is not supported.

    Also, there are only 2 externally available ports as against 3
    in the OMAP3. The third port is internally tied off and should
    not be used.

    Signed-off-by: Keshava Munegowda
    Signed-off-by: Anand Gadiyar

    Anand Gadiyar
     
  • The EHCI controller in OMAP4 supports a new interface mode - HSIC.
    Add this to the list of modes supported on OMAP3.

    Signed-off-by: Anand Gadiyar
    Acked-by: Tony Lindgren

    Anand Gadiyar
     
  • Introduce helper functions to test port mode. These checks are
    performed in several places in the driver, and these helpers
    improve readability.

    Signed-off-by: Anand Gadiyar

    Anand Gadiyar
     
  • Use the recently updated aliases to get functional clocks needed by
    the driver. This allows the driver to acquire OMAP4-specific clocks
    without having to use different clock names for OMAP3 and OMAP4.

    Signed-off-by: Anand Gadiyar

    Anand Gadiyar
     
  • Add clkdev aliases for the USBHOST and USBTLL clocks on OMAP3 and
    OMAP4, so that the driver can refer to the clocks using a common alias.

    This will disappear when the driver is converted to use the hwmod
    database, but until then this patch is needed.

    Signed-off-by: Anand Gadiyar
    Acked-by: Paul Walmsley
    Acked-by: Tony Lindgren

    Anand Gadiyar
     
  • Introduce the CONFIG_USB_EHCI_HCD_OMAP option to select
    EHCI support on OMAP3 and later chips. This scales better
    than having a long line of dependencies for each new OMAP
    with EHCI support.

    Signed-off-by: Keshava Munegowda
    Signed-off-by: Anand Gadiyar

    Keshava Munegowda
     
  • Make the TLL channel count a parameter instead of a hardcoded
    value. This allows us to be flexible with future OMAP revisions
    which could have a different number of channels.

    Signed-off-by: Keshava Munegowda
    Signed-off-by: Anand Gadiyar

    Keshava Munegowda
     
  • Rename usbhost2_120m_fck to usbhost_hs_fck and usbhost1_48m_fck
    to usbhost_fs_fck, to better reflect the clocks' functionalities.

    In OMAP4, the frequencies for the corresponding clocks are not
    necessarily the same as with OMAP3, however the functionalities
    are.

    Signed-off-by: Keshava Munegowda
    Signed-off-by: Anand Gadiyar

    Keshava Munegowda
     

18 Nov, 2010

3 commits


17 Nov, 2010

12 commits

  • This patch (as1434) cleans up the uses of usb_mark_last_busy() in
    usbcore. The function will be called when a device is resumed and
    whenever a usage count is decremented. A call that was missing from
    the hub driver is added: A hub is used whenever one of its ports gets
    suspended (this prevents hubs from suspending immediately after their
    last child).

    In addition, the call to disable autosuspend support for new devices
    by default is moved from usb_detect_quirks() (where it doesn't really
    belong) into usb_new_device() along with all the other runtime-PM
    initializations. Finally, an extra pm_runtime_get_noresume() is added
    to prevent new devices from autosuspending while they are being
    registered.

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

    Alan Stern
     
  • This patch (as1428) converts USB over to the new runtime-PM core
    autosuspend framework. One slightly awkward aspect of the conversion
    is that USB devices will now have two suspend-delay attributes: the
    old power/autosuspend file and the new power/autosuspend_delay_ms
    file. One expresses the delay time in seconds and the other in
    milliseconds, but otherwise they do the same thing. The old attribute
    can be deprecated and then removed eventually.

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

    Alan Stern
     
  • Since the runtime-PM core already defines a .last_busy field in
    device.power, this patch uses it to replace the .last_busy field
    defined in usb_device and uses pm_runtime_mark_last_busy to implement
    usb_mark_last_busy.

    Signed-off-by: Ming Lei
    Reviewed-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Ming Lei
     
  • This patch (as1426) makes use of the new sysfs_merge_group() and
    sysfs_unmerge_group() routines to simplify the handling of power
    attributes for USB devices.

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

    Alan Stern
     
  • Call pm_runtime_no_callbacks to set no_callbacks flag for USB
    interfaces. Since interfaces cannot be power-managed separately from
    their parent devices, there's no reason for the runtime-PM core to
    invoke any callbacks for them.

    Signed-off-by: Ming Lei
    Reviewed-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Ming Lei
     
  • This patch adds the USB device driver of EG20T(Topcliff) PCH.

    EG20T PCH is the platform controller hub that is going to be used in
    Intel's upcoming general embedded platform. All IO peripherals in
    EG20T PCH are actually devices sitting on AMBA bus.
    EG20T PCH has USB device I/F. Using this I/F, it is able to access system
    devices connected to USB device.

    Signed-off-by: Toshiharu Okada
    Acked-by: Michał Nazarewicz
    Signed-off-by: Greg Kroah-Hartman

    Toshiharu Okada
     
  • This commit removes custom printk() wrappers from the f_fs.c
    file. They served little purpose above what pr_*() family of
    macros provides. Only FVDBG() has been left but renamed to
    pr_vdebug() to match other uses.

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

    Michal Nazarewicz
     
  • This commit changes FunctionFS as to make it more compliant
    with coding style as well as fixes several typos.

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

    Michal Nazarewicz
     
  • Using %pR standardizes the struct resource output.

    Signed-off-by: Joe Perches
    Signed-off-by: Greg Kroah-Hartman

    Joe Perches
     
  • Signed-off-by: Joe Perches
    Signed-off-by: Greg Kroah-Hartman

    Joe Perches
     
  • Signed-off-by: Joe Perches
    Acked-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Joe Perches
     
  • This patch adds support for ehci and ohci controller in the SPEAr platform.

    Changes since V2:
    added clear_tt_buffer_complete in ehci_spear_hc_driver

    Signed-off-by: Deepak Sikri
    Signed-off-by: Viresh Kumar
    Signed-off-by: Greg Kroah-Hartman

    Deepak Sikri
     

11 Nov, 2010

2 commits