Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1184209 > unrolled thread
| Started by | Wang Dongsheng <Dongsheng.Wang@freescale.com> |
|---|---|
| First post | 2015-07-15 04:30 +0200 |
| Last post | 2015-07-15 04:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [PATCH] rtc/ds3232: fix ds3232 get a WARNING trace in resume function Wang Dongsheng <Dongsheng.Wang@freescale.com> - 2015-07-15 04:30 +0200
| From | Wang Dongsheng <Dongsheng.Wang@freescale.com> |
|---|---|
| Date | 2015-07-15 04:30 +0200 |
| Subject | RE: [PATCH] rtc/ds3232: fix ds3232 get a WARNING trace in resume function |
| Message-ID | <pMkCm-2kr-3@gated-at.bofh.it> |
Thanks Belloni. :)
Regards,
-Dongsheng
> -----Original Message-----
> From: Alexandre Belloni [mailto:alexandre.belloni@free-electrons.com]
> Sent: Wednesday, July 15, 2015 6:51 AM
> To: Wang Dongsheng-B40534
> Cc: a.zummo@towertech.it; rtc-linux@googlegroups.com; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH] rtc/ds3232: fix ds3232 get a WARNING trace in resume
> function
>
> Hi,
>
> This seems ok, one small nitpick:
>
> On 07/07/2015 at 14:12:56 +0800, Dongsheng Wang wrote :
> > From: Wang Dongsheng <dongsheng.wang@freescale.com> diff --git
> > a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index
> > 7e48e53..2081155 100644
> > --- a/drivers/rtc/rtc-ds3232.c
> > +++ b/drivers/rtc/rtc-ds3232.c
> > @@ -463,7 +463,10 @@ static int ds3232_suspend(struct device *dev)
> >
> > if (device_can_wakeup(dev)) {
> > ds3232->suspended = true;
> > - irq_set_irq_wake(client->irq, 1);
> > + if (irq_set_irq_wake(client->irq, 1)) {
> > + dev_info(dev, "Cannot serve as a wakeup source\n");
>
> I would use dev_warn_once or dev_info_once here to avoid spamming the log each
> time the machine is suspended.
>
> --
> Alexandre Belloni, Free Electrons
> Embedded Linux, Kernel and Android engineering http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web