mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Claudiu Beznea <claudiu.beznea@kernel.org>
To: chris.brandt@renesas.com, andi.shyti@kernel.org,
	wsa@sang-engineering.com
Cc: claudiu.beznea@kernel.org, claudiu.beznea@tuxon.dev,
	linux-renesas-soc@vger.kernel.org, linux-i2c@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/4] i2c: riic: Use the "dev_name:irq_name" format for the interrupt name
Date: Wed, 20 May 2026 16:12:04 +0300	[thread overview]
Message-ID: <20260520131206.932050-3-claudiu.beznea@kernel.org> (raw)
In-Reply-To: <20260520131206.932050-1-claudiu.beznea@kernel.org>

From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

Use the "dev_name:irq_name" format for the interrupt names. This makes it
easier to identify interrupts in systems where multiple devices may request
interrupts with the same name.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---

 drivers/i2c/busses/i2c-riic.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-riic.c b/drivers/i2c/busses/i2c-riic.c
index 68d359ce2e66..57b64d82b681 100644
--- a/drivers/i2c/busses/i2c-riic.c
+++ b/drivers/i2c/busses/i2c-riic.c
@@ -567,13 +567,18 @@ static int riic_i2c_probe(struct platform_device *pdev)
 
 	for (i = 0; i < riic->info->num_irqs; i++) {
 		const struct riic_irq_desc *irq_desc;
+		char *irqname;
 
 		irq_desc = &riic->info->irqs[i];
 		riic->irqs[i] = platform_get_irq(pdev, irq_desc->res_num);
 		if (riic->irqs[i] < 0)
 			return riic->irqs[i];
 
-		ret = devm_request_irq(dev, riic->irqs[i], irq_desc->isr, 0, irq_desc->name, riic);
+		irqname = devm_kasprintf(dev, GFP_KERNEL, "%s:%s", dev_name(dev), irq_desc->name);
+		if (!irqname)
+			return -ENOMEM;
+
+		ret = devm_request_irq(dev, riic->irqs[i], irq_desc->isr, 0, irqname, riic);
 		if (ret)
 			return dev_err_probe(dev, ret, "failed to request irq %s\n",
 					     irq_desc->name);
-- 
2.43.0


  parent reply	other threads:[~2026-05-20 13:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 13:12 [PATCH 0/4] i2c: riic: Fixes and cleanups Claudiu Beznea
2026-05-20 13:12 ` [PATCH 1/4] i2c: riic: Abort the transfer on completion timeout Claudiu Beznea
2026-05-28 13:57   ` Wolfram Sang
2026-05-28 16:57     ` Claudiu Beznea
2026-05-28 21:52       ` Wolfram Sang
2026-08-25 13:20   ` Geert Uytterhoeven
2026-05-20 13:12 ` Claudiu Beznea [this message]
2026-05-28 14:03   ` [PATCH 2/4] i2c: riic: Use the "dev_name:irq_name" format for the interrupt name Wolfram Sang
2026-08-25 13:17   ` Geert Uytterhoeven
2026-05-20 13:12 ` [PATCH 3/4] i2c: riic: Drop the space in front of the "out" goto label Claudiu Beznea
2026-05-28 14:08   ` Wolfram Sang
2026-05-28 17:00     ` Claudiu Beznea
2026-05-28 21:52       ` Wolfram Sang
2026-08-25 13:25     ` Geert Uytterhoeven
2026-05-20 13:12 ` [PATCH 4/4] i2c: riic: Drop empty line Claudiu Beznea
2026-05-28 14:09   ` Wolfram Sang
2026-08-25 13:26   ` Geert Uytterhoeven

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=20260520131206.932050-3-claudiu.beznea@kernel.org \
    --to=claudiu.beznea@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=chris.brandt@renesas.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=wsa@sang-engineering.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

all inboxes | Powered by JetHome®