The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
Перейти к файлу
Tony Lindgren 164805157f clocksource/drivers/timer-ti-dm: Do reset before enable
Commit 6cfcd5563b ("clocksource/drivers/timer-ti-dm: Fix suspend and
resume for am3 and am4") exposed a new issue for type2 dual mode timers
on at least omap5 where the clockevent will stop when the SoC starts
entering idle states during the boot.

Turns out we are wrongly first enabling the system timer and then
resetting it, while we must also re-enable it after reset. The current
sequence leaves the timer module in a partially initialized state. This
issue went unnoticed earlier with ti-sysc driver reconfiguring the timer
module until we fixed the issue of ti-sysc reconfiguring system timers.

Let's fix the issue by calling dmtimer_systimer_enable() from reset for
both type1 and type2 timers, and switch the order of reset and enable in
dmtimer_systimer_setup(). Let's also move dmtimer_systimer_enable() and
dmtimer_systimer_disable() to do this without adding forward declarations.

Fixes: 6cfcd5563b ("clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4")
Reported-by: H. Nikolaus Schaller" <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200817092428.6176-1-tony@atomide.com
2020-08-24 13:01:39 +02:00
Documentation It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
LICENSES
arch lib/vdso: Allow to add architecture-specific vdso data 2020-08-06 10:57:30 +02:00
block
certs
crypto It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
drivers clocksource/drivers/timer-ti-dm: Do reset before enable 2020-08-24 13:01:39 +02:00
fs It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
include lib/vdso: Allow to add architecture-specific vdso data 2020-08-06 10:57:30 +02:00
init It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
ipc
kernel time: Delete repeated words in comments 2020-08-10 22:14:07 +02:00
lib vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
mm It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
net It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
samples It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
scripts It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
security cap-checkpoint-restore-v5.9 2020-08-04 15:02:07 -07:00
sound
tools It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
Makefile
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.