[PATCH v2 45/57] irqdomain: i2c: Switch to irq_find_mapping()

Jiri Slaby (SUSE) posted 57 patches 9 months ago
[PATCH v2 45/57] irqdomain: i2c: Switch to irq_find_mapping()
Posted by Jiri Slaby (SUSE) 9 months ago
irq_linear_revmap() is deprecated, so remove all its uses and supersede
them by an identical call to irq_find_mapping().

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Peter Rosin <peda@axentia.se>
Cc: linux-i2c@vger.kernel.org
---
 drivers/i2c/muxes/i2c-mux-pca954x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
index f6430db6c115..5bb26af0f532 100644
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
@@ -414,7 +414,7 @@ static irqreturn_t pca954x_irq_handler(int irq, void *dev_id)
 
 	pending = (ret >> PCA954X_IRQ_OFFSET) & (BIT(data->chip->nchans) - 1);
 	for_each_set_bit(i, &pending, data->chip->nchans)
-		handle_nested_irq(irq_linear_revmap(data->irq, i));
+		handle_nested_irq(irq_find_mapping(data->irq, i));
 
 	return IRQ_RETVAL(pending);
 }
-- 
2.49.0
Re: [PATCH v2 45/57] irqdomain: i2c: Switch to irq_find_mapping()
Posted by Wolfram Sang 8 months, 3 weeks ago
On Wed, Mar 19, 2025 at 10:29:38AM +0100, Jiri Slaby (SUSE) wrote:
> irq_linear_revmap() is deprecated, so remove all its uses and supersede
> them by an identical call to irq_find_mapping().
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Peter Rosin <peda@axentia.se>
> Cc: linux-i2c@vger.kernel.org

Applied to for-next, thanks!

Re: [PATCH v2 45/57] irqdomain: i2c: Switch to irq_find_mapping()
Posted by Wolfram Sang 8 months, 3 weeks ago
On Wed, Mar 19, 2025 at 10:29:38AM +0100, Jiri Slaby (SUSE) wrote:
> irq_linear_revmap() is deprecated, so remove all its uses and supersede
> them by an identical call to irq_find_mapping().
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Peter Rosin <peda@axentia.se>
> Cc: linux-i2c@vger.kernel.org

I can apply this independently of the other I2C change which needs a v3,
right?

Re: [PATCH v2 45/57] irqdomain: i2c: Switch to irq_find_mapping()
Posted by Jiri Slaby 8 months, 3 weeks ago
On 25. 03. 25, 10:25, Wolfram Sang wrote:
> On Wed, Mar 19, 2025 at 10:29:38AM +0100, Jiri Slaby (SUSE) wrote:
>> irq_linear_revmap() is deprecated, so remove all its uses and supersede
>> them by an identical call to irq_find_mapping().
>>
>> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
>> Cc: Peter Rosin <peda@axentia.se>
>> Cc: linux-i2c@vger.kernel.org
> 
> I can apply this independently of the other I2C change which needs a v3,
> right?

Right.

thanks,
-- 
js
suse labs