Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796430736; b=TTRdogR4VmwQX6jAVDRL3Icfq2WRaFRRgLSuxUjV5AwilTeeD95BV+n46S+N9DcO7O2E agME4G4wjE6udYPFnk7vCSeCoyt+zNKu7H4zptALXxIx2m5PqetuFBwzabzY9GEfJQjN0 69dBlVHgCJwlUICFLsL/QRhTl7Z456GTO8shwGdAMTaXqyCqKhoKHRXd+lyeFyMKfargv ls/Lzep6/O06xbrAnmZIKpa8R4qYwp9gVho8EOyvXW2t57kh3tNbvU5/7LzjgVeG2v9Ff ZHJujDsa8gkIM/GhqBs5X/kXvD7DdMiJshDUkNGxvKRllAUUWeWVM2nAjl+unb5HiBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796430736; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=FThIrsJuInvh/9b3/cDAyGnVNy1n8NHRhMv3c0NDlH8=; b=gOnJ8imdsokD7IMjgycZUnSpE3ig53c5YpHr3bzcDUvQRoveb4yIhDgRbQO89nDTXlgS dpUjRvR1ncaqa1NnO4v96vtgmrb2IcxVlU32OZ19L4c5yZFa0hux3/Ly/HDthKBC0EbOW WYVGERvLQVnoh5EaLsZ1yW3mKSaPJUPeymLnZ9ZbKxOStdCCbXWFupe6PgW/GvXdSsGeR ezFvMUfifNHYc/OeROx072NKp3A5L9LaqM+yXX8YXyS64YbKjXjZtn7TcBqWZPWgMT47h A7aIwgYlxs8HmnhehpYV385ZmGPwj//KVXACLt3W7f3Y1d2zw0X0HuWsHZInO9+OXFg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ldc5H6B0; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41A16606A322 for ; Sat, 5 Dec 2026 00:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ldc5H6B0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC9A81F0092B; Sat, 5 Dec 2026 00:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796430735; bh=FThIrsJuInvh/9b3/cDAyGnVNy1n8NHRhMv3c0NDlH8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ldc5H6B0ayVWx1YpCTNhghPyXV3xWJanT6LSIJ8oERFIKq6SkuUdx8z2DhISEgY8f QPd6UPW/RYs9XgVOm5URdjV+SU3h5m6UDvh1hHdSUnaah9nl5a9cDY1ZrkhZMsazT/ JkBKMjcURMe96iH9iDYzzSkn34mxZ+lsnY0thyGi8cVUCz/CUIyE0gvi0soGqLiVea kjzYbj6LZesCqOB8C72zp+C4mrpsLRH+h/jpwj0FhBigeDqs6Jz8PoKdaDAQTdEu0/ wUz1T1rl0rjTIm4Y/nPXIVAsEpVAkbNkkYcOOsfKLPzDBeTuPiKyT4jYiKVtZovq3I XRcpq7HTmD1cQ== Date: Sat, 5 Dec 2026 00:32:08 +0000 From: Jonathan Cameron To: Wanhui Fu Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, giorgitchankvetadze1997@gmail.com, dakr@kernel.org, u.kleine-koenig@baylibre.com, kees+treewide@kernel.org, gg@slimlogic.co.uk, balajitk@ti.com, oleksandr.kozaruk@ti.com, linux-iio@vger.kernel.org Subject: Re: [PATCH v5 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ Message-ID: <20261205003208.4cda38fe@jic23-hlaptop> In-Reply-To: <20261204171539.2120579-2-fuwh1120@163.com> References: <20261204171539.2120579-1-fuwh1120@163.com> <20261204171539.2120579-2-fuwh1120@163.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 5 Dec 2026 01:15:37 +0800 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(). > > Store the interrupt mask in struct twl6030_gpadc_data and pass the > private data to the cleanup action. Use the stored mask when enabling > and disabling the interrupt. > > Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver") This has somehow lost your Sign-off Unfortunately without that the Developer Certificate of Origin doesn't apply and I can't apply it! :( So please send a v6 with that fixed up and Andy's tag.