From: Joshua Crofts <crofts@kernel.org>
To: Wanhui Fu <fuwh1120@163.com>,
jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com,
andy@kernel.org, bhelgaas@google.com,
giorgitchankvetadze1997@gmail.com, o-takashi@sakamocchi.jp,
kees+treewide@kernel.org, u.kleine-koenig@baylibre.com
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH v3 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ
Date: Mon, 30 Nov 2026 10:13:17 +0100 [thread overview]
Message-ID: <8fbc4b54-10de-4da4-a080-8c2d7a94d5e4@kernel.org> (raw)
In-Reply-To: <20261130030359.2144888-2-fuwh1120@163.com>
On 30-Nov-26 4:03, Wanhui Fu wrote:
> twl6030_gpadc_probe() unmasks the GPADC interrupt before completing
> the remaining hardware setup and IIO device registration. If a later
> step fails, probe returns without calling twl6030_gpadc_disable_irq(),
> which could cause unnecessary interrupts and CPU wakeups.
>
> Register twl6030_gpadc_disable_irq() with devm_add_action_or_reset()
> after enabling the interrupt so that it is masked on subsequent
> probe failures and driver detach, before the managed IRQ is freed.
> Remove the manual call from twl6030_gpadc_remove().
>
> Drop the mask argument from the enable and disable helpers, since
> the mask is always TWL6030_GPADC_RT_SW1_EOC_MASK.
>
> Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver")
> Signed-off-by: Wanhui Fu <fuwh1120@163.com>
> ---
Reviewed-by: Joshua Crofts <crofts@kernel.org>
--
Kind regards,
Joshua Crofts
next prev parent reply other threads:[~2026-11-30 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 3:03 [PATCH v3 0/3] iio: adc: twl6030-gpadc: convert probe/remove cleanup to devm Wanhui Fu
2026-11-30 3:03 ` [PATCH v3 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ Wanhui Fu
2026-11-30 9:13 ` Joshua Crofts [this message]
2026-11-30 3:03 ` [PATCH v3 2/3] iio: adc: twl6030-gpadc: switch to devm_iio_device_register() Wanhui Fu
2026-11-30 9:11 ` Joshua Crofts
2026-11-30 3:03 ` [PATCH v3 3/3] iio: adc: twl6030-gpadc: delete redundant dev_err() messages in probe Wanhui Fu
2026-11-30 9:14 ` Joshua Crofts
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=8fbc4b54-10de-4da4-a080-8c2d7a94d5e4@kernel.org \
--to=crofts@kernel.org \
--cc=andy@kernel.org \
--cc=bhelgaas@google.com \
--cc=dlechner@baylibre.com \
--cc=fuwh1120@163.com \
--cc=giorgitchankvetadze1997@gmail.com \
--cc=jic23@kernel.org \
--cc=kees+treewide@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=o-takashi@sakamocchi.jp \
--cc=u.kleine-koenig@baylibre.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