From: Jon Hunter <jonathanh@nvidia.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Esben Haabendal <esben@geanix.com>,
linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH v2 4/5] rtc: tps6586x: Fix initial enable_irq/disable_irq balance
Date: Thu, 30 Oct 2025 09:07:19 +0000 [thread overview]
Message-ID: <3f3d2d41-652f-4c30-b553-e52b9f5e373e@nvidia.com> (raw)
In-Reply-To: <2025102910393819d18ad0@mail.local>
On 29/10/2025 10:39, Alexandre Belloni wrote:
> On 29/10/2025 09:20:17+0000, Jon Hunter wrote:
>> Hi Esben,
>>
>> On 16/05/2025 08:23, Esben Haabendal wrote:
>>> Interrupts are automatically enabled when requested, so we need to
>>> initialize irq_en accordingly to avoid causing an unbalanced enable
>>> warning.
>>>
>>> Signed-off-by: Esben Haabendal <esben@geanix.com>
>>> ---
>>> drivers/rtc/rtc-tps6586x.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c
>>> index 54c8429b16bfcc692b1f4d5404f0c42f720e93b4..76ecf7b798f0de22aa89a552a263b473ab3065ef 100644
>>> --- a/drivers/rtc/rtc-tps6586x.c
>>> +++ b/drivers/rtc/rtc-tps6586x.c
>>> @@ -258,6 +258,7 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
>>> irq_set_status_flags(rtc->irq, IRQ_NOAUTOEN);
>>> + rtc->irq_en = true;
>>> ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
>>> tps6586x_rtc_irq,
>>> IRQF_ONESHOT,
>>>
>>
>> I have bisected a suspend regression on one of our Tegra20 boards (that uses
>> this driver) and bisect is pointing to this commit. Reverting this commit
>> fixes the problem.
>>
>> Looking at the above I see that the flag IRQ_NOAUTOEN is being set and so
>> now with your change we never enable the interrupt. Hence, the wake-ups are
>> now broken and suspend testing fails. So it would seem best to revert this.
>>
>> BTW, I looked at the change to the CPCAP driver and that driver actively
>> disables the IRQ after requesting it and so I am wondering if that will also
>> have alarm issues? I don't have a board with CPCAP to test.
>>
>
> That's right, I guess you can send reverts.
You guessed right! I certainly can. I am happy to send a revert for this
because I can clearly test and verify this. I am not sure if you and
Esben want to review the rest of the series.
Jon
--
nvpublic
next prev parent reply other threads:[~2025-10-30 9:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-16 7:23 [PATCH v2 0/5] rtc: Fix problems with missing UIE irqs Esben Haabendal
2025-05-16 7:23 ` [PATCH v2 1/5] rtc: interface: Fix long-standing race when setting alarm Esben Haabendal
2025-05-16 7:23 ` [PATCH v2 2/5] rtc: isl12022: Fix initial enable_irq/disable_irq balance Esben Haabendal
2025-05-16 7:23 ` [PATCH v2 3/5] rtc: cpcap: " Esben Haabendal
2025-05-16 7:23 ` [PATCH v2 4/5] rtc: tps6586x: " Esben Haabendal
2025-10-29 9:20 ` Jon Hunter
2025-10-29 10:39 ` Alexandre Belloni
2025-10-30 9:07 ` Jon Hunter [this message]
2025-05-16 7:23 ` [PATCH v2 5/5] rtc: interface: Ensure alarm irq is enabled when UIE is enabled Esben Haabendal
2025-10-11 16:21 ` [PATCH v2 0/5] rtc: Fix problems with missing UIE irqs Alexandre Belloni
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=3f3d2d41-652f-4c30-b553-e52b9f5e373e@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=alexandre.belloni@bootlin.com \
--cc=esben@geanix.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
/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