From: Trent Piepho <tpiepho@impinj.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"alexandre.belloni@free-electrons.com"
<alexandre.belloni@free-electrons.com>,
"pure.logic@nexus-software.ie" <pure.logic@nexus-software.ie>
Cc: "shawn.guo@linaro.org" <shawn.guo@linaro.org>,
"stefan@agner.ch" <stefan@agner.ch>,
"bianpan2016@163.com" <bianpan2016@163.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"guy.shapiro@mobi-wize.com" <guy.shapiro@mobi-wize.com>,
"Frank.Li@freescale.com" <Frank.Li@freescale.com>,
"linux-rtc@vger.kernel.org" <linux-rtc@vger.kernel.org>
Subject: Re: [RESEND] rtc: snvs: Fix usage of snvs_rtc_enable
Date: Thu, 29 Mar 2018 00:12:18 +0000 [thread overview]
Message-ID: <1522282337.10662.268.camel@impinj.com> (raw)
In-Reply-To: <1522264445-2398-1-git-send-email-pure.logic@nexus-software.ie>
On Wed, 2018-03-28 at 20:14 +0100, Bryan O'Donoghue wrote:
> commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces
> the SNVS RTC driver with a function snvs_rtc_enable().
>
> snvs_rtc_enable() can return an error on the enable path however this
> driver does not currently trap that failure on the probe() path and
> consequently if enabling the RTC fails we encounter a later error spinning
> forever in rtc_write_sync_lp().
>
> This patch fixes by parsing the result of rtc_write_sync_lp() and
> propagating both in the probe and elsewhere. If the RTC doesn't start we
> don't proceed loading the driver and don't get into this loop mess later
> on.
>
I sent a patch a couple weeks ago that addressed a similar issue, see
https://patchwork.ozlabs.org/patch/887090/
Does this also fix the problem you see?
I think what you've done will prevent the driver from loading if the
clock is not working, but if the clock does not tick properly after
loading, there are still points (snvs_rtc_read_time for one) that will
lock up in the kernel.
next prev parent reply other threads:[~2018-03-29 0:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 19:14 [RESEND] [PATCH] " Bryan O'Donoghue
2018-03-29 0:12 ` Trent Piepho [this message]
2018-03-29 1:53 ` [RESEND] " Bryan O'Donoghue
2018-03-30 22:59 ` Trent Piepho
2018-04-02 22:51 ` Bryan O'Donoghue
2018-04-03 14:42 ` Alexandre Belloni
2018-03-29 2:18 ` [RESEND] [PATCH] " Shawn Guo
2018-04-03 14:56 ` Alexandre Belloni
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=1522282337.10662.268.camel@impinj.com \
--to=tpiepho@impinj.com \
--cc=Frank.Li@freescale.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=bianpan2016@163.com \
--cc=guy.shapiro@mobi-wize.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=pure.logic@nexus-software.ie \
--cc=shawn.guo@linaro.org \
--cc=stable@vger.kernel.org \
--cc=stefan@agner.ch \
/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
Powered by JetHome