06 Mar, 2016

1 commit


04 Mar, 2016

2 commits

  • 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: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    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: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     

01 Mar, 2016

5 commits

  • The phy-armada375-usb2 driver uses IOMEM functions so COMPILE_TEST && OF
    build failed with:

    drivers/built-in.o: In function `armada375_usb_phy_probe':
    phy-armada375-usb2.c:(.text+0x121d): undefined reference to
    `devm_ioremap_resource'

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Kishon Vijay Abraham I

    Krzysztof Kozlowski
     
  • Since the related driver (CPG/MSSR driver) only manages the first module
    clock, this driver should not handle the HSUSB registers. So, this patch
    removes the HSUSB registers handling.

    Signed-off-by: Yoshihiro Shimoda
    Acked-by: Rob Herring
    Signed-off-by: Kishon Vijay Abraham I

    Yoshihiro Shimoda
     
  • Most newer Rockchip SoCs provide the possibility to use a usb-phy
    as passthrough for the debug uart (uart2), making it possible to
    for example get console output without needing to open the device.

    This patch adds an early_initcall to enable this functionality
    conditionally via the commandline and also disables the corresponding
    usb controller in the devicetree.

    Currently only data for the rk3288 is provided, but at least the
    rk3188 and arm64 rk3368 also provide this functionality and will be
    enabled later.

    On a spliced usb cable the signals are tx on white wire(D+) and
    rx on green wire(D-).

    The one caveat is that currently the reconfiguration of the phy
    happens as early_initcall, as the code depends on the unflattened
    devicetree being available. Everything is fine if only a regular
    console is active as the console-replay will happen after the
    reconfiguation. But with earlycon active output up to smp-init
    currently will get lost.

    The phy is an optional property for the connected dwc2 controller,
    so we still provide the phy device but fail all phy-ops with -EBUSY
    to make sure the dwc2 does not try to transmit anything on the
    repurposed phy.

    Signed-off-by: Heiko Stuebner
    Signed-off-by: Kishon Vijay Abraham I

    Heiko Stuebner
     
  • Add phy driver for the Rockchip DisplayPort PHY module. This
    is required to get DisplayPort working in Rockchip SoCs.

    Signed-off-by: Yakir Yang
    Reviewed-by: Heiko Stuebner
    Signed-off-by: Kishon Vijay Abraham I

    Yakir Yang
     
  • This patch to add a generic PHY driver for ROCKCHIP eMMC PHY.
    Access the PHY via registers provided by GRF (general register
    files) module.

    Signed-off-by: Shawn Lin
    Signed-off-by: Kishon Vijay Abraham I

    Shawn Lin
     

10 Feb, 2016

3 commits

  • 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
    Cc: Felipe Balbi
    Cc: Kishon Vijay Abraham I
    Cc: NeilBrown
    Signed-off-by: Tony Lindgren
    Signed-off-by: Kishon Vijay Abraham I

    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
    ...
    [] (devm_usb_get_phy_by_node) from []
    (omap2430_musb_init+0x44/0x2b4 [omap2430])
    [] (omap2430_musb_init [omap2430]) from []
    (musb_init_controller+0x194/0x878 [musb_hdrc])

    Cc: stable@vger.kernel.org
    Cc: Bin Liu
    Cc: Felipe Balbi
    Cc: Kishon Vijay Abraham I
    Cc: NeilBrown
    Signed-off-by: Tony Lindgren
    Signed-off-by: Kishon Vijay Abraham I

    Tony Lindgren
     
  • 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: 3be88125d85d ("phy: core: Support regulator ...")
    Cc: # v3.18+
    Cc: Roger Quadros
    Cc: Axel Lin
    Signed-off-by: Shawn Lin
    Signed-off-by: Kishon Vijay Abraham I

    Shawn Lin
     

03 Feb, 2016

1 commit


27 Dec, 2015

2 commits

  • …linux-phy into usb-next

    Kishon writes:

    phy: for 4.5

    *) new PHY driver for hi6220 usb and rcar gen3 usb2
    *) deprecate phy-omap-control driver. phy-omap-control driver was added
    when there was no proper infrastructure for doing control module
    initialization. The phy-omap-control driver is not an 'actual' PHY
    driver and it was just a hack to do PHY related control module
    initialization. Now with SYSCON framework in the kernel, control
    module setttings can be done using APIs provided by syscon.
    *) usbphy-internal pll creates the needed 480MHz and is also a
    supply-clock back to the core clock-controller in Rockchip SoCs.
    This is now modeled as a real clock.
    *) calibrate mt65xx usb3 PHY for better eye diagram and receiver
    sensitivity.
    *) Miscellaneous cleanups.

    Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

    Greg Kroah-Hartman
     
  • Felipe writes:

    usb: patches for v4.5

    A ton of improvements to dwc2 have been made. The
    driver should be a lot more stable on v4.5 then ever
    before.

    Our good old dwc3 got a few cleanups and misc fixes
    and also added support to Xilinx's integration of
    this IP.

    Yoshihiro Shimoda gives us support for a new USB3
    peripheral controller from Renesas.

    Other than these, the usual misc fixes all over the
    place.

    Greg Kroah-Hartman
     

21 Dec, 2015

9 commits


20 Dec, 2015

17 commits