From: Tony Lindgren <tony@atomide.com>
To: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Cc: lee.jones@linaro.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org,
Henri Roosen <henri.roosen@ginzinger.com>,
Aaro Koskinen <aaro.koskinen@iki.fi>
Subject: Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable()
Date: Mon, 10 Apr 2017 09:17:12 -0700 [thread overview]
Message-ID: <20170410161711.GC5339@atomide.com> (raw)
In-Reply-To: <1491817038-4956-1-git-send-email-martin.kepplinger@ginzinger.com>
* Martin Kepplinger <martin.kepplinger@ginzinger.com> [170410 02:40]:
> Since
>
> commit e6229bec25be ("rtc: make rtc_update_irq callable with irqs enabled")
>
> rtc_update_irq() is callable with irqs enabled, see the rtc drivers.
> So update this accordingly.
Adding Aaro to Cc, would be nice to get an ack from him.
Regards,
Tony
> Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
> Cc: Henri Roosen <henri.roosen@ginzinger.com>
> ---
> drivers/mfd/menelaus.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c
> index a4a8f1e..29b7164 100644
> --- a/drivers/mfd/menelaus.c
> +++ b/drivers/mfd/menelaus.c
> @@ -1022,9 +1022,7 @@ static int menelaus_set_alarm(struct device *dev, struct rtc_wkalrm *w)
> static void menelaus_rtc_update_work(struct menelaus_chip *m)
> {
> /* report 1/sec update */
> - local_irq_disable();
> rtc_update_irq(m->rtc, 1, RTC_IRQF | RTC_UF);
> - local_irq_enable();
> }
>
> static int menelaus_ioctl(struct device *dev, unsigned cmd, unsigned long arg)
> @@ -1086,9 +1084,7 @@ static const struct rtc_class_ops menelaus_rtc_ops = {
> static void menelaus_rtc_alarm_work(struct menelaus_chip *m)
> {
> /* report alarm */
> - local_irq_disable();
> rtc_update_irq(m->rtc, 1, RTC_IRQF | RTC_AF);
> - local_irq_enable();
>
> /* then disable it; alarms are oneshot */
> the_menelaus->rtc_control &= ~RTC_CTRL_AL_EN;
> --
> 2.1.4
>
next prev parent reply other threads:[~2017-04-10 16:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-10 9:37 [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable() Martin Kepplinger
2017-04-10 9:37 ` Martin Kepplinger
2017-04-10 16:17 ` Tony Lindgren [this message]
2017-04-12 20:15 ` Aaro Koskinen
2017-04-19 6:10 ` Martin Kepplinger
2017-04-19 6:10 ` Martin Kepplinger
2017-04-24 11:51 ` Lee Jones
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=20170410161711.GC5339@atomide.com \
--to=tony@atomide.com \
--cc=aaro.koskinen@iki.fi \
--cc=henri.roosen@ginzinger.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=martin.kepplinger@ginzinger.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.