Skip to content

Commit 1502fe0

Browse files
esbenalexandrebelloni
authored andcommitted
rtc: tps6586x: Fix initial enable_irq/disable_irq balance
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> Link: https://lore.kernel.org/r/20250516-rtc-uie-irq-fixes-v2-4-3de8e530a39e@geanix.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent e0762fd commit 1502fe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/rtc/rtc-tps6586x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
258258

259259
irq_set_status_flags(rtc->irq, IRQ_NOAUTOEN);
260260

261+
rtc->irq_en = true;
261262
ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
262263
tps6586x_rtc_irq,
263264
IRQF_ONESHOT,

0 commit comments

Comments
 (0)