[PATCH 4/5] irqchip/aclint-sswi: Use IPI_MAX for IPI muxing

Anup Patel anup at brainfault.org
Mon Aug 17 07:36:22 PDT 2026


On Sun, Aug 16, 2026 at 12:31 PM Guo Ren <guoren at kernel.org> 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>

LGTM.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup

> ---
>  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;
>  }
> --
> 2.43.0
>



More information about the linux-riscv mailing list