1. 18 3月, 2013 20 次提交
  2. 12 3月, 2013 1 次提交
  3. 05 3月, 2013 4 次提交
    • A
      usb: musb: omap2430: fix sparse warning · 4b58ed11
      Aaro Koskinen 提交于
      Fix the following sparse warning:
      
      drivers/usb/musb/omap2430.c:54:33: warning: symbol '_glue' was not \
      	declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4b58ed11
    • A
      usb: musb: omap2430: fix omap_musb_mailbox glue check again · f8c4b0e7
      Aaro Koskinen 提交于
      Commit 80ab72e1 (usb: musb: omap2430: fix the readiness check
      in omap_musb_mailbox) made the check incorrect, as we will lose the
      glue/link status during the normal built-in probe order (twl4030_usb is
      probed after musb omap2430, but before musb core is ready).
      
      As a result, if you boot with USB cable on and load g_ether, the
      connection does not work as the code thinks the cable is off and the
      phy gets powered down immediately. This is a major regression in 3.9-rc1.
      
      So the proper check should be: exit if _glue is NULL, but if it's
      initialized we memorize the status, and then check if the musb core
      is ready.
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      f8c4b0e7
    • F
      usb: musb: fix compile warning · e574d570
      Felipe Balbi 提交于
      When running 100 randconfig iterations, I found
      the following warning:
      
      drivers/usb/musb/musb_core.c: In function ‘musb_init_controller’:
      drivers/usb/musb/musb_core.c:1981:1: warning: label ‘fail5’ defined \
      	but not used [-Wunused-label]
      
      this patch fixes it by removing the unnecessary
      ifdef CONFIG_SYSFS.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e574d570
    • F
      usb: musb: remove all 'select' from Kconfig · 341a71c7
      Felipe Balbi 提交于
      those are quite unnecessary, the only thing
      we need to be careful about is USB_OTG_UTILS
      which get properly selected by PHY drivers.
      
      For now, MUSB will select only USB_OTG_UTILS
      until we add stubs for the cases when PHY
      layer isn't enabled.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      341a71c7
  4. 04 3月, 2013 1 次提交
  5. 09 2月, 2013 1 次提交
  6. 25 1月, 2013 3 次提交
  7. 23 1月, 2013 1 次提交
  8. 18 1月, 2013 1 次提交
    • S
      usb: musb: cppi_dma: drop '__init' annotation · 091a62c9
      Sergei Shtylyov 提交于
      This patch fixes the following:
      
      WARNING: vmlinux.o(.text+0x1e709c): Section mismatch in reference from the funct
      ion dma_controller_create() to the function .init.text:cppi_controller_start()
      The function dma_controller_create() references
      the function __init cppi_controller_start().
      This is often because dma_controller_create lacks a __init
      annotation or the annotation of cppi_controller_start is wrong.
      
      This warning is there due to the deficiency in the commit 07a67bbb (usb: musb:
      Make dma_controller_create __devinit).
      
      Since the start() method is only called from musb_init_controller() which is
      not annotated, drop '__init' annotation from cppi_controller_start() and also
      cppi_pool_init() since it gets called from that function, to avoid another
      section mismatch warning...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: stable@vger.kernel.org # 3.7+
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      091a62c9
  9. 17 1月, 2013 6 次提交
    • S
      usb: musb: omap2430: fix wrong devm_kzalloc() result check · b37457d8
      Sergei Shtylyov 提交于
      Commit 00a0b1d5 (usb: musb: omap: Add device
      tree support for omap musb glue) assigns result of devm_kzalloc() call to
      the 'config' variable but then checks for NULL the 'data' variable (already
      checked after previous call). Thus we risk a kernel oops further when data
      pointed by 'config' is written to by subsequent of_property_read_u32() calls
      iff the allocation happens to fail...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b37457d8
    • M
      usb: musb: fix dependency on transceiver driver · 25736e0c
      Ming Lei 提交于
      This patch let glue driver return -EPROBE_DEFER if the transceiver
      is not readly, so we can support defer probe on musb to fix the
      below error on 3.7-rc5 if transceiver drivers are built as module:
      
      [   19.052490] unable to find transceiver of type USB2 PHY
      [   19.072052] HS USB OTG: no transceiver configured
      [   19.076995] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -19
      [   19.089355] musb-hdrc: probe of musb-hdrc.0.auto rejects match -19
      [   19.096771] driver: 'musb-omap2430': driver_bound: bound to device 'musb-omap2430'
      [   19.105194] bus: 'platform': really_probe: bound device musb-omap2430 to driver musb-omap2430
      [   19.174407] bus: 'platform': add driver twl4030_usb
      [   19.179656] bus: 'platform': driver_probe_device: matched device twl4030_usb with driver twl4030_usb
      [   19.202270] bus: 'platform': really_probe: probing driver twl4030_usb with device twl4030_usb
      [   19.214172] twl4030_usb twl4030_usb: HW_CONDITIONS 0xc0/192; link 3
      [   19.239624] musb-omap2430 musb-omap2430: musb core is not yet ready
      [   19.246765] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
      [   19.254516] driver: 'twl4030_usb': driver_bound: bound to device 'twl4030_usb'
      [   19.263580] bus: 'platform': really_probe: bound device twl4030_usb to driver twl4030_usb
      
      Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
      Cc: <stable@vger.kernel.org> v3.8
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      25736e0c
    • M
      usb: musb: core: fix failure path · 681d1e87
      Ming Lei 提交于
      In the fail1~fail5 failure path, pm_runtime_disable() should
      be called to avoid 'Unbalanced pm_runtime_enable' error in
      next probe() which may be triggered by defer probe or next
      'modprobe musb_hdrc'.
      
      Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
      Cc: <stable@vger.kernel.org> v3.8
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      681d1e87
    • S
      usb: musb: Double buffering issues in host mode TX · a70b8442
      supriya karanth 提交于
      Whenever an URB is programmed for transfer, the TXFIFO
      is flushed. This results in valid packets of the
      previous transfer to get flushed when double buffering
      is enabled (The MUSB_TXCSR_FIFONOTEMPTY bit in TXCSR
      is set indicating that a packet in the FIFO is yet to be sent)
      For ex:- In Host mode Audio, noise is heard in the headset
      when double buffering is enabled on the ISO endpoint.
      The fifo flush is removed for double buffering case.
      The fifo is now flushed only in cases of error or when
      aborting a transfer.
      
      Also, In Host MSC case, data toggle errors are seen when double
      buffering is enabled on the bulk endpoint. Whenever an URB is
      programmed for transfer, the data toggle is set manually
      resulting in data toggle errors on the bus. Leave the data
      toggle handling upto the hardware in the double buffering case.
      Signed-off-by: Nsupriya karanth <supriya.karanth@stericsson.com>
      Signed-off-by: NPraveena NADAHALLY <praveen.nadahally@stericsson.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      a70b8442
    • S
      usb: musb: omap2430: kill redundant assignments in omap2430_probe() · 8df4ce75
      Sergei Shtylyov 提交于
      Commit 00a0b1d5 (usb: musb: omap: Add device
      tree support for omap musb glue) added assignments of the 'ret' variable to
      -ENOMEM on *some* error paths of the calls to devm_kzalloc(), while that
      variable was already pre-initialized for to that value, so these assignments
      were completely redundant. Kill them, fixing overindented string, while at it.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      8df4ce75
    • F
      usb: musb: ux500: use clk_prepare_enable and clk_disable_unprepare · 99d17cfa
      Fabio Baltieri 提交于
      This patch converts the module to use clk_prepare_enable and
      clk_disable_unprepare variants as required by common clock framework.
      
      Without this the system crash during probe function.
      
      Cc: <stable@vger.kernel.org> # v3.7 v3.8
      Signed-off-by: NFabio Baltieri <fabio.baltieri@linaro.org>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      99d17cfa
  10. 10 1月, 2013 2 次提交