-
Notifications
You must be signed in to change notification settings - Fork 466
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
base: sunxi-next
Are you sure you want to change the base?
Commits on Dec 19, 2014
-
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>
Configuration menu - View commit details
-
Copy full SHA for ca959fa - Browse repository at this point
Copy the full SHA ca959faView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 1d37729 - Browse repository at this point
Copy the full SHA 1d37729View commit details
Commits on Jan 19, 2015
-
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>
Configuration menu - View commit details
-
Copy full SHA for f7d18a6 - Browse repository at this point
Copy the full SHA f7d18a6View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 6a6bdf5 - Browse repository at this point
Copy the full SHA 6a6bdf5View commit details
Commits on Jan 21, 2015
-
Merge branches 'sunxi/dt-for-3.20', 'sunxi/core-for-3.20' and 'sunxi/…
…defconfig-for-3.20' into sunxi/for-next
Configuration menu - View commit details
-
Copy full SHA for b46cdd0 - Browse repository at this point
Copy the full SHA b46cdd0View commit details -
Merge branch 'sunxi/clocks-for-3.20' into sunxi/for-next
Conflicts: arch/arm/boot/dts/sun7i-a20.dtsi
Configuration menu - View commit details
-
Copy full SHA for 16e8c17 - Browse repository at this point
Copy the full SHA 16e8c17View commit details -
Merge commit '223697107949f90917cb3ea583c551fc18e6afb6' into sunxi-next
Merge thermal zone driver from input git tree
Configuration menu - View commit details
-
Copy full SHA for 957902e - Browse repository at this point
Copy the full SHA 957902eView commit details -
Merge commit '47cf4b326cb31f55b0773023560bbe51aa82aa14' into sunxi-next
Merge the A31s pinctrl driver from pinctrl tree
Configuration menu - View commit details
-
Copy full SHA for 7618175 - Browse repository at this point
Copy the full SHA 7618175View commit details -
Merge remote-tracking branch 'pwm/for-next' into sunxi-next
Merge A10/A20 PWM driver
Configuration menu - View commit details
-
Copy full SHA for d2051a8 - Browse repository at this point
Copy the full SHA d2051a8View commit details
Commits on Jan 27, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 77f18db - Browse repository at this point
Copy the full SHA 77f18dbView commit details
Commits on Feb 19, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 1a55dde - Browse repository at this point
Copy the full SHA 1a55ddeView commit details