1. 12 2月, 2014 2 次提交
    • P
      USB: ELAN: Remove useless "default M" lines · ea17c7c6
      Paul Bolle 提交于
      The Kconfig entries for USB_U132_HCD and USB_FTDI_ELAN default to
      (uppercase) "M". But in Kconfig (lowercase) "m" is a magic symbol. "M"
      is an ordinary symbol. As "M" is never set these Kconfig symbols will
      also not be set by default.
      
      Since I'm not aware of a reason why these driver should be set by
      default, let's just drop these lines (that basically do nothing).
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ea17c7c6
    • H
      ehci-platform: Change compatible string from usb-ehci to generic-ehci · 915974c3
      Hans de Goede 提交于
      The initial versions of the devicetree enablement patches for ehci-platform
      used "ehci-platform" as compatible string. However this was disliked by various
      reviewers because the platform bus is a Linux invention and devicetree is
      supposed to be OS agnostic. After much discussion I gave up, added a:
      "depends on !PPC_OF" to Kconfig to avoid a known conflict with PPC-OF platforms
      and went with the generic usb-ehci as requested.
      
      In retro-spect I should have chosen something different, the dts files for many
      existing boards already claim to be compatible with "usb-ehci", ie they have:
      
      	compatible = "ti,ehci-omap", "usb-ehci";
      
      In theory this should not be a problem since the "ti,ehci-omap" entry takes
      presedence, but in practice using a conflicting compatible string is an issue,
      because it makes which driver gets used depend on driver registration order.
      
      This patch changes the compatible string claimed by ehci-platform to
      "generic-ehci", avoiding the driver registration / module loading ordering
      problems, and removes the "depends on !PPC_OF" workaround.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Tested-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      915974c3
  2. 08 2月, 2014 1 次提交
    • H
      ehci-platform: Add support for clks and phy passed through devicetree · a4aeb211
      Hans de Goede 提交于
      Currently ehci-platform is only used in combination with devicetree when used
      with some Via socs. By extending it to (optionally) get clks and a phy from
      devicetree, and enabling / disabling those on power_on / off, it can be used
      more generically. Specifically after this commit it can be used for the
      ehci controller on Allwinner sunxi SoCs.
      
      Since ehci-platform is intended to handle any generic enough non pci ehci
      device, add a "usb-ehci" compatibility string.
      
      There already is a usb-ehci device-tree bindings document, update this
      with clks and phy bindings info.
      
      Although actually quite generic so far the via,vt8500 compatibilty string
      had its own bindings document. Somehow we even ended up with 2 of them. Since
      these provide no extra information over the generic usb-ehci documentation,
      this patch removes them.
      
      The ehci-ppc-of.c driver also claims the usb-ehci compatibility string,
      even though it mostly is ibm,usb-ehci-440epx specific. ehci-platform.c is
      not needed on ppc platforms, so add a !PPC_OF dependency to it to avoid
      2 drivers claiming the same compatibility string getting build on ppc.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a4aeb211
  3. 30 10月, 2013 1 次提交
  4. 12 10月, 2013 1 次提交
  5. 27 9月, 2013 10 次提交
  6. 26 9月, 2013 1 次提交
  7. 13 9月, 2013 1 次提交
  8. 15 8月, 2013 1 次提交
  9. 14 8月, 2013 1 次提交
    • X
      xhci: remove CONFIG_USB_XHCI_HCD_DEBUGGING and unused code · b2497509
      Xenia Ragiadakou 提交于
      CONFIG_USB_XHCI_HCD_DEBUGGING option is used to enable
      verbose debugging output for the xHCI host controller
      driver.
      
      In the current version of the xhci-hcd driver, this
      option must be turned on, in order for the debugging
      log messages to be displayed, and users may need to
      recompile the linux kernel to obtain debugging
      information that will help them track down problems.
      
      This patch removes the above debug option to enable
      debugging log messages at all times.
      The aim of this is to rely on the debugfs and the
      dynamic debugging feature for fine-grained management
      of debugging messages and to not force users to set
      the debug config option and compile the linux kernel
      in order to have access in that information.
      
      This patch, also, removes the XHCI_DEBUG symbol and the
      functions dma_to_stream_ring(), xhci_test_radix_tree()
      and xhci_event_ring_work() that are not useful anymore.
      Signed-off-by: NXenia Ragiadakou <burzalodowa@gmail.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      b2497509
  10. 13 8月, 2013 1 次提交
    • D
      usb: Move definition of USB_EHCI_BIG_ENDIAN_MMIO et al. out side of the ifs. · 900e0621
      David Daney 提交于
      When CONFIG_USB_SUPPORT is not selected we get things like:
      
      scripts/kconfig/mconf Kconfig
      warning: (MIPS_SEAD3 && PMC_MSP && CPU_CAVIUM_OCTEON) selects USB_EHCI_BIG_ENDIAN_MMIO which has unmet direct dependencies (USB_SUPPORT && USB)
      
      It is much cleaner to make the various system Kconfigs select
      USB_EHCI_BIG_ENDIAN_MMIO rather than move the system config
      information into USB's Kconfig, but the warnings are annoying.
      
      Eliminate the warning by moving the definition of
      USB_EHCI_BIG_ENDIAN_MMIO outside of all the Kconfig if statements.
      While we are at it move USB_OHCI_BIG_ENDIAN_DESC,
      USB_OHCI_BIG_ENDIAN_MMIO, USB_OHCI_LITTLE_ENDIAN and
      USB_EHCI_BIG_ENDIAN_DESC too, as they could very well suffer similar
      problems for other systems.
      
      Get rid of the redundant "default n" in USB_OHCI_BIG_ENDIAN_DESC and
      USB_OHCI_BIG_ENDIAN_MMIO
      Signed-off-by: NDavid Daney <david.daney@cavium.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      900e0621
  11. 30 7月, 2013 1 次提交
  12. 29 7月, 2013 2 次提交
    • R
      usb: ehci-omap: select NOP_USB_XCEIV PHY driver · 88650d62
      Roger Quadros 提交于
      ehci-omap needs NOP_USB_XCEIV PHY driver to function
      properly, so select it. As the USB PHY drivers no longer
      depend on USB_PHY, it is safe to select the PHY drivers.
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      Tested-by: NAdrien Vergé <adrienverge@gmail.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      88650d62
    • R
      usb: phy: make PHY driver selection possible by controller drivers · 052a11d1
      Roger Quadros 提交于
      Convert PHY Drivers from menuconfig to menu so that the PHY drivers
      can be explicitely selected by the controller drivers.
      
      USB_PHY is no longer a user visible option. It is upto to the PHY
      drivers to select it if needed. This patch does so for the existing
      PHY drivers that use the USB_PHY library.
      
      Doing so moves the USB_PHY and PHY driver selection problem from the
      end user to the PHY and controller driver developer.
      
      e.g.
      
      Earlier, a controller driver (e.g. EHCI_OMAP) that needs to select
      a PHY driver (e.g. NOP_PHY) couldn't do so because the PHY driver
      depended on USB_PHY. Making the controller driver depend on USB_PHY
      has a negative effect i.e. it becomes invisible to the user till
      USB_PHY is enabled. Most end users will not familiar with this.
      
      With this patch, the end user just needs to select the controller driver
      needed for his/her platform without worrying about which PHY driver to
      select.
      
      Also update USB_EHCI_MSM, USB_LPC32XX and USB_OMAP to not depend
      on USB_PHY any more. They can safely select the necessary PHY drivers.
      
      [ balbi@ti.com : refreshed on top of my next branch. Changed bool
      	followed by default n into def_bool n ]
      
      CC: Pavankumar Kondeti <pkondeti@codeaurora.org>
      Acked-by: NRoland Stigge <stigge@antcom.de>
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      052a11d1
  13. 25 7月, 2013 2 次提交
  14. 19 6月, 2013 1 次提交
  15. 18 6月, 2013 1 次提交
  16. 11 6月, 2013 1 次提交
  17. 07 6月, 2013 1 次提交
    • A
      usb: host: make USB_ARCH_HAS_?HCI obsolete · d9ea21a7
      Arnd Bergmann 提交于
      The three options USB_ARCH_HAS_{EHCI,OHCI,XHCI} are all well beyond
      their recommended shelf life. They have caused numerous build failures
      over the years because they are never completely correct, and with
      the move to splitting out the platform specific back-ends out of the
      driver, there is no real need for them any more. Also, the use of making
      USB_ARCH_HAS_HCD depend on it is questionable since one can always enable
      dummy_hc these days.
      
      This patch enables them unconditionally for all platforms and
      architectures, which means it is now possible to build host controller
      drivers for machines that are known not to come with this hardware,
      but that is just how we treat most other drivers.
      
      In order to minimise the impact on existing architecture code and
      defconfig files, all the Kconfig are left present for now. All platforms
      that currently do 'select USB_ARCH_HAS_*' should subsequently be changed
      not to select that. All drivers depending on USB_ARCH_HAS_HCD should
      be changed to depend on USB_SUPPORT instead.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d9ea21a7
  18. 04 6月, 2013 1 次提交
  19. 30 5月, 2013 1 次提交
    • M
      USB: OHCI: make ohci-pci a separate driver · c1117afb
      Manjunath Goudar 提交于
      This patch splits the PCI portion of ohci-hcd out into its
      own separate driver module, called ohci-pci.
      
      The major point of difficulty lies in ohci-pci's many vendor- and
      device-specific workarounds.  Some of them have to be applied before
      calling ohci_start() some after, which necessitates a fair amount of
      code motion.  The other platform drivers require much smaller changes.
      
      The complete sb800_prefetch() function moved to ohci-q.c,because its
      only related to ohci-pci driver.
      
      USB_OHCI_HCD_PCI symbol no longer dependence on STB03xxx, PPC_MPC52xx and
      USB_OHCI_HCD_PPC_OF that's what removed.
      
      V2:
        - few specific content of pci related code in ohci_pci_start function has been moved to ohci_pci_reset
          and rest of the generic code is written in ohci_start of ohci-hcd.c file.
      V3:
       - ohci_restart() has been called in ohci_pci_reset() function for to reset the ohci pci.
      
      V4:
       -sb800_prefetch() moved to ohci-q.c,because its only related to ohci-pci.
       -no longer _creating_ CONFIG_USB_OHCI_PCI,creating CONFIG_USB_OHCI_HCD_PCI.
       -overrides renamed with pci_override,its giving proper meaning.
      
      V5:
       -sb800_prefetch() moved to pci-quirks.c,because its only related to pci.
      
      V6:
       -sb800_prefetch() function has been moved to pci-quirks.c made as separate patch in 2/3.
       -Most of the generic ohci pci changes moved in 2/3 patch,now this is complete  ohci-pci separation patch.
      
      V7:
       -Unrelated include file has been removed from ohci.h file.
      
      V8:
       -USB_OHCI_HCD_PCI symbol does not dependence on STB03xxx, PPC_MPC52xx and USB_OHCI_HCD_PPC_OF.
      Signed-off-by: NManjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c1117afb
  20. 18 5月, 2013 1 次提交
  21. 16 5月, 2013 1 次提交
    • A
      USB: fix Kconfig logic for USB_UHCI_HCD · ccd9509a
      Alan Stern 提交于
      The Kconfig settings for uhci-hcd are too permissive; they allow the
      driver to be built without any bus-glue modules configured
      (USB_UHCI_HCD enabled, PCI disabled, SPARC_LEON disabled, ARCH_VT8500
      enabled, and USB_UHCI_PLATFORM disabled).
      
      This patch fixes the problem by rearranging the dependencies.  Now the
      platform-dependent config options don't depend on USB_UHCI_HCD;
      instead it depends on them.  Furthermore, there is no user-selectable
      choice as to which glue modules will be built.  If USB_UHCI_HCD is
      enabled then all applicable bus glues will be built.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ccd9509a
  22. 26 4月, 2013 1 次提交
    • A
      USB: ehci-msm: USB_MSM_OTG needs USB_PHY · 4626b8da
      Arnd Bergmann 提交于
      The Kconfig entry for USB_EHCI_MSM unconditionally selects USB_MSM_OTG,
      which is now only visible when USB_PHY is also enabled.
      
      This adds an appropriate dependency and enables USB_PHY in the msm
      defconfig, avoiding the Kbuild warning:
      
      warning: (USB_EHCI_MSM) selects USB_MSM_OTG which has unmet direct dependencies (USB_SUPPORT && USB_PHY && (USB || USB_GADGET) && ARCH_MSM)
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Pavankumar Kondeti <pkondeti@codeaurora.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4626b8da
  23. 18 4月, 2013 1 次提交
  24. 10 4月, 2013 5 次提交