linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Esben Haabendal <esben@geanix.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: linux-rtc@vger.kernel.org,  linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 Patrice Chotard <patrice.chotard@foss.st.com>
Subject: Re: [PATCH 4/6] rtc: st-lpc: Fix initial enable_irq/disable_irq balance
Date: Tue, 03 Dec 2024 14:37:32 +0100	[thread overview]
Message-ID: <87h67klwf7.fsf@geanix.com> (raw)
In-Reply-To: <202412031325408acbe302@mail.local> (Alexandre Belloni's message of "Tue, 3 Dec 2024 14:25:40 +0100")

Alexandre Belloni <alexandre.belloni@bootlin.com> writes:

> On 03/12/2024 11:45:34+0100, Esben Haabendal wrote:
>> Interrupts are automatically enabled when requested, so we need to
>> initialize irq_enabled accordingly to avoid causing an unbalanced enable
>> warning.
>> 
>> To: Patrice Chotard <patrice.chotard@foss.st.com>
>> Signed-off-by: Esben Haabendal <esben@geanix.com>
>> ---
>>  drivers/rtc/rtc-st-lpc.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st-lpc.c
>> index c6d4522411b312f94de2701ff4ff491e5323aa96..dbc2c23bca23f5de6de3fd4b39c9c67290bfd78d 100644
>> --- a/drivers/rtc/rtc-st-lpc.c
>> +++ b/drivers/rtc/rtc-st-lpc.c
>> @@ -218,6 +218,7 @@ static int st_rtc_probe(struct platform_device *pdev)
>>  		return -EINVAL;
>>  	}
>>  
>> +	rtc->irq_enabled = true;
>>  	ret = devm_request_irq(&pdev->dev, rtc->irq, st_rtc_handler,
>>  			       IRQF_NO_AUTOEN, pdev->name, rtc);
>
> Seeing the IRQF_NO_AUTOEN here, I guess the patch is not correct.

I guess you are right :)
Sorry about that. I only have HW available for testing the rtc-isl12022
driver here.

This patch should be dropped.

>
>>  	if (ret) {
>> 
>> -- 
>> 2.47.1
>> 


  reply	other threads:[~2024-12-03 13:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 10:45 [PATCH 0/6] rtc: Fix problems with missing UIE irqs Esben Haabendal
2024-12-03 10:45 ` [PATCH 1/6] rtc: interface: Fix long-standing race when setting alarm Esben Haabendal
2024-12-03 10:45 ` [PATCH 2/6] rtc: isl12022: Fix initial enable_irq/disable_irq balance Esben Haabendal
2024-12-03 10:45 ` [PATCH 3/6] rtc: cpcap: " Esben Haabendal
2024-12-03 10:45 ` [PATCH 4/6] rtc: st-lpc: " Esben Haabendal
2024-12-03 13:25   ` Alexandre Belloni
2024-12-03 13:37     ` Esben Haabendal [this message]
2024-12-03 10:45 ` [PATCH 5/6] rtc: tps6586x: " Esben Haabendal
2024-12-03 10:45 ` [PATCH 6/6] rtc: interface: Ensure alarm irq is enabled when UIE is enabled Esben Haabendal
2024-12-04  8:09 ` [PATCH 0/6] rtc: Fix problems with missing UIE irqs Esben Haabendal

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=87h67klwf7.fsf@geanix.com \
    --to=esben@geanix.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=patrice.chotard@foss.st.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;
as well as URLs for NNTP newsgroup(s).