From: sashiko-bot@kernel.org
To: "Andreas Kemnade" <andreas@kemnade.info>
Cc: linux-rtc@vger.kernel.org,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH] rtc: bd70528: properly enable wakeup
Date: Thu, 10 Sep 2026 09:35:32 +0000 [thread overview]
Message-ID: <20260910093533.34D681F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910092558.1008998-1-andreas@kemnade.info>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The return value of devm_pm_set_wake_irq() is ignored, which can result in a silent failure to enable wakeup.
--
commit 145fe15d42adcccef8370937c9cb325de30fe4ff
Author: Andreas Kemnade <andreas@kemnade.info>
rtc: bd70528: properly enable wakeup
This commit specifies the wakeup irq for the RTC alarm to ensure wakeup
works reliably, rather than relying on the power button's wakeup
configuration.
> diff --git a/drivers/rtc/rtc-bd70528.c b/drivers/rtc/rtc-bd70528.c
> index 482810b61495d..dc86882562abd 100644
> --- a/drivers/rtc/rtc-bd70528.c
> +++ b/drivers/rtc/rtc-bd70528.c
[ ... ]
> @@ -320,6 +321,7 @@ static int bd70528_probe(struct platform_device *pdev)
>
> device_set_wakeup_capable(&pdev->dev, true);
> device_wakeup_enable(&pdev->dev);
> + devm_pm_set_wake_irq(&pdev->dev, irq);
[Severity: Medium]
Is it safe to ignore the return value of devm_pm_set_wake_irq() here?
If this fails (for instance, due to -ENOMEM during the internal kzalloc() or
devm_add_action_or_reset() calls), the wakeup IRQ configuration will be
silently aborted.
The probe function would then continue and succeed, leaving the device
without wakeup capabilities. Should this return value be checked and
propagated to prevent a silent failure?
>
> rtc = devm_rtc_allocate_device(&pdev->dev);
> if (IS_ERR(rtc)) {
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910092558.1008998-1-andreas@kemnade.info?part=1
next prev parent reply other threads:[~2026-09-10 9:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 9:25 [PATCH] rtc: bd70528: properly enable wakeup Andreas Kemnade
2026-09-10 9:35 ` sashiko-bot [this message]
2026-09-10 10:28 ` Matti Vaittinen
2026-09-10 14:23 ` Andreas Kemnade
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=20260910093533.34D681F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=andreas@kemnade.info \
--cc=linux-rtc@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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