1. 11 3月, 2015 18 次提交
  2. 09 3月, 2015 3 次提交
  3. 23 2月, 2015 4 次提交
  4. 05 2月, 2015 1 次提交
    • B
      usb: musb: fix device hotplug behind hub · 9298b4aa
      Bin Liu 提交于
      The commit 889ad3b "usb: musb: try a race-free wakeup" breaks device
      hotplug enumeraitonn when the device is connected behind a hub while usb
      autosuspend is enabled.
      
      Adding finish_resume_work into runtime resume callback fixes the issue.
      
      Also resume root hub is required to resume the bus from runtime suspend,
      so move musb_host_resume_root_hub() back to its original location, where
      handles RESUME interrupt.
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Tested-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9298b4aa
  5. 03 2月, 2015 1 次提交
  6. 30 1月, 2015 3 次提交
    • A
      usb: musb: add omap-control dependency · fbba7db3
      Arnd Bergmann 提交于
      The omap musb front-end calls into the phy driver directly
      instead of using a generic phy interface, which causes a link
      error when the specific driver is not built-in:
      
      drivers/built-in.o: In function `omap2430_musb_disable':
      usb/musb/omap2430.c:480: undefined reference to `omap_control_usb_set_mode'
      drivers/built-in.o: In function `omap2430_musb_enable':
      usb/musb/omap2430.c:466: undefined reference to `omap_control_usb_set_mode'
      usb/musb/omap2430.c:447: undefined reference to `omap_control_usb_set_mode'
      drivers/built-in.o: In function `omap_musb_set_mailbox':
      usb/musb/omap2430.c:273: undefined reference to `omap_control_usb_set_mode'
      usb/musb/omap2430.c:304: undefined reference to `omap_control_usb_set_mode'
      drivers/built-in.o:(.debug_addr+0xbd9e0): more undefined references to `omap_control_usb_set_mode' follow
      
      This adds an explicit dependency.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: ca784be3 ("usb: start using the control module driver")
      Cc: <stable@vger.kernel.org> # v3.9+
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fbba7db3
    • A
      usb: musb: add generic usb phy dependencies · a0cb12e2
      Arnd Bergmann 提交于
      Multiple musb glue drivers depend on the generic usb phy support,
      but fail to list it as a dependency in Kconfig. This results
      in build erros like:
      
      drivers/built-in.o: In function `am35x_remove':
      :(.text+0xadacc): undefined reference to `usb_phy_generic_unregister'
      drivers/built-in.o: In function `am35x_probe':
      :(.text+0xae1c8): undefined reference to `usb_phy_generic_register'
      :(.text+0xae244): undefined reference to `usb_phy_generic_unregister'
      drivers/built-in.o: In function `jz4740_remove':
      :(.text+0xaf648): undefined reference to `usb_phy_generic_unregister'
      drivers/built-in.o: In function `jz4740_musb_init':
      :(.text+0xaf694): undefined reference to `usb_phy_generic_register'
      
      This adds the ones that are missing.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      a0cb12e2
    • P
      usb: musb: gadget: use common is_selfpowered · dadac986
      Peter Chen 提交于
      Delete private selfpowered variable, and use common one.
      Signed-off-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      dadac986
  7. 27 1月, 2015 3 次提交
  8. 25 1月, 2015 1 次提交
  9. 15 1月, 2015 1 次提交
  10. 23 12月, 2014 5 次提交
    • S
      usb: musb: stuff leak of struct usb_hcd · 68693b8e
      Sebastian Andrzej Siewior 提交于
      since the split of host+gadget mode in commit 74c2e936 ("usb: musb:
      factor out hcd initalization") we leak the usb_hcd struct. We call now
      musb_host_cleanup() which does basically usb_remove_hcd() and also sets
      the hcd variable to NULL. Doing so makes the finall call to
      musb_host_free() basically a nop and the usb_hcd remains around for ever
      without anowner.
      This patch drops that NULL assignment for that reason.
      
      Fixes: 74c2e936 ("usb: musb: factor out hcd initalization")
      Cc: <stable@vger.kernel.org> # v3.11+
      Cc: Daniel Mack <zonque@gmail.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      68693b8e
    • T
      usb: musb: Fix randconfig build issues for Kconfig options · c0442479
      Tony Lindgren 提交于
      Commit 82c02f58 ("usb: musb: Allow multiple glue layers to be
      built in") enabled selecting multiple glue layers, which in turn
      exposed things more for randconfig builds. If NOP_USB_XCEIV is
      built-in and TUSB6010 is a loadable module, we will get:
      
      drivers/built-in.o: In function `tusb_remove':
      tusb6010.c:(.text+0x16a817): undefined reference to `usb_phy_generic_unregister'
      drivers/built-in.o: In function `tusb_probe':
      tusb6010.c:(.text+0x16b24e): undefined reference to `usb_phy_generic_register'
      make: *** [vmlinux] Error 1
      
      Let's fix this the same way as commit 70c1ff4b ("usb: musb:
      tusb-dma can't be built-in if tusb is not").
      
      And while at it, let's not allow selecting the glue layers except
      on platforms really using them unless COMPILE_TEST is specified:
      
      - TUSB6010 is in practise only used on omaps
      
      - DSPS is only used on TI platforms
      
      - UX500 is only used on STE platforms
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c0442479
    • R
      usb: musb: Fix a few off-by-one lengths · e87c3f80
      Rasmus Villemoes 提交于
      !strncmp(buf, "force host", 9) is true if and only if buf starts with
      "force hos". This was obviously not what was intended. The same error
      exists for "force full-speed", "force high-speed" and "test
      packet". Using strstarts avoids the error-prone hardcoding of the
      prefix length.
      
      For consistency, also change the other occurences of the !strncmp
      idiom.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e87c3f80
    • F
      usb: musb: blackfin: fix build break · b1d34783
      Felipe Balbi 提交于
      commit cc92f681 (usb: musb: Populate new IO
      functions for blackfin) added a typo which
      prevented MUSB's blackfin glue layer from being
      built. Due to lack of tests and compilers for
      that architecture, the typo ended up being
      merged and causing a build regression.
      
      Fix that here
      
      Cc: Tony Lindgren <tony@atomide.com>
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b1d34783
    • F
      usb: musb: debugfs: cope with blackfin's oddities · 449a7e99
      Felipe Balbi 提交于
      Blackfin's MUSB implementation lacks a bunch of
      registers which they end up not defining a macro
      for. In order to avoid build breaks, let's ifdef
      out some of the registers from our regdump debugfs
      utility so that we don't try to use those on
      Blackfin builds.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      449a7e99