From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
linux-pwm@vger.kernel.org, linux-watchdog@vger.kernel.org,
Thierry Reding <thierry.reding@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
Wim Van Sebroeck <wim@iguana.be>
Subject: [PATCH v4 0/4] ARM: at91: Properly handle slow clock
Date: Sun, 16 Aug 2015 11:23:42 +0200 [thread overview]
Message-ID: <1439717026-30634-1-git-send-email-alexandre.belloni@free-electrons.com> (raw)
Hi,
It was discovered that all the slow clock user were not properly claiming it.
This can end up in a system hang because the last registered user is releasing
it, and it gets disabled.
commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system hang")
was a workaround. This series is adding the slow clock to the necessary drivers
to avoid the issue and then removes that workaround.
Changes in v4:
- enable slow_clk before t2_clk in tcb_clksrc.c
- properly disable slow_clk in the error path of atmel_tcb_pwm_probe()
- added Daniel's acks
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-pwm@vger.kernel.org
Cc: linux-watchdog@vger.kernel.org
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wim Van Sebroeck <wim@iguana.be>
Alexandre Belloni (2):
watchdog: at91sam9: get and use slow clock
clocksource: atmel-st: get and use slow clock
Boris Brezillon (2):
clocksource: tcb_clksrc: fix setup_clkevents error path
misc: atmel_tclib: get and use slow clock
drivers/clocksource/tcb_clksrc.c | 12 ++++++++++--
drivers/clocksource/timer-atmel-st.c | 31 ++++++++++++++++++++++---------
drivers/misc/atmel_tclib.c | 4 ++++
drivers/pwm/pwm-atmel-tcb.c | 26 +++++++++++++++++++-------
drivers/watchdog/at91sam9_wdt.c | 22 ++++++++++++++++++++--
include/linux/atmel_tc.h | 1 +
6 files changed, 76 insertions(+), 20 deletions(-)
--
2.1.4
next reply other threads:[~2015-08-16 9:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-16 9:23 Alexandre Belloni [this message]
2015-08-16 9:23 ` [PATCH v4 1/4] watchdog: at91sam9: get and use " Alexandre Belloni
2015-08-16 9:23 ` [PATCH v4 2/4] clocksource: atmel-st: " Alexandre Belloni
2015-08-16 9:23 ` [PATCH v4 3/4] clocksource: tcb_clksrc: fix setup_clkevents error path Alexandre Belloni
2015-08-16 9:23 ` [PATCH v4 4/4] misc: atmel_tclib: get and use slow clock Alexandre Belloni
2015-08-19 21:24 ` Daniel Lezcano
2015-10-05 15:27 ` Thierry Reding
2015-10-05 16:58 ` Alexandre Belloni
2015-10-06 7:33 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439717026-30634-1-git-send-email-alexandre.belloni@free-electrons.com \
--to=alexandre.belloni@free-electrons.com \
--cc=boris.brezillon@free-electrons.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=tglx@linutronix.de \
--cc=thierry.reding@gmail.com \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®