25 Dec, 2016

1 commit


12 Sep, 2016

3 commits


29 Aug, 2016

1 commit

  • The previous fix introduced a check against the ret variable which
    is not defined, hence producing a compilation error:

    linux/drivers/clocksource/timer-atmel-pit.c: In function ‘at91sam926x_pit_dt_init’:
    linux/drivers/clocksource/timer-atmel-pit.c:264:2: error: ‘ret’ undeclared (first use in this function)
    ret = clk_prepare_enable(data->mck);
    ^
    linux/drivers/clocksource/timer-atmel-pit.c:264:2: note: each undeclared identifier is reported only once for each function it appears in

    Add the missing the variable 'ret'.

    Fixes: 504f34c9e45c "clocksource/drivers/atmel-pit: Convert init function to return error"
    Signed-off-by: Daniel Lezcano
    Cc: alexandre.belloni@free-electrons.com
    Cc: motobud@gmail.com
    Cc: realbright@lgcns.com
    Link: http://lkml.kernel.org/r/1472453043-24287-1-git-send-email-daniel.lezcano@linaro.org
    Signed-off-by: Thomas Gleixner

    Daniel Lezcano
     

26 Aug, 2016

1 commit

  • mck is needed to get the PIT working. Explicitly prepare_enable it instead
    of assuming it is enabled.

    This solves an issue where the system is freezing when the ETM/ETB drivers
    are enabled.

    Reported-by: Olivier Schonken
    Reviewed-by: Boris Brezillon
    Acked-by: Nicolas Ferre
    Signed-off-by: Alexandre Belloni
    Signed-off-by: Daniel Lezcano

    Alexandre Belloni
     

28 Jun, 2016

2 commits

  • All the clocksource drivers's init function are now converted to return
    an error code. CLOCKSOURCE_OF_DECLARE is no longer used as well as the
    clksrc-of table.

    Let's convert back the names:
    - CLOCKSOURCE_OF_DECLARE_RET => CLOCKSOURCE_OF_DECLARE
    - clksrc-of-ret => clksrc-of

    Signed-off-by: Daniel Lezcano

    For exynos_mct and samsung_pwm_timer:
    Acked-by: Krzysztof Kozlowski

    For arch/arc:
    Acked-by: Vineet Gupta

    For mediatek driver:
    Acked-by: Matthias Brugger

    For the Rockchip-part
    Acked-by: Heiko Stuebner

    For STi :
    Acked-by: Patrice Chotard

    For the mps2-timer.c and versatile.c changes:
    Acked-by: Liviu Dudau

    For the OXNAS part :
    Acked-by: Neil Armstrong

    For LPC32xx driver:
    Acked-by: Sylvain Lemieux

    For Broadcom Kona timer change:
    Acked-by: Ray Jui

    For Sun4i and Sun5i:
    Acked-by: Chen-Yu Tsai

    For Meson6:
    Acked-by: Carlo Caione

    For Keystone:
    Acked-by: Santosh Shilimkar

    For NPS:
    Acked-by: Noam Camus

    For bcm2835:
    Acked-by: Eric Anholt

    Daniel Lezcano
     
  • The init functions do not return any error. They behave as the following:

    - panic, thus leading to a kernel crash while another timer may work and
    make the system boot up correctly

    or

    - print an error and let the caller unaware if the state of the system

    Change that by converting the init functions to return an error conforming
    to the CLOCKSOURCE_OF_RET prototype.

    Proper error handling (rollback, errno value) will be changed later case
    by case, thus this change just return back an error or success in the init
    function.

    Signed-off-by: Daniel Lezcano

    Daniel Lezcano
     

10 Aug, 2015

2 commits


31 Mar, 2015

1 commit

  • Fix the use of __raw IO accessor with the readl/writel_relaxed()
    versions to allow the code to be used on a system running in big
    endian mode.

    Signed-off-by: Ben Dooks
    Signed-off-by: Daniel Lezcano
    Acked-by: Nicolas Ferre
    Cc: Andrew Victor
    Cc: Jean-Christophe Plagniol-Villard
    Cc: Linux ARM Kernel
    Cc: Thomas Gleixner
    Cc: digetx@gmail.com
    Cc: hdegoede@redhat.com
    Cc: laurent.pinchart+renesas@ideasonboard.com
    Cc: maxime.ripard@free-electrons.com
    Cc: viresh.kumar@linaro.org
    Link: http://lkml.kernel.org/r/1427746633-9137-7-git-send-email-daniel.lezcano@linaro.org
    Signed-off-by: Ingo Molnar

    Ben Dooks
     

03 Dec, 2014

1 commit


15 Sep, 2014

1 commit

  • Now that we don't depend on anyting in the mach-at91 directory, we can just
    move the driver to where it belongs.

    Signed-off-by: Maxime Ripard
    Acked-by: Boris BREZILLON
    Acked-by: Alexandre Belloni
    Acked-by: Daniel Lezcano
    Signed-off-by: Nicolas Ferre

    Conflicts:
    arch/arm/mach-at91/Kconfig
    arch/arm/mach-at91/Makefile

    Maxime Ripard