[PATCH 4/5] irqchip/aclint-sswi: Use IPI_MAX for IPI muxing
Radu Rendec
radu at rendec.net
Sun Aug 16 08:22:42 PDT 2026
On Sun, 2026-08-16 at 07:00 +0000, Guo Ren wrote:
> From: "GUO Ren (XuanTie)" <guoren at 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 at 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 at rendec.net>
More information about the linux-riscv
mailing list