Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1620209

Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable()

From Tony Lindgren <tony@atomide.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable()
Date 2017-04-10 18:20 +0200
Message-ID <tuKcQ-2ZH-63@gated-at.bofh.it> (permalink)
References <tuDXI-7jz-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* 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
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable() Martin Kepplinger <martin.kepplinger@ginzinger.com> - 2017-04-10 11:40 +0200
  Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and  local_irq_enable() Tony Lindgren <tony@atomide.com> - 2017-04-10 18:20 +0200
  Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and  local_irq_enable() Aaro Koskinen <aaro.koskinen@iki.fi> - 2017-04-12 22:20 +0200
    Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and  local_irq_enable() Martin Kepplinger <martin.kepplinger@ginzinger.com> - 2017-04-19 08:20 +0200
  Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and  local_irq_enable() Lee Jones <lee.jones@linaro.org> - 2017-04-24 14:00 +0200

csiph-web