Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding USB OTG PHY support for A20-OlinuXino-LIME2 #228

Open
wants to merge 11 commits into
base: sunxi-next
Choose a base branch
from

Commits on Dec 19, 2014

  1. pwm: atmel-hlcdc: Depend on HAVE_CLK

    The include/linux/clk.h header defines dummy implementations for the
    various clk_*() functions if HAVE_CLK is not selected to improve build
    coverage in randconfig builds.
    
    The dummy implementation of clk_get_rate() returns 0, which causes the
    Atmel HLCDC PWM driver's atmel_hlcdc_pwm_config() implementation to end
    up calling:
    
    	do_div(clk_period_ns, 0)
    
    On x86, do_div(n, base) will end up evaluating to this:
    
    	n >>= ilog2(base)
    
    with base = 0, the implementation of ilog2() will call ____ilog2_NaN(),
    which is purposely undefined and results in a linker failure:
    
    	ERROR: "____ilog2_NaN" [drivers/pwm/pwm-atmel-hlcdc.ko] undefined!
    
    The implementation of do_div() checks that base is a power of 2 before
    calling ilog2(). The compiler doesn't optimize this away, presumably
    because is_power_of_2() is an inline function and the compiler doesn't
    or can't inspect it closely enough. ilog2() being a macro it still ends
    up generating the ____ilog2_NaN() because of the constant 0.
    
    The root of the problem is that the driver really should be checking
    before possibly dividing by zero. That should eventually be fixed, but
    for now just assume that the clock runs at a sensible frequency when
    available.
    
    Reported-by: Jim Davis <jim.epost@gmail.com>
    Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
    thierryreding committed Dec 19, 2014
    Configuration menu
    Copy the full SHA
    ca959fa View commit details
    Browse the repository at this point in the history
  2. pwm: atmel-hlcdc: Prevent division by zero

    The slow and system clock should never return a rate of zero, but this
    might happen if the clocks property defined in the DT is referencing the
    wrong clocks.
    
    Prevent any division by zero from happening by testing the clk_freq
    value before calling do_div().
    
    Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
    Boris BREZILLON authored and thierryreding committed Dec 19, 2014
    Configuration menu
    Copy the full SHA
    1d37729 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2015

  1. pwm: Add Allwinner SoC support

    This adds a generic PWM framework driver for the PWM controller
    found on Allwinner SoCs.
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
    Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
    Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
    alexandrebelloni authored and thierryreding committed Jan 19, 2015
    Configuration menu
    Copy the full SHA
    f7d18a6 View commit details
    Browse the repository at this point in the history
  2. pwm: sunxi: document OF bindings

    This is the documentation for the Allwinner SoCs PWM bindings.
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
    Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
    Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
    alexandrebelloni authored and thierryreding committed Jan 19, 2015
    Configuration menu
    Copy the full SHA
    6a6bdf5 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2015

  1. Merge branches 'sunxi/dt-for-3.20', 'sunxi/core-for-3.20' and 'sunxi/…

    …defconfig-for-3.20' into sunxi/for-next
    mripard committed Jan 21, 2015
    Configuration menu
    Copy the full SHA
    b46cdd0 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'sunxi/clocks-for-3.20' into sunxi/for-next

    Conflicts:
    	arch/arm/boot/dts/sun7i-a20.dtsi
    mripard committed Jan 21, 2015
    Configuration menu
    Copy the full SHA
    16e8c17 View commit details
    Browse the repository at this point in the history
  3. Merge commit '223697107949f90917cb3ea583c551fc18e6afb6' into sunxi-next

    Merge thermal zone driver from input git tree
    mripard committed Jan 21, 2015
    Configuration menu
    Copy the full SHA
    957902e View commit details
    Browse the repository at this point in the history
  4. Merge commit '47cf4b326cb31f55b0773023560bbe51aa82aa14' into sunxi-next

    Merge the A31s pinctrl driver from pinctrl tree
    mripard committed Jan 21, 2015
    Configuration menu
    Copy the full SHA
    7618175 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'pwm/for-next' into sunxi-next

    Merge A10/A20 PWM driver
    mripard committed Jan 21, 2015
    Configuration menu
    Copy the full SHA
    d2051a8 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2015

  1. Merge tag 'v3.19-rc6' into sunxi-next

    Linux 3.19-rc6
    mripard committed Jan 27, 2015
    Configuration menu
    Copy the full SHA
    77f18db View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2015

  1. Configuration menu
    Copy the full SHA
    1a55dde View commit details
    Browse the repository at this point in the history