public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Tian Tao <tiantao6@hisilicon.com>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Linux PM <linux-pm@vger.kernel.org>
Subject: Re: [PATCH] PM / wakeirq: move to use request_irq by IRQF_NO_AUTOEN flag
Date: Fri, 21 May 2021 21:09:45 +0300	[thread overview]
Message-ID: <YKf3aY4Mj/4Nl1v3@atomide.com> (raw)
In-Reply-To: <CAJZ5v0ie_ijC4XVBxnS9tid-q_vbMm6zXwvvOoMMEe20E_mLUQ@mail.gmail.com>

* Rafael J. Wysocki <rafael@kernel.org> [210521 16:57]:
> On Thu, May 20, 2021 at 9:35 AM Tian Tao <tiantao6@hisilicon.com> wrote:
> >
> > request_irq() after setting IRQ_NOAUTOEN as below
> > irq_set_status_flags(irq, IRQ_NOAUTOEN);
> > request_irq(dev, irq...);
> > can be replaced by request_irq() with IRQF_NO_AUTOEN flag.
> >
> > this change is just to simplify the code, no actual functional changes.
> >
> > Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> 
> Tony, what do you think?

Sounds good to me:

Reviewed-by: Tony Lindgren <tony@atomide.com>

> > ---
> >  drivers/base/power/wakeirq.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c
> > index 8e02108..3bad326 100644
> > --- a/drivers/base/power/wakeirq.c
> > +++ b/drivers/base/power/wakeirq.c
> > @@ -182,7 +182,6 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
> >
> >         wirq->dev = dev;
> >         wirq->irq = irq;
> > -       irq_set_status_flags(irq, IRQ_NOAUTOEN);
> >
> >         /* Prevent deferred spurious wakeirqs with disable_irq_nosync() */
> >         irq_set_status_flags(irq, IRQ_DISABLE_UNLAZY);
> > @@ -192,7 +191,8 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
> >          * so we use a threaded irq.
> >          */
> >         err = request_threaded_irq(irq, NULL, handle_threaded_wake_irq,
> > -                                  IRQF_ONESHOT, wirq->name, wirq);
> > +                                  IRQF_ONESHOT | IRQF_NO_AUTOEN,
> > +                                  wirq->name, wirq);
> >         if (err)
> >                 goto err_free_name;
> >
> > --
> > 2.7.4
> >

  reply	other threads:[~2021-05-21 18:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  7:34 [PATCH] PM / wakeirq: move to use request_irq by IRQF_NO_AUTOEN flag Tian Tao
2021-05-21 16:57 ` Rafael J. Wysocki
2021-05-21 18:09   ` Tony Lindgren [this message]
2021-05-24 14:07     ` Rafael J. Wysocki

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=YKf3aY4Mj/4Nl1v3@atomide.com \
    --to=tony@atomide.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=tiantao6@hisilicon.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox