1. 28 5月, 2015 1 次提交
    • A
      usb: phy: add static inline wrapper for devm_usb_get_phy_by_node · 307c858b
      Arnd Bergmann 提交于
      The newly introduced devm_usb_get_phy_by_node function only has
      an extern declaration, but no alternative for the case that
      CONFIG_USB_PHY is disabled, which leads to a build error when
      it is used anyway:
      
      drivers/power/twl4030_charger.c: In function 'twl4030_bci_probe':
      drivers/power/twl4030_charger.c:648:23: error: implicit declaration of function 'devm_usb_get_phy_by_node' [-Werror=implicit-function-declaration]
          bci->transceiver = devm_usb_get_phy_by_node(
      
      This adds the wrapper in the same way that we have one for
      all other usb-phy API functions.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: e842b84c ("usb: phy: Add interface to get phy give of device_node.")
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      307c858b
  2. 26 5月, 2015 1 次提交
    • N
      usb: phy: Add interface to get phy give of device_node. · e842b84c
      NeilBrown 提交于
      Split the "get phy from device_node" functionality out of
      "get phy by phandle" so it can be used directly.
      
      This is useful when a battery-charger is intimately associated with a
      particular phy but handled by a separate driver.  The charger
      can find the device_node based on sibling relationships
      without the need for a redundant declaration in the devicetree
      description.
      
      As a peripheral that gets a phy will often want to register a
      notifier block, and de-register it later, that functionality
      is included so the de-registration is automatic.
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e842b84c
  3. 13 1月, 2015 1 次提交
  4. 21 11月, 2014 1 次提交
    • K
      usb: phy: introduce usb_phy_set_event interface · df9f7b31
      Kiran Raparthy 提交于
      PHY drivers require a generic interface to handle per-PHY events.
      
      usb_phy_set_event interface sets event to phy event.
      PHY drivers call this interface for each phy event.
      
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-usb@vger.kernel.org
      Cc: Android Kernel Team <kernel-team@android.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Arve Hj�nnev�g <arve@android.com>
      Cc: Benoit Goby <benoit@android.com>
      [Original patch in Android from Todd]
      Cc: Todd Poynor <toddpoynor@google.com>
      Signed-off-by: NKiran Raparthy <kiran.kumar@linaro.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      df9f7b31
  5. 04 11月, 2014 1 次提交
  6. 06 3月, 2014 1 次提交
  7. 29 7月, 2013 1 次提交
  8. 18 6月, 2013 1 次提交
  9. 18 3月, 2013 3 次提交
    • F
      usb: phy: return -ENXIO when PHY layer isn't enabled · b7fa5c2a
      Felipe Balbi 提交于
      in cases where PHY layer isn't enabled, we want
      to still return an error code (actually an error
      pointer) so that our users don't need to cope with
      either error pointer of NULL.
      
      This will simplify users as below:
      
      -	return IS_ERR(phy) ? PTR_ERR(phy) : -ENODEV;
      +	return PTR_ERR(phy);
      Acked-by: NKishon Vijay Abraham I <kishon@ti.com>
      Reported-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b7fa5c2a
    • F
      usb: phy: introduce ->set_vbus() method · b774212e
      Felipe Balbi 提交于
      this method will be used to enable or disable
      the charge pump.
      
      Whenever we have DRD devices, we need to be
      able to turn VBUS on or off whenever we want.
      
      Note that in the ideal case, this would be
      controlled by the ID-pin Interrupt, but not
      all devices have ID-pin properly routed since
      manufacturers can choose to save that trace
      if they're building a host-only product out
      of a DRD IP.
      
      This is also useful during debugging where
      we might not have the proper cable hanging
      around.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b774212e
    • F
      usb: phy: make it a menuconfig · edc7cb2e
      Felipe Balbi 提交于
      We already have a considerable amount of USB
      PHY drivers, making it a menuconfig just
      prevents us from adding too much churn to
      USB's menuconfig.
      
      While at that, also select USB_OTG_UTILS from
      this new menuconfig just to keep backwards
      compatibility until we manage to remove
      that symbol.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      edc7cb2e
  10. 25 1月, 2013 3 次提交
  11. 16 11月, 2012 1 次提交
  12. 06 9月, 2012 1 次提交
    • V
      usb: phy: fix build break · a4c3ddec
      Venu Byravarasu 提交于
      During phy interface separation from otg.h, as the enum "usb_otg_state"
      was having multiple otg states info and removal of member 'state'
      of this enum type from usb_phy struct did not generate any compilation
      issues, I removed member state from struct usb_phy.
      
      As this is causing build break in musb code, adding member 'state'
      to usb_phy structure.
      Signed-off-by: NVenu Byravarasu <vbyravarasu@nvidia.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      a4c3ddec
  13. 05 9月, 2012 1 次提交
  14. 03 8月, 2012 1 次提交
  15. 10 7月, 2012 1 次提交
  16. 25 6月, 2012 3 次提交
  17. 11 4月, 2012 1 次提交
  18. 27 2月, 2012 2 次提交
  19. 13 2月, 2012 3 次提交
  20. 07 5月, 2011 1 次提交
  21. 03 5月, 2011 1 次提交
  22. 18 2月, 2011 2 次提交
  23. 11 12月, 2010 1 次提交
  24. 23 10月, 2010 1 次提交
  25. 11 8月, 2010 2 次提交
  26. 03 3月, 2010 1 次提交
    • F
      USB: otg: add notifier support · e9a20171
      Felipe Balbi 提交于
      The notifier will be used to communicate usb events
      to other drivers like the charger chip.
      
      This can be used as source of information to kick
      usb charger detection as described by the USB
      Battery Charging Specification 1.1 and/or to
      pass bMaxPower field of selected usb_configuration
      to charger chip in order to use that information
      as input current on the charging profile
      setup.
      Signed-off-by: NFelipe Balbi <felipe.balbi@nokia.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e9a20171
  27. 20 2月, 2010 1 次提交
  28. 12 12月, 2009 1 次提交
    • D
      USB OTG: add support for ulpi connected external transceivers · 91c8a5a9
      Daniel Mack 提交于
      This adds support for OTG transceivers directly connected to the ULPI
      interface. In particular, the following details are added
      
      - a struct for low level io functions (read/write)
      - a priv field to be used as 'viewport' by low level access functions
      - an (*init) and (*shutdown) callbacks, along with static inline helpers
      - a (*set_vbus) callback to switch the port power on and off
      - a flags field for per-transceiver settings
      - some defines for the flags bitmask to configure platform specific
        details
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Cc: Heikki Krogerus <ext-heikki.krogerus@nokia.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      91c8a5a9
  29. 16 6月, 2009 1 次提交
新手
引导
客服 返回
顶部