mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Radu Rendec <radu@rendec.net>
To: Guo Ren <guoren@kernel.org>,
	linux-riscv@lists.infradead.org,  linux-kernel@vger.kernel.org
Cc: palmer@dabbelt.com, pjw@kernel.org, aou@eecs.berkeley.edu,
	alex@ghiti.fr, 	tglx@kernel.org, daniel.lezcano@kernel.org,
	anup@brainfault.org, 	hui.wang@canonical.com,
	samuel.holland@sifive.com
Subject: Re: [PATCH 4/5] irqchip/aclint-sswi: Use IPI_MAX for IPI muxing
Date: Sun, 16 Aug 2026 11:22:42 -0400	[thread overview]
Message-ID: <f54332aa3683bfb5e3eb340c9a7d94cc1f5ffe4c.camel@rendec.net> (raw)
In-Reply-To: <20260816070049.2097442-5-guoren@kernel.org>

On Sun, 2026-08-16 at 07:00 +0000, Guo Ren wrote:
> From: "GUO Ren (XuanTie)" <guoren@kernel.org>
> 
> Replace the hard-coded BITS_PER_BYTE with IPI_MAX now that the constant
> is exported from riscv asm/smp.h.
> 
> Signed-off-by: GUO Ren (XuanTie) <guoren@kernel.org>
> ---
>  drivers/irqchip/irq-aclint-sswi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/irqchip/irq-aclint-sswi.c b/drivers/irqchip/irq-aclint-sswi.c
> index ca06efd86fa1..5e010fc401f7 100644
> --- a/drivers/irqchip/irq-aclint-sswi.c
> +++ b/drivers/irqchip/irq-aclint-sswi.c
> @@ -138,7 +138,7 @@ static int __init aclint_sswi_probe(struct fwnode_handle *fwnode)
>  	}
>  
>  	/* Register SSWI irq and handler */
> -	virq = ipi_mux_create(BITS_PER_BYTE, aclint_sswi_ipi_send);
> +	virq = ipi_mux_create(IPI_MAX, aclint_sswi_ipi_send);
>  	if (virq <= 0) {
>  		pr_err("unable to create muxed IPIs\n");
>  		irq_dispose_mapping(sswi_ipi_virq);
> @@ -152,7 +152,7 @@ static int __init aclint_sswi_probe(struct fwnode_handle *fwnode)
>  			  aclint_sswi_starting_cpu,
>  			  aclint_sswi_dying_cpu);
>  
> -	riscv_ipi_set_virq_range(virq, BITS_PER_BYTE);
> +	riscv_ipi_set_virq_range(virq, IPI_MAX);
>  
>  	return 0;
>  }

Reviewed-by: Radu Rendec <radu@rendec.net>

  reply	other threads:[~2026-08-16 15:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-16  7:00 [PATCH 0/5] riscv: Make IPI_MAX visible and use it consistently Guo Ren
2026-08-16  7:00 ` [PATCH 1/5] riscv: smp: Move enum ipi_message_type to asm/smp.h Guo Ren
2026-08-17 14:22   ` Radu Rendec
2026-08-17 14:35   ` Anup Patel
2026-08-16  7:00 ` [PATCH 2/5] riscv: sbi: Use IPI_MAX for SBI IPI muxing Guo Ren
2026-08-17 14:35   ` Anup Patel
2026-08-16  7:00 ` [PATCH 3/5] clocksource: clint: Use IPI_MAX for " Guo Ren
2026-08-17 14:36   ` Anup Patel
2026-08-16  7:00 ` [PATCH 4/5] irqchip/aclint-sswi: " Guo Ren
2026-08-16 15:22   ` Radu Rendec [this message]
2026-08-17 14:36   ` Anup Patel
2026-08-16  7:00 ` [PATCH 5/5] irqchip/imsic: Use IPI_MAX instead of IMSIC_NR_IPI Guo Ren
2026-08-16 15:28   ` Radu Rendec
2026-08-17 13:05     ` Guo Ren
2026-08-17 14:25       ` Radu Rendec
2026-08-17 14:36   ` Anup Patel

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=f54332aa3683bfb5e3eb340c9a7d94cc1f5ffe4c.camel@rendec.net \
    --to=radu@rendec.net \
    --cc=alex@ghiti.fr \
    --cc=anup@brainfault.org \
    --cc=aou@eecs.berkeley.edu \
    --cc=daniel.lezcano@kernel.org \
    --cc=guoren@kernel.org \
    --cc=hui.wang@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=samuel.holland@sifive.com \
    --cc=tglx@kernel.org \
    /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®