From 726d78e739b46797c34946d78794f8f32ff1e01b Mon Sep 17 00:00:00 2001 From: Tony Xie Date: Tue, 12 Sep 2023 10:25:53 +0800 Subject: [PATCH] irqchip/gic: allow to config pending function between different os for rpmsg, it needs to set pending reg between different os, so allow to config pending function between different os. Fixes: 2e7658ef5774 ("irqchip/gic: support config amp os irqs") Signed-off-by: Tony Xie Change-Id: I4b06f8a692e34c339d4facb40b8120fdbe1d7bcd --- drivers/irqchip/irq-gic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index cd3f72b4e2d6..d5add4c238e5 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -271,7 +271,8 @@ static int gic_irq_set_irqchip_state(struct irq_data *d, u32 reg; #ifdef CONFIG_ROCKCHIP_AMP - if (rockchip_amp_check_amp_irq(gic_irq(d))) + if (which != IRQCHIP_STATE_PENDING && + rockchip_amp_check_amp_irq(gic_irq(d))) return -EINVAL; #endif switch (which) {