25 Dec, 2016
1 commit
-
There is no point in having an extra type for extra confusion. u64 is
unambiguous.Conversion was done with the following coccinelle script:
@rem@
@@
-typedef u64 cycle_t;@fix@
typedef cycle_t;
@@
-cycle_t
+u64Signed-off-by: Thomas Gleixner
Cc: Peter Zijlstra
Cc: John Stultz
12 Sep, 2016
3 commits
-
Because the PIT is also a proper clocksource, the timekeeping code is
already able to handle lost ticks.Reported-by: Thomas Gleixner
Acked-by: Nicolas Ferre
Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano -
IRQ handlers are running with IRQ disabled for a while, remove wrong
comment and useless test.Acked-by: Nicolas Ferre
Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano -
Merge at91sam926x_pit_common_init in at91sam926x_pit_dt_init as this is the
only initialization method now.Acked-by: Nicolas Ferre
Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
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 inAdd 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
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
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-ofSigned-off-by: Daniel Lezcano
For exynos_mct and samsung_pwm_timer:
Acked-by: Krzysztof KozlowskiFor arch/arc:
Acked-by: Vineet GuptaFor mediatek driver:
Acked-by: Matthias BruggerFor the Rockchip-part
Acked-by: Heiko StuebnerFor STi :
Acked-by: Patrice ChotardFor the mps2-timer.c and versatile.c changes:
Acked-by: Liviu DudauFor the OXNAS part :
Acked-by: Neil ArmstrongFor LPC32xx driver:
Acked-by: Sylvain LemieuxFor Broadcom Kona timer change:
Acked-by: Ray JuiFor Sun4i and Sun5i:
Acked-by: Chen-Yu TsaiFor Meson6:
Acked-by: Carlo CaioneFor Keystone:
Acked-by: Santosh ShilimkarFor NPS:
Acked-by: Noam CamusFor bcm2835:
Acked-by: Eric Anholt -
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 correctlyor
- 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
10 Aug, 2015
2 commits
-
Reported-by: Peter Mamonov
Signed-off-by: Daniel Lezcano -
Migrate atmel driver to the new 'set-state' interface provided by
clockevents core, the earlier 'set-mode' interface is marked obsolete
now.This also enables us to implement callbacks for new states of clockevent
devices, for example: ONESHOT_STOPPED.Cc: Nicolas Ferre
Cc: Alexandre Belloni
Cc: Jean-Christophe Plagniol-Villard
Signed-off-by: Viresh Kumar
Signed-off-by: Daniel Lezcano
Acked-by: Alexandre Belloni
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
03 Dec, 2014
1 commit
-
As AT91 !DT code is now removed, cleanup the PIT clocksource driver.
Signed-off-by: Arnd Bergmann
[nicolas.ferre@atmel.com: split patch]
Signed-off-by: Nicolas Ferre
Acked-by: Maxime Ripard
Cc: Boris BREZILLON
Cc: Daniel Lezcano
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 FerreConflicts:
arch/arm/mach-at91/Kconfig
arch/arm/mach-at91/Makefile