1. 29 4月, 2016 3 次提交
  2. 13 4月, 2016 2 次提交
  3. 04 3月, 2016 2 次提交
    • A
      phy: twl4030: use __maybe_unused to hide pm functions · 8073fb82
      Arnd Bergmann 提交于
      The twl4030 USB PHY driver uses UNIVERSAL_DEV_PM_OPS to access
      its suspend/resume functions, which causes a warning about
      unused symbols when CONFIG_PM is disabled:
      
      drivers/phy/phy-twl4030-usb.c:394:12: error: 'twl4030_usb_runtime_suspend' defined but not used [-Werror=unused-function]
      drivers/phy/phy-twl4030-usb.c:408:12: error: 'twl4030_usb_runtime_resume' defined but not used [-Werror=unused-function]
      
      This adds __maybe_unused annotations to let the compiler know
      it can silently drop the function definition.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8073fb82
    • A
      phy: dm816x: use __maybe_unused to hide pm functions · 9cea322e
      Arnd Bergmann 提交于
      The dm816x USB PHY driver uses UNIVERSAL_DEV_PM_OPS to access
      its suspend/resume functions, which causes a warning about
      unused symbols when CONFIG_PM is disabled:
      
      drivers/phy/phy-dm816x-usb.c:121:12: error: 'dm816x_usb_phy_runtime_suspend' defined but not used [-Werror=unused-function]
      drivers/phy/phy-dm816x-usb.c:139:12: error: 'dm816x_usb_phy_runtime_resume' defined but not used [-Werror=unused-function]
      
      This adds __maybe_unused annotations to let the compiler know
      it can silently drop the function definition.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9cea322e
  4. 01 3月, 2016 5 次提交
  5. 10 2月, 2016 3 次提交
    • T
      phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload · 58a66dba
      Tony Lindgren 提交于
      If we reload phy-twl4030-usb, we get a warning about unbalanced
      pm_runtime_enable. Let's fix the issue and also fix idling of the
      device on unload before we attempt to shut it down.
      
      If we don't properly idle the PHY before shutting it down on removal,
      the twl4030 ends up consuming about 62mW of extra power compared to
      running idle with the module loaded.
      
      Cc: stable@vger.kernel.org
      Cc: Bin Liu <b-liu@ti.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: NeilBrown <neil@brown.name>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
      58a66dba
    • T
      phy: twl4030-usb: Relase usb phy on unload · b241d31e
      Tony Lindgren 提交于
      Otherwise rmmod omap2430; rmmod phy-twl4030-usb; modprobe omap2430
      will try to use a non-existing phy and oops:
      
      Unable to handle kernel paging request at virtual address b6f7c1f0
      ...
      [<c048a284>] (devm_usb_get_phy_by_node) from [<bf0758ac>]
      (omap2430_musb_init+0x44/0x2b4 [omap2430])
      [<bf0758ac>] (omap2430_musb_init [omap2430]) from [<bf055ec0>]
      (musb_init_controller+0x194/0x878 [musb_hdrc])
      
      Cc: stable@vger.kernel.org
      Cc: Bin Liu <b-liu@ti.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: NeilBrown <neil@brown.name>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
      b241d31e
    • S
      phy: core: fix wrong err handle for phy_power_on · b82fcabe
      Shawn Lin 提交于
      If phy_pm_runtime_get_sync failed but we already
      enable regulator, current code return directly without
      doing regulator_disable. This patch fix this problem
      and cleanup err handle of phy_power_on to be more readable.
      
      Fixes: 3be88125 ("phy: core: Support regulator ...")
      Cc: <stable@vger.kernel.org> # v3.18+
      Cc: Roger Quadros <rogerq@ti.com>
      Cc: Axel Lin <axel.lin@ingics.com>
      Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
      b82fcabe
  6. 03 2月, 2016 1 次提交
  7. 21 12月, 2015 9 次提交
  8. 20 12月, 2015 15 次提交